File:  [Research Unix] / researchv10dc / dist / man / v4 / man2 / setuid.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.th SETUID II 8/5/73
.sh NAME
setuid \*- set process user ID
.sh SYNOPSIS
(setuid = 23.)
.br
(user ID in r0)
.ft B
.br
sys setuid
.s3
setuid(uid)
.ft R
.sh DESCRIPTION
The user ID of the current process is set to
the argument.
Both the effective and the real user ID are set.
This call is only permitted to the super-user
or if the argument is the real user ID.
.sh "SEE ALSO"
getuid(II)
.sh DIAGNOSTICS
Error bit
(c-bit) is set as indicated;
from C, a \*-1 value is returned.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.