Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getuid(2) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setuid(2)

getuid(2)

NAME

getuid, getgid, geteuid, getegid − get user and group identity

SYNTAX

unsigned short getuid()

unsigned short geteuid()

unsigned short getgid()

unsigned short getegid()

DESCRIPTION

The getuid system call returns the real user ID of the current process.  The real user ID identifies the person who is logged in. 

The geteuid system call returns the effective user ID.  The effective user ID determines his access permission at the moment and is useful to programs which operate using the set user ID mode (allows them to find out who invoked them). 

RETURN VALUE

The getgid system call returns the real group ID.  The getegid system call returns the effective group ID. 

SEE ALSO

setuid(2)

ASSEMBLER

(getuid = 24.) 
sys getuid
(real user ID in r0, effective user ID in r1)

(getgid = 47.) 
sys getgid
(real group ID in r0, effective group ID in r1)

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