OSDN Git Service

[MIPS] Fix the MIPS getsid system call
authorChris Dearman <chris@mips.com>
Thu, 29 Nov 2012 19:23:31 +0000 (11:23 -0800)
committerChris Dearman <chris@mips.com>
Thu, 29 Nov 2012 20:05:25 +0000 (12:05 -0800)
Change-Id: I30a27941125bccb35d73a572a729ecf7dd555389
Signed-off-by: Chris Dearman <chris@mips.com>
libc/SYSCALLS.TXT
libc/include/sys/linux-syscalls.h

index 58e0ac1..2973caa 100644 (file)
@@ -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
index f2249fd..ec48ada 100644 (file)
@@ -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)
 
 #ifdef __arm__
 #define __NR_exit_group                   (__NR_SYSCALL_BASE + 248)
@@ -98,6 +97,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)
 #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)
 #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)