Ausam/doc/man/man2/getuid.2

Find at most related files.
including files from this version of Unix.

.th GETUID II 5/15/74
.sh NAME
getuid  \*-  get user identifications
.sh SYNOPSIS
(getuid = 24.)
.br
.ft B
sys getuid
.ft B
.s3
long getuid( )
int getreal( )
int getefvt( )
.ft R
.sh DESCRIPTION
.it Getuid
returns two words (in r0,r1),
the first of which (high word) contains
the effective user ID of
the current process.
The second (low word) contains the real user ID
of the current process.
The calls
.bd getreal\c
, and
.bd getefvt
return the real and effective user ID of the process respectively.
The real user ID identifies the person who is logged in,
in contradistinction to the effective user ID, which
determines his access permission at the moment.
It is thus useful to programs which operate using
the ``set user ID'' mode, to find out who invoked them.
.sh "SEE ALSO"
setuid (II), access(II)
.sh DIAGNOSTICS
\*-