use EXIT_SUCCESS and EXIT_FAILURE
[model-checker.git] / snapshot.h
index c737dece2f1a7d5390c224e56d41144ae6c420c2..39e294a8c60f1c0d781fdafb43a6162b6475f1af 100644 (file)
@@ -1,11 +1,16 @@
 #ifndef _SNAPSHOT_H
 #define _SNAPSHOT_H
+
+#include "snapshot-interface.h"
+
 #define PAGESIZE 4096
-#define USE_CHECKPOINTING 1
-#define DEBUG 1
-typedef unsigned int snapshot_id;
-typedef void (*MyFuncPtr)();
-void initSnapShotLibrary(unsigned int numbackingpages, unsigned int numsnapshots, unsigned int nummemoryregions, MyFuncPtr entryPoint);
+
+/* 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 1
+
+/* Size of signal stack */
+#define SIGSTACKSIZE 16384
 
 void addMemoryRegionToSnapShot( void * ptr, unsigned int numPages );