diff options
author | Richard Hansen <cyanogenmod@rhansen.org> | 2013-02-19 13:43:20 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-02-27 21:22:42 -0800 |
commit | c32672ec97d77cb935f82e663d967dd4521b11d1 (patch) | |
tree | 8162a8d75f2d15657537120fb8f8fbf82f446165 | |
parent | 1e297188104f152edc61a60812b244aa8c6427c2 (diff) | |
download | bionic-c32672ec97d77cb935f82e663d967dd4521b11d1.zip bionic-c32672ec97d77cb935f82e663d967dd4521b11d1.tar.gz bionic-c32672ec97d77cb935f82e663d967dd4521b11d1.tar.bz2 |
bionic/libc: fix getsid() syscall number for mipscm-10.1-M2
According to libc/kernel/arch-mips/asm/unistd.h, the syscall number
for mips is 151, not 147.
Only bionic/libc/SYSCALLS.TXT was manually edited;
bionic/libc/include/sys/linux-syscalls.h was generated from
SYSCALLS.TXT by running bionic/libc/tools/gensyscalls.py.
Change-Id: Ia14da35acbc36aafd44a059146a37271bd358ae2
-rw-r--r-- | libc/SYSCALLS.TXT | 2 | ||||
-rw-r--r-- | libc/include/sys/linux-syscalls.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index d79e6f3..cc86517 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -62,7 +62,7 @@ int getgroups:getgroups32(int, gid_t *) 205,205,-1 int getgroups:getgroups(int, gid_t *) -1,-1,80 pid_t getpgid(pid_t) 132 pid_t getppid() 64 -pid_t getsid(pid_t) 147 +pid_t getsid(pid_t) 147,147,151 pid_t setsid() 66 int setgid:setgid32(gid_t) 214,214,-1 int setgid:setgid(gid_t) -1,-1,46 diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h index 89ab167..b34e3da 100644 --- a/libc/include/sys/linux-syscalls.h +++ b/libc/include/sys/linux-syscalls.h @@ -83,7 +83,6 @@ #define __NR_msync (__NR_SYSCALL_BASE + 144) #define __NR_readv (__NR_SYSCALL_BASE + 145) #define __NR_writev (__NR_SYSCALL_BASE + 146) -#define __NR_getsid (__NR_SYSCALL_BASE + 147) #define __NR_perf_event_open (__NR_SYSCALL_BASE + 364) #ifdef __arm__ @@ -99,6 +98,7 @@ #define __NR_gettid (__NR_SYSCALL_BASE + 224) #define __NR_readahead (__NR_SYSCALL_BASE + 225) #define __NR_getgroups32 (__NR_SYSCALL_BASE + 205) +#define __NR_getsid (__NR_SYSCALL_BASE + 147) #define __NR_setgid32 (__NR_SYSCALL_BASE + 214) #define __NR_setreuid32 (__NR_SYSCALL_BASE + 203) #define __NR_setresuid32 (__NR_SYSCALL_BASE + 208) @@ -221,6 +221,7 @@ #define __NR_pipe (__NR_SYSCALL_BASE + 42) #define __NR_sigsuspend (__NR_SYSCALL_BASE + 72) #define __NR_socketcall (__NR_SYSCALL_BASE + 102) +#define __NR_getsid (__NR_SYSCALL_BASE + 147) #define __NR_fdatasync (__NR_SYSCALL_BASE + 148) #define __NR_mlock (__NR_SYSCALL_BASE + 150) #define __NR_munlock (__NR_SYSCALL_BASE + 151) @@ -351,6 +352,7 @@ #define __NR_setgroups (__NR_SYSCALL_BASE + 81) #define __NR_fchown (__NR_SYSCALL_BASE + 95) #define __NR_cacheflush (__NR_SYSCALL_BASE + 147) +#define __NR_getsid (__NR_SYSCALL_BASE + 151) #define __NR_fdatasync (__NR_SYSCALL_BASE + 152) #define __NR_mlock (__NR_SYSCALL_BASE + 154) #define __NR_munlock (__NR_SYSCALL_BASE + 155) |