summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/geteuid.c
blob: f30b5b7ea76648b7bf42374503526a799a7248f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * geteuid() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <unistd.h>

#ifdef __NR_geteuid32
# undef __NR_geteuid
# define __NR_geteuid __NR_geteuid32
#endif

#ifdef __NR_geteuid
_syscall_noerr0(uid_t, geteuid)
libc_hidden_def(geteuid)
#endif