Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getuid(2) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setuid(2)

GETUID(2)

NAME

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

SYNOPSIS

#include <sys/types.h>

uid_t getuid ()

uid_t geteuid ()

gid_t getgid ()

gid_t 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. 

There is no way to ascertain the saved-user-ID or saved-group-ID of a process. 

SEE ALSO

setuid(2). 

STANDARDS CONFORMANCE

getuid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1

getegid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1

geteuid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1

getgid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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