1GETGID(2)                     System Calls Manual                    GETGID(2)
2
3
4

NAME

6       getgid, getegid - get group process identification
7

SYNOPSIS

9       #include <sys/types.h>
10
11       gid_t
12       getgid()
13
14       gid_t
15       getegid()
16

DESCRIPTION

18       The  getgid  function returns the real group ID of the calling process,
19       getegid returns the effective group ID of the calling process.
20
21       The real group ID is specified at login time.
22
23       The real group ID is the group of the user who invoked the program.  As
24       the  effective group ID gives the process additional permissions during
25       the execution of ``set-group-ID'' mode processes,  getgid  is  used  to
26       determine the real-user-id of the calling process.
27

ERRORS

29       The  getgid  and getegid functions are always successful, and no return
30       value is reserved to indicate an error.
31

SEE ALSO

33       getuid(2), setregid(2), setgid(3)
34

STANDARDS

36       Getgid and getegid conform to IEEE Std 1003.1-1988 (``POSIX'').
37
38
39
404.2 Berkeley Distribution      December 2, 1997                      GETGID(2)
Impressum