man(1) Manual page archive


NAME
     setgid - set process group ID

SYNOPSIS
     (setgid = 46.; not in assembler)
     (group ID in r0)
     sys setgid

     setgid(gid)

DESCRIPTION
     The group ID of the current process is set to the argument.
     Both the effective and the real group ID are set.  This call
     is only permitted to the super-user or if the argument is
     the real group ID.

SEE ALSO
     getgid (II)

DIAGNOSTICS
     Error bit (c-bit) is set as indicated; from C, a -1 value is
     returned.

 1