OSDN Git Service

Add missing symbol for ipc and ignore commented syscall lines.
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / str_syscalls.sh
index 66ef682..676229b 100755 (executable)
@@ -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\");"