Fix pattern to account for '_' prefix in syscalls

Bug: http://b/64549471
Test: make
Change-Id: I7ba856a2cad29adbb028f150aeaabb9894e84d6e
This commit is contained in:
dimitry 2017-08-10 11:06:39 +02:00
parent 32f719ad1a
commit daebd05739
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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",