Research V4 development
[unix-history] / man / man2 / setuid.2
CommitLineData
66a6884f
KT
1.th SETUID II 8/5/73
2.sh NAME
3setuid \*- set process user ID
4.sh SYNOPSIS
5(setuid = 23.)
6.br
7(user ID in r0)
8.ft B
9.br
10sys setuid
11.s3
12setuid(uid)
13.ft R
14.sh DESCRIPTION
15The user ID of the current process is set to
16the argument.
17Both the effective and the real user ID are set.
18This call is only permitted to the super-user
19or if the argument is the real user ID.
20.sh "SEE ALSO"
21getuid(II)
22.sh DIAGNOSTICS
23Error bit
24(c-bit) is set as indicated;
25from C, a \*-1 value is returned.