diff options
author | Dimitry Ivanov <dimitry@google.com> | 2017-08-10 15:04:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-10 15:04:58 +0000 |
commit | cf764c05e43921e4d3f927a5eaca1c6ecafe046b (patch) | |
tree | 5cbf14fc60e0454a46778094f374f586d355079e | |
parent | 32f719ad1ab232382107b7110e7635fefcbbf868 (diff) | |
parent | daebd05739d6c29e7126a20aeeab73de530d293e (diff) | |
download | android_bionic-cf764c05e43921e4d3f927a5eaca1c6ecafe046b.tar.gz android_bionic-cf764c05e43921e4d3f927a5eaca1c6ecafe046b.tar.bz2 android_bionic-cf764c05e43921e4d3f927a5eaca1c6ecafe046b.zip |
Merge "Fix pattern to account for '_' prefix in syscalls"
-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", |