summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getuid.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-28 20:41:28 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-28 20:41:28 +0000
commit8006438996ba503957507974948c7673384b777c (patch)
treea1a2b6468f1d74f3ee8153dd002f976ad60c7e0c /libc/sysdeps/linux/common/getuid.c
parent0a24932ab1ffc0ba5fc20f1c7f47b2620b22d080 (diff)
implement support for the rest of the 32bit uid syscalls
Diffstat (limited to 'libc/sysdeps/linux/common/getuid.c')
-rw-r--r--libc/sysdeps/linux/common/getuid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c
index 21c504d65..484db370f 100644
--- a/libc/sysdeps/linux/common/getuid.c
+++ b/libc/sysdeps/linux/common/getuid.c
@@ -11,8 +11,14 @@
#include <unistd.h>
#if defined __NR_getxuid
-# define __NR_getuid __NR_getxuid
+# undef __NR_getuid
+# define __NR_getuid __NR_getxuid
#endif
+#ifdef __NR_getuid32
+# undef __NR_getuid
+# define __NR_getuid __NR_getuid32
+#endif
+
libc_hidden_proto(getuid)
_syscall0(uid_t, getuid);
libc_hidden_def(getuid)