Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getgid(2) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgroups(2)

initgroups(3)

setgroups(2)

setregid(2)

groups(1)

getgid(2)  —  System Calls

NAME

getgid, getegid − Gets the process group IDs

SYNOPSIS

#include <sys/types.h>

gid_t getgid ( void );

gid_t getegid ( void );

DESCRIPTION

The getgid() function returns the real group ID of the calling process. 

The getegid() function returns the effective group ID of the calling process. 

The real group ID is specified at login time.  The effective group ID is more transient, and determines additional access permission during execution of a “set-group-ID” process.  It is for such processes that the getgid() function is most useful. 

NOTES

AES Support Level:
Full use

RETURN VALUES

The getgid() and getegid() functions return the requested group ID.  They are always successful. 

RELATED INFORMATION

Functions: getgroups(2), initgroups(3), setgroups(2), setregid(2)

Commands: groups(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026