Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getegid.bsd(2) — Domain/IX SR9.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getuid(2)

setregid(2)

setgid(3)

GETGID(2)

NAME

getgid, getegid − get group identity

USAGE

gid = getgid()
int gid;

egid = getegid()
int egid;

DESCRIPTION

Getgid reports the real group ID of the current process; getegid reports the effective group ID. 

The real group ID is set at log-in time.  The effective group ID determines additional access permission during execution of a “set-group-ID” process.  It is for such processes that getgid is most useful. 

RETURN VALUE

Getgid reports the process’ real group ID.  Getegid reports the process’ effective group ID. 

RELATED INFORMATION

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

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