import header file from specification
[c11tester.git] / snapshot.h
index 629f63a0697c466cfbef348f7aefafd8e08e170e..e41eb9c9debfecc7cac7cfc912b6a3c190000966 100644 (file)
 
 /* If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect()
    If USE_MPROTECT_SNAPSHOT=0, then snapshot by using fork() */
-#define USE_MPROTECT_SNAPSHOT 0
+#define USE_MPROTECT_SNAPSHOT 1
 
 /* Size of signal stack */
 #define SIGSTACKSIZE 32768
 
 void addMemoryRegionToSnapShot( void * ptr, unsigned int numPages );
-
 snapshot_id takeSnapshot( );
-
 void rollBack( snapshot_id theSnapShot );
 
-void createSharedLibrary();
+#if !USE_MPROTECT_SNAPSHOT
+void createSharedMemory();
+#endif
 
 #endif