diff options
Diffstat (limited to 'libc/sysdeps')
-rwxr-xr-x | libc/sysdeps/linux/common/str_syscalls.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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\");" |