[PATCH 8/8] cr_tests: update cr.h

Matt Helsley matthltc at us.ibm.com
Tue Mar 9 14:48:20 PST 2010


cr.h is grossly out-of-date. Any build which relies on it is horribly broken
without this change.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 cr.h |   46 +++++++++++++++++++---------------------------
 1 files changed, 19 insertions(+), 27 deletions(-)

diff --git a/cr.h b/cr.h
index b05dcd8..d5d0cf7 100644
--- a/cr.h
+++ b/cr.h
@@ -1,8 +1,7 @@
 /* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */
 #ifndef _LINUX_CHECKPOINT_H_
-#include <asm/unistd.h>
-
 #define _LINUX_CHECKPOINT_H_ 
+#include <asm/unistd.h>
 /*
  *  Generic checkpoint-restart
  *
@@ -13,7 +12,7 @@
  *  distribution for more details.
  */
 
-#define CHECKPOINT_VERSION 2
+#define CHECKPOINT_VERSION 5
 
 /* checkpoint user flags */
 #define CHECKPOINT_SUBTREE 0x1
@@ -22,24 +21,11 @@
 #define RESTART_TASKSELF 0x1
 #define RESTART_FROZEN 0x2
 #define RESTART_GHOST 0x4
+#define RESTART_KEEP_LSM 0x8
+#define RESTART_CONN_RESET 0x10
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+/* misc user visible */
+#define CHECKPOINT_FD_NONE -1
 
 
 
@@ -71,10 +57,6 @@
 /* parisc unsupported. */
 #if __powerpc__
 
-#ifndef __NR_eclone
-#define __NR_eclone 323
-#endif
-
 #ifndef __NR_checkpoint
 #define __NR_checkpoint 324
 #endif
@@ -93,6 +75,7 @@
 #define __NR_restart 334
 #endif
 
+/* score unsupported. */
 /* sh unsupported. */
 /* sh unsupported. */
 /* sh unsupported. */
@@ -100,14 +83,23 @@
 #elif __i386__
 
 #ifndef __NR_checkpoint
-#define __NR_checkpoint 338
+#define __NR_checkpoint 339
 #endif
 
 #ifndef __NR_restart
-#define __NR_restart 339
+#define __NR_restart 340
+#endif
+
+#elif __x86_64__
+
+#ifndef __NR_checkpoint
+#define __NR_checkpoint 301
+#endif
+
+#ifndef __NR_restart
+#define __NR_restart 302
 #endif
 
-/* x86_64 unsupported. */
 /* x86_64 unsupported. */
 /* xtensa unsupported. */
 #endif /* arch-specific sections */
-- 
1.6.3.3



More information about the Containers mailing list