From 41070dd15f2c5916dfc96da4c256dd04d7f9c837 Mon Sep 17 00:00:00 2001 From: Jack Ren Date: Tue, 17 Apr 2012 11:16:18 +0800 Subject: bionic: Fix wrong prototype of system call getresuid/getresgid In bionic/libc/SYSCALLS.TXT, the prototypes of system call getresuid/getresgid are incorrect. According to man page, they should be: int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); Change-Id: I676098868bb05a9e1fe45419b234cf397626fdad Signed-off-by: Jin Wei Signed-off-by: Jack Ren Signed-off-by: Bruce Beare --- libc/include/sys/linux-unistd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/include') diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index d945d87..84ea7c3 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -17,8 +17,8 @@ uid_t getuid (void); gid_t getgid (void); uid_t geteuid (void); gid_t getegid (void); -uid_t getresuid (void); -gid_t getresgid (void); +uid_t getresuid (uid_t *ruid, uid_t *euid, uid_t *suid); +gid_t getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid); pid_t gettid (void); ssize_t readahead (int, off64_t, size_t); int getgroups (int, gid_t *); -- cgit v1.1