Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getuid(2) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgid(2)

setreuid(2)



GETUID(2)               COMMAND REFERENCE               GETUID(2)



NAME
     getuid, geteuid - get user identity

SYNOPSIS
     uid = getuid()
     int uid;

     euid = geteuid()
     int euid;

DESCRIPTION
     Getuid returns the real user ID of the current process in
     uid; geteuid returns the effective user ID in euid.

     The real user ID identifies the person who is logged in.
     The effective user ID gives the process additional
     permissions during execution of "set-user-ID" mode
     processes, which use getuid to determine the real user ID of
     the process which invoked them.

RETURN VALUE
     Getuid returns the real user ID; geteuid returns the
     effective user ID.

SEE ALSO
     getgid(2), setreuid(2).





























Printed 10/17/86                                                1





































































%%index%%
na:72,71;
sy:143,376;
de:519,639;
rv:1158,240;
se:1398,138;
%%index%%000000000093

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