diff options
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) |