OSDN Git Service

Make sure that bits/syscalls.h always includes bits/syscall.h
authorEric Andersen <andersen@codepoet.org>
Tue, 27 Aug 2002 19:31:31 +0000 (19:31 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 27 Aug 2002 19:31:31 +0000 (19:31 -0000)
 -Erik

extra/scripts/gen_bits_syscall_h.sh
libc/sysdeps/linux/alpha/bits/syscalls.h
libc/sysdeps/linux/h8300/bits/syscalls.h
libc/sysdeps/linux/i960/bits/syscalls.h
libc/sysdeps/linux/m68k/bits/syscalls.h
libc/sysdeps/linux/powerpc/bits/syscalls.h
libc/sysdeps/linux/sparc/bits/syscalls.h
libc/sysdeps/linux/v850/bits/syscalls.h

index ce599c9..df83bce 100755 (executable)
@@ -21,7 +21,8 @@ $CC -E - |
   echo "#ifndef _SYSCALL_H" ;
   echo "# error \"Never use <bits/syscall.h> directly; include <sys/syscall.h> instead.\"" ;
   echo "#endif" ; echo ;
-  sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#define __NR_\1 \2\
+  sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#undef __NR_\1\
+#define __NR_\1 \2\
 #define SYS_\1 __NR_\1/gp'
   echo "#endif" ; echo ;
 )
index da6a6d4..fff9737 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 #endif /* _BITS_SYSCALLS_H */
 
index da6a6d4..fff9737 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 #endif /* _BITS_SYSCALLS_H */
 
index da6a6d4..fff9737 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 #endif /* _BITS_SYSCALLS_H */
 
index da6a6d4..fff9737 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 #endif /* _BITS_SYSCALLS_H */
 
index 6efff71..37a9cfe 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 /* The kernel includes don't provide _syscall6, so provide our own */
 #undef _syscall6
 #define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5,type6,arg6) \
index da6a6d4..fff9737 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 #endif /* _BITS_SYSCALLS_H */
 
index da6a6d4..fff9737 100644 (file)
 #define _BITS_SYSCALL_H
 #include <asm/unistd.h>
 
+/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
+ * header files.  It also defines the traditional `SYS_<name>' macros for older
+ * programs.  */
+#include <bits/syscall.h>
+
 #endif /* _BITS_SYSCALLS_H */