summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/str_syscalls.sh
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-01-17 04:54:25 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-01-17 04:54:25 +0000
commit737be33761210922c9f7835fd79bd56d87aae916 (patch)
tree1da4e9ce6cae93c358aa99d44bae34f2b85d7fe5 /libc/sysdeps/linux/common/str_syscalls.sh
parent344893c7f721246c98dd6a9a5b8550a75864ed07 (diff)
Add missing symbol for ipc and ignore commented syscall lines.
Diffstat (limited to 'libc/sysdeps/linux/common/str_syscalls.sh')
-rwxr-xr-xlibc/sysdeps/linux/common/str_syscalls.sh3
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\");"