source: rtems/cpukit/posix/src/getgid.c @ 317a5b5

4.104.114.84.95
Last change on this file since 317a5b5 was 811fae1, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 2, 1999 at 7:24:38 PM

Split types.s into individual files.

  • Property mode set to 100644
File size: 536 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <limits.h>
6#include <errno.h>
7#include <string.h>
8#include <sys/types.h>
9
10#include <rtems/system.h>
11#include <rtems/score/object.h>
12#include <rtems/posix/seterr.h>
13
14gid_t _POSIX_types_Gid = 0;
15
16/*PAGE
17 *
18 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
19 *        P1003.1b-1993, p. 84
20 */
21
22gid_t getgid( void )
23{
24  return _POSIX_types_Gid;
25}
26
27/*PAGE
28 *
29 *  4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84
30 */
31
32int setgid(
33  gid_t  gid
34)
35{
36  _POSIX_types_Gid = gid;
37  return 0;
38}
Note: See TracBrowser for help on using the repository browser.