From 737be33761210922c9f7835fd79bd56d87aae916 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Wed, 17 Jan 2001 04:54:25 +0000 Subject: Add missing symbol for ipc and ignore commented syscall lines. --- libc/sysdeps/linux/common/str_syscalls.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/str_syscalls.sh b/libc/sysdeps/linux/common/str_syscalls.sh index 66ef6824d..676229b14 100755 --- a/libc/sysdeps/linux/common/str_syscalls.sh +++ b/libc/sysdeps/linux/common/str_syscalls.sh @@ -8,6 +8,7 @@ echo "int main(void) {" echo echo "#define __NR__exit __NR_exit" echo "#define __NR___open __NR_open" +echo "#define __NR___ipc __NR_ipc" echo "#define __NR__ioctl __NR_ioctl" echo "#define __NR__fcntl __NR_fcntl" echo "#define __NR__reboot __NR_reboot" @@ -18,7 +19,7 @@ echo "#define __NR__lstat __NR_lstat" echo "#define __NR__fstat __NR_fstat" echo "#define __NR__getdents __NR_getdents" echo -sed -ne 's/^.*_syscall[0-9].*([^,]*, *\([^,)]*\).*/printf("#define __STR_NR_\1 \\\"%d\\\"\\n", __NR_\1);/gp' syscalls.c +sed -ne 's/^[^\/]*_syscall[0-9].*([^,]*, *\([^,)]*\).*/printf("#define __STR_NR_\1 \\\"%d\\\"\\n", __NR_\1);/gp' syscalls.c echo echo "printf(\"#define __STR_NR_exit __STR_NR__exit\n\");" echo "printf(\"#define __STR_NR_open __STR_NR___open\n\");" -- cgit v1.2.3