diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-18 12:10:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-18 12:10:22 +0000 |
commit | 9f3eba863e386e2c604313c99f1da37d7cfdadea (patch) | |
tree | 77712a460380afd1b9ad450d1e6db359fb619326 /libc/sysdeps/linux/common/getuid.c | |
parent | 56c3fad78406bd5ea1142b755c81feee71b1987e (diff) |
get rid of arch specific checks
Diffstat (limited to 'libc/sysdeps/linux/common/getuid.c')
-rw-r--r-- | libc/sysdeps/linux/common/getuid.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c index 6a06a78e4..21c504d65 100644 --- a/libc/sysdeps/linux/common/getuid.c +++ b/libc/sysdeps/linux/common/getuid.c @@ -10,17 +10,9 @@ #include "syscalls.h" #include <unistd.h> -libc_hidden_proto(getuid) - -#if defined (__alpha__) -#define __NR_getuid __NR_getxuid +#if defined __NR_getxuid +# define __NR_getuid __NR_getxuid #endif -#define __NR___syscall_getuid __NR_getuid - -static inline _syscall0(int, __syscall_getuid); - -uid_t getuid(void) -{ - return (__syscall_getuid()); -} +libc_hidden_proto(getuid) +_syscall0(uid_t, getuid); libc_hidden_def(getuid) |