

setgid()               COHERENT System Call              setgid()




Set group id and user id

iinntt sseettggiidd(_i_d) iinntt _i_d;

setgid sets the group id.  This calls can be used to set group id
privileges.  (For more information on group id, see exec.)

The call is allowed if the real id of the calling process matches
id or is the superuser.

***** See Also *****

COHERENT system calls, exec, getuid(), login, setuid()

***** Diagnostics *****

setgid returns zero on success, or -1 on failure.







































COHERENT Lexicon                                           Page 1


