disable debug.
[AROS.git] / compiler / posixc / setegid.c
blob5cbe2db9dcfc15fe6b7ad68ca0911de135ddbb66
1 /*
2 Copyright © 2017, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function setegid().
6 */
8 #include <aros/debug.h>
9 #include <errno.h>
11 #include "__posixc_intbase.h"
13 /*****************************************************************************
15 NAME */
16 #include <unistd.h>
18 int setegid(
20 /* SYNOPSIS */
21 gid_t gid)
23 /* FUNCTION
24 Set the effective group id of the calling process to gid.
26 INPUTS
28 RESULT
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
38 INTERNALS
40 ******************************************************************************/
42 struct PosixCIntBase *PosixCBase =
43 (struct PosixCIntBase *)__aros_getbase_PosixCBase();
45 PosixCBase->egid = gid;
47 return 0;
48 } /* setgid() */