diff options
-rw-r--r-- | libc/include/bits/glibc-syscalls.h | 9 | ||||
-rwxr-xr-x | libc/tools/gensyscalls.py | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libc/include/bits/glibc-syscalls.h b/libc/include/bits/glibc-syscalls.h index 3f99dcb03..f08c614e7 100644 --- a/libc/include/bits/glibc-syscalls.h +++ b/libc/include/bits/glibc-syscalls.h @@ -1,6 +1,15 @@ /* Generated by gensyscalls.py. Do not edit. */ #ifndef _BIONIC_BITS_GLIBC_SYSCALLS_H_ #define _BIONIC_BITS_GLIBC_SYSCALLS_H_ +#if defined(__NR__llseek) + #define SYS__llseek __NR__llseek +#endif +#if defined(__NR__newselect) + #define SYS__newselect __NR__newselect +#endif +#if defined(__NR__sysctl) + #define SYS__sysctl __NR__sysctl +#endif #if defined(__NR_accept) #define SYS_accept __NR_accept #endif diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index ab7c247b6..e6240a11e 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -568,7 +568,7 @@ class State: # Collect the set of all syscalls for all architectures. syscalls = set() - pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z]\S+)') + pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z_]\S+)') for unistd_h in ["kernel/uapi/asm-generic/unistd.h", "kernel/uapi/asm-arm/asm/unistd.h", "kernel/uapi/asm-arm/asm/unistd-common.h", |