adopted an updated path to a test script.
[AROS.git] / compiler / posixc / setgid.c
blob2528cb269dee8143eb929221173894ab40435af8
1 /*
2 Copyright © 2004-2017, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function setgid().
6 */
8 #include <aros/debug.h>
9 #include <errno.h>
11 #include "__posixc_intbase.h"
13 /*****************************************************************************
15 NAME */
16 #include <unistd.h>
18 int setgid(
20 /* SYNOPSIS */
21 gid_t gid)
23 /* FUNCTION
24 Set the group id, and 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 = PosixCBase->gid = gid;
47 return 0;
48 } /* setgid() */