Chapter Contents |
Previous |
Next |
getegid |
Portability: | POSIX.1 conforming, UNIX compatible |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
EXAMPLE | |
RELATED FUNCTIONS |
SYNOPSIS |
#include <sys/types.h> #include <unistd.h> gid_t getegid(void);
DESCRIPTION |
getegid
determines the effective group ID of the calling process.
RETURN VALUE |
If successful, the group ID of the calling
process is returned. Under unusual conditions (for instance, if USS is not
running)
getegid
can fail.
In this case,
getegid
issues
an OS/390 user ABEND 1230 to indicate the error.
EXAMPLE |
The following code fragment illustrates
the use of
getegid
:
#include <sys/types.h> #include <stdio.h> #include <unistd.h> . . . printf("%d is my group ID.\n", (int) getegid()); . . .
RELATED FUNCTIONS |
geteuid
,
getgid
,
setegid
,
setgid
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.