diff options
Diffstat (limited to 'libc/sysdeps/linux/common/getuid.c')
-rw-r--r-- | libc/sysdeps/linux/common/getuid.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c index 7c81ccf48..21c504d65 100644 --- a/libc/sysdeps/linux/common/getuid.c +++ b/libc/sysdeps/linux/common/getuid.c @@ -2,23 +2,17 @@ /* * getuid() for uClibc * - * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org> + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * - * GNU Library General Public License (LGPL) version 2 or later. + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #include "syscalls.h" #include <unistd.h> -#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 attribute_hidden __getuid(void) -{ - return (__syscall_getuid()); -} -strong_alias(__getuid,getuid) +libc_hidden_proto(getuid) +_syscall0(uid_t, getuid); +libc_hidden_def(getuid) |