Skip to contentSkip to conversation

cr_test: include unistd.h for syscall numbers

PATCH In review Matt Helsley 2 participants 2 messages Oct 12, 2009 – Oct 13, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 cr_test: include unistd.h for syscall numbers

Extend this change to the rewrite-cr-header.sh script.

---
 rewrite-cr-header.sh |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
rewrite-cr-header.sh +9 -2
index 97f39fc..62ad5b5 100755
@@ -42,7 +42,11 @@ fi
 
 COND='#if'
 set -e
-echo '/* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */'
+cat - <<-EOFOEOF
+/* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */
+#ifndef _LINUX_CHECKPOINT_H_
+#include <asm/unistd.h>
+EOFOEOF
 
 #
 # Include non-__KERNEL__ sections of include/linux/checkpoint.h using
@@ -84,4 +88,7 @@ while read UNISTDH ; do
 	sed -e 's/^[[:space:]]*#define[[:space:]]\+__NR_\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\).*$/#ifndef __NR_\1\n#define __NR_\1 \2\n#endif\n/'
 	COND='#elif'
 done
-echo -e '#else\n#error "Architecture does not have definitons for __NR_(checkpoint|restart)"\n#endif'
+cat - <<-EOFOEOF
+#endif /* arch-specific sections */
+#endif /* _LINUX_CHECKPOINT_H_ */
+EOFOEOF
Signature · 1 line
1.5.6.3

A message that is not in the archive (sent off-list or not yet received): 1255376302-11022-1-git-send-email-matthltc-r/[email protected]

#2 lore raw
Quoted 3 lines · Matt Helsley

Extend this change to the rewrite-cr-header.sh script.

Thanks - all applied, plus one trivial patch to make it compile with rhel5.3's older headers.

Now that I'm typing that, it occurs to me that i suppose i should be required to recompile glibc with new kernel-headers?

Hmm....

-serge