2 * @brief Snapshotting interface header file.
8 #include "snapshot-interface.h"
12 /* If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect()
13 If USE_MPROTECT_SNAPSHOT=0, then snapshot by using fork() */
14 #define USE_MPROTECT_SNAPSHOT 1
16 /* Size of signal stack */
17 #define SIGSTACKSIZE 32768
19 void addMemoryRegionToSnapShot( void * ptr, unsigned int numPages );
21 snapshot_id takeSnapshot( );
23 void rollBack( snapshot_id theSnapShot );
28 void createSharedLibrary();
30 }; /* end of extern "C" */