Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (f - i) getgid(2)
NAME
getgid - Gets the real 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 getgid(void);
DESCRIPTION
The getgid() function returns the real 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.
NOTES
A processs real group ID can be different from the group number in the operating system creator
access ID (CAID) for a process.
RETURN VALUES
The getgid() function returns the real 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: getegid(2), getgroups(2), setgid(2).
Commands: id(1).
527186-003 Hewlett-Packard Company 337