diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-02 15:06:51 +0100 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-03 18:22:50 +0100 |
commit | 83c1854b97d79e2b67065b1a2651b0d11d8a8f6b (patch) | |
tree | 43dd89c2d19570eb50a327d958697fa0a060f09b /libc/sysdeps/linux/common/getuid.c | |
parent | 45dafbdb4e221f600895aa70a69e2e306093bd90 (diff) |
remove error handling from some syscalls
Remove error handling from getegid/getgid/geteuid/getuid/getppid/getpid/getpgrp
Use strong_alias if fallbacks are needed
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'libc/sysdeps/linux/common/getuid.c')
-rw-r--r-- | libc/sysdeps/linux/common/getuid.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c index b6f813a06..f921acb2e 100644 --- a/libc/sysdeps/linux/common/getuid.c +++ b/libc/sysdeps/linux/common/getuid.c @@ -10,7 +10,7 @@ #include <sys/syscall.h> #include <unistd.h> -#if defined __NR_getxuid +#ifdef __NR_getxuid # undef __NR_getuid # define __NR_getuid __NR_getxuid #endif @@ -19,5 +19,9 @@ # define __NR_getuid __NR_getuid32 #endif -_syscall0(uid_t, getuid) +_syscall_noerr0(uid_t, getuid) libc_hidden_def(getuid) +#if !defined __NR_geteuid32 && !defined __NR_geteuid +strong_alias(getuid,geteuid) +libc_hidden_def(geteuid) +#endif |