SETUID(2) HP Integral PC SETUID(2) SETUID(2) HP Integral PC SETUID(2) SETUID(2) HP Integral PC SETUID(2) SETUID(2) HP Integral PC SETUID(2) NAME NAME NAME NAME setuid, setgid - set user and group IDs SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS int setuid (uid) int uid; int setgid (gid) int gid; DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION Setuid is used to set the real user ID and effective user ID of the calling process. Setgid is used to set the real group ID and effective group ID of the calling process. If the effective user ID of the calling process is super- user, the real user (group) ID and effective user (group) ID are set to uid ( gid ). If the effective user ID of the calling process is not super-user, but its real user (group) ID is equal to uid ( gid ), the effective user (group) ID is set to uid ( gid ). RETURN VALUE RETURN VALUE RETURN VALUE RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO SEE ALSO SEE ALSO SEE ALSO getuid(2), intro(2). Hewlett-Packard - 1 - (printed 12/12/84)