V7M/man/man2/setuid.2

Compare this file to the similar file:
Show the results in this format:

.TH SETUID 2 
.SH NAME
setuid, setgid \- set user and group ID
.SH SYNOPSIS
.B setuid(uid)
.PP
.B setgid(gid)
.SH DESCRIPTION
The user ID (group ID) of the current process is set to
the argument.
Both the effective and the real ID are set.
These calls are only permitted to the super-user
or if the argument is the real ID.
.SH "SEE ALSO"
getuid(2)
.SH DIAGNOSTICS
Zero is returned if the user (group) ID is set;
\-1 is returned otherwise.
.SH ASSEMBLER
(setuid = 23.)
.br
(user ID in r0)
.br
.B sys setuid
.PP
(setgid = 46.)
.br
(group ID in r0)
.br
.B sys  setgid