move the defines to the resource header and include that where necessary.
[AROS.git] / compiler / posixc / setuid.c
blobb530831c3f5c8e35a14d94351306f1539c3b41ef
1 /*
2 Copyright © 2004-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function setuid().
6 */
8 #include <aros/debug.h>
9 #include <errno.h>
11 #include "__posixc_intbase.h"
13 /*****************************************************************************
15 NAME */
16 #include <unistd.h>
18 int setuid(
20 /* SYNOPSIS */
21 uid_t uid)
23 /* FUNCTION
25 INPUTS
27 RESULT
29 NOTES
30 Does not check permissions.
32 EXAMPLE
34 BUGS
36 SEE ALSO
38 INTERNALS
40 ******************************************************************************/
42 struct PosixCIntBase *PosixCBase =
43 (struct PosixCIntBase *)__aros_getbase_PosixCBase();
45 PosixCBase->euid = PosixCBase->uid = uid;
47 return 0;
48 } /* setuid() */