forked from Imagelibrary/rtems
PR 1649/cpukit * libcsupport/Makefile.am, libcsupport/src/getgid.c: Make sure all get and set gid and egid routines are present and in their own files. * libcsupport/src/setegid.c, libcsupport/src/setgid.c: New files.
29 lines
425 B
C
29 lines
425 B
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <limits.h>
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
|
|
#include <rtems/system.h>
|
|
#include <rtems/score/object.h>
|
|
#include <rtems/seterr.h>
|
|
#include <rtems/userenv.h>
|
|
|
|
/*
|
|
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
|
|
* P1003.1b-1993, p. 84
|
|
*/
|
|
int setegid(
|
|
gid_t gid
|
|
)
|
|
{
|
|
_POSIX_types_Egid = gid;
|
|
return 0;
|
|
}
|