Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getgid(2) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

setuid(2)

GETUID(2)  —  Silicon Graphics

NAME

getuid, geteuid, getgid, getegid − get real user, effective user, real group, and effective group IDs

SYNOPSIS

int getuid ()

int geteuid ()

int getgid ()

int getegid ()

DESCRIPTION

Getuid returns the real user ID of the calling process. 

Geteuid returns the effective user ID of the calling process. 

Getgid returns the real group ID of the calling process. 

Getegid returns the effective group ID of the calling process. 

SEE ALSO

intro(2), setuid(2). 

ASSEMBLER

moveq#24,D0| sys getuid
trap#0

Real user ID returned in D0.
moveq#24,D0| sys geteuid
trap#0

Effective user ID returned in D1.
moveq#47,D0| sys getgid
trap#0

Real group ID returned in D0.
moveq#47,D0| sys getegid
trap#0

Effective group ID returned in D1.

Version 3.6  —  December 20, 1987

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