From: Matt Helsley Subject: [PATCH 2/7] cr_tests: Update cr.h using the rewrite-cr script. Date: Mon, 12 Oct 2009 12:38:23 -0700 Message-ID: <1255376302-11022-2-git-send-email-matthltc@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Adds "GHOST" define and PowerPC syscall number definitions. Signed-off-by: Matt Helsley --- cr.h | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/cr.h b/cr.h index a7dce6a..a58c2e4 100644 --- a/cr.h +++ b/cr.h @@ -1,9 +1,8 @@ /* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */ +#ifndef _LINUX_CHECKPOINT_H_ +#include -#ifndef _LINUX_CHECKPOINT_H_ #define _LINUX_CHECKPOINT_H_ - -#include /* * 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_ */ -- 1.5.6.3