BSD 4_2 development
[unix-history] / usr / man / man2 / getuid.2
CommitLineData
308eda09
C
1.TH GETUID 2 "12 February 1983"
2.UC 4
3.SH NAME
4getuid, geteuid \- get user identity
5.SH SYNOPSIS
6.ft B
7.nf
8uid = getuid()
9int uid;
10.PP
11.ft B
12euid = geteuid()
13int euid;
14.fi
15.SH DESCRIPTION
16.I Getuid
17returns the real user ID of the current process,
18.I geteuid
19the effective user ID.
20.PP
21The real user ID identifies the person who is logged in.
22The effective user ID
23gives the process additional permissions during
24execution of \*(lqset-user-ID\*(rq mode processes, which use
25\fIgetuid\fP to determine the real-user-id of the process which
26invoked them.
27.SH "SEE ALSO"
28getgid(2), setreuid(2)