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 ;
)
#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 */
#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 */
#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 */
#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 */
#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) \
#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 */
#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 */