Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (f - i) getegid(2)
NAME
getegid - Gets the effective group ID
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsecsrl
H-series OSS processes: /G/system/zdllnnn/zsecdll
SYNOPSIS
#include <sys/types.h> /* optional except for POSIX.1 */
#include <unistd.h>
gid_t getegid(void);
DESCRIPTION
The getegid() function returns the effective group ID of the calling process.
The real, effective, and saved group IDs are set at login time and when a process with appropriate
privileges calls the setgid() function. The effective and saved group IDs can also change as a
result of executing a set-group-ID program.
NOTES
A process’s effective group ID can be different from the group membership indicated by the
operating system process access ID (PAID) of the process.
RETURN VALUES
The getegid() function returns the effective group ID. It is always successful.
The "uninitialized" group ID (hexadecimal 80000000) is returned when authentication informa-
tion of a process is uninitialized.
RELATED INFORMATION
Functions: getgid(2), getgroups(2), setgid(2).
Commands: id(1).
527186-003 Hewlett-Packard Company 3−35