build fd files in the directory specified in the config.
[AROS.git] / compiler / posixc / getuid.c
blob5356997ebc2d2f94eb718c80021b7fa0fb3bd381
1 /*
2 Copyright © 2003-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function getuid().
6 */
8 #include "__posixc_intbase.h"
10 /*****************************************************************************
12 NAME */
13 #include <unistd.h>
15 uid_t getuid(
17 /* SYNOPSIS */
18 void)
20 /* FUNCTION
21 Returns the real user ID of the calling process.
23 INPUTS
25 RESULT
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
34 geteuid()
36 INTERNALS
38 ******************************************************************************/
40 struct PosixCIntBase *PosixCBase =
41 (struct PosixCIntBase *)__aros_getbase_PosixCBase();
43 return PosixCBase->uid;
44 } /* getuid() */