File: pathvirt.h

package info (click to toggle)
dmtcp 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,496 kB
  • sloc: cpp: 33,592; ansic: 28,099; sh: 6,735; makefile: 1,950; perl: 1,690; python: 1,241; asm: 138; java: 13
file content (28 lines) | stat: -rw-r--r-- 930 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef PATHVIRT_H
#define PATHVIRT_H

#ifndef EXTERNC
# ifdef __cplusplus
#  define EXTERNC extern "C"
# else
#  define EXTERNC
# endif
#endif

/*  dmtcp_set_original_path_prefix() can be called at any time
 *  (at checkpoint time, within a user's plugin wrapper function, etc.).
 *  However, this will have no effect until the next restart.
 *  The user must then set the environment variable DMTCP_NEW_PATH_PREFIX
 *  prior to restart.
 *  [ POSSIBLE USE CASE:  An application is launched, and then talks
 *      to a server to discover what directory to use.  Hence,
 *      DMTCP_ORIGINAL_PATH_PREFIX cannot be fully specified until after
 *      launch the application. ]
 */
EXTERNC void set_original_path_prefix_list(const char* oldPathPrefix) __attribute__((weak));

EXTERNC const char* get_original_path_prefix_list() __attribute__((weak));

EXTERNC const char* get_new_path_prefix_list() __attribute__((weak));

#endif