man.bsd.lv manual page server

Manual Page Search Parameters
SETUID(2) System Calls Manual SETUID(2)

setuid, setgid - set user and group ID

setuid(uid)

setgid(gid)

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.

getuid(2)

Zero is returned if the user (group) ID is set; -1 is returned otherwise.

(setuid = 23.)
(user ID in r0)
sys setuid

(setgid = 46.)
(group ID in r0)
sys setgid

UNIX-7