Bläddra i källkod

Add missing symbol for ipc and ignore commented syscall lines.

Manuel Novoa III 25 år sedan
förälder
incheckning
737be33761
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      libc/sysdeps/linux/common/str_syscalls.sh

+ 2 - 1
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\");"