[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001