free the correctly allocated size
[AROS.git] / compiler / posixc / getuid.c
blob3994d9d66cbe91ead0fd41f90c490956b272fd7c
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
22 INPUTS
24 RESULT
26 NOTES
28 EXAMPLE
30 BUGS
32 SEE ALSO
33 geteuid()
35 INTERNALS
37 ******************************************************************************/
39 struct PosixCIntBase *PosixCBase =
40 (struct PosixCIntBase *)__aros_getbase_PosixCBase();
42 return PosixCBase->uid;
43 } /* getuid() */