revert between 56095 -> 55830 in arch
[AROS.git] / compiler / posixc / setuid.c
blobddb4ef5f77e27a932db8a3dbf5d085e985909432
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
24 Sets the user ID, and effective user ID of the calling process.
26 INPUTS
28 RESULT
30 NOTES
31 Does not check permissions.
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 ******************************************************************************/
43 struct PosixCIntBase *PosixCBase =
44 (struct PosixCIntBase *)__aros_getbase_PosixCBase();
46 PosixCBase->euid = PosixCBase->uid = uid;
48 return 0;
49 } /* setuid() */