cr_tests: Update cr.h using the rewrite-cr script.
PATCH 2/7 cr_tests: Update cr.h using the rewrite-cr script.
Adds "GHOST" define and PowerPC syscall number definitions.
Signed-off-by Matt Helsley <matthltc-r/[email protected]>
--- cr.h | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-)
cr.h +21 -9
@@ -1,9 +1,8 @@/* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */ +#ifndef _LINUX_CHECKPOINT_H_ +#include <asm/unistd.h> -#ifndef _LINUX_CHECKPOINT_H_#define _LINUX_CHECKPOINT_H_ - -#include <asm/unistd.h>/* * Generic checkpoint-restart *
@@ -14,7 +13,7 @@* distribution for more details. */ -#define CHECKPOINT_VERSION 1 +#define CHECKPOINT_VERSION 2/* checkpoint user flags */ #define CHECKPOINT_SUBTREE 0x1
@@ -22,6 +21,11 @@/* restart user flags */ #define RESTART_TASKSELF 0x1#define RESTART_FROZEN 0x2 +#define RESTART_GHOST 0x4 + + + +
@@ -65,8 +69,17 @@/* mips unsupported. */ /* mn10300 unsupported. */ /* parisc unsupported. */ -/* powerpc unsupported. */ -#if __s390x__ +#if __powerpc__ + +#ifndef __NR_checkpoint +#define __NR_checkpoint 323 +#endif + +#ifndef __NR_restart +#define __NR_restart 324 +#endif + +#elif __s390x__#ifndef __NR_checkpoint#define __NR_checkpoint 332
@@ -93,6 +106,5 @@/* x86_64 unsupported. */ /* x86_64 unsupported. */ /* xtensa unsupported. */ -#endif - -#endif +#endif /* arch-specific sections */ +#endif /* _LINUX_CHECKPOINT_H_ */
Signature · 1 line
1.5.6.3