OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / getuid.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * getuid() for uClibc
4  *
5  * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
6  *
7  * GNU Library General Public License (LGPL) version 2 or later.
8  */
9
10 #include "syscalls.h"
11 #include <unistd.h>
12
13 #if defined (__alpha__)
14 #define __NR_getuid     __NR_getxuid
15 #endif
16 #define __NR___syscall_getuid __NR_getuid
17
18 static inline _syscall0(int, __syscall_getuid);
19
20 uid_t getuid(void)
21 {
22         return (__syscall_getuid());
23 }
24 libc_hidden_proto(getuid)
25 libc_hidden_def(getuid)