www.delorie.com/djgpp/doc/libc/libc_700.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ 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


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004