Go to the first, previous, next, last section, table of contents.


setgid

Syntax

#include <unistd.h>

int setgid(gid_t gid);

Description

This function is simulated, since MS-DOS does not support group IDs.

Return Value

If gid is equal to that returned by see section getgid, returns zero. Otherwise, returns -1 and sets errno to EPERM.

Portability

not ANSI, POSIX


Go to the first, previous, next, last section, table of contents.