Back to index

glibc  2.9
Functions
setegid.c File Reference
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int setegid (gid_t gid)

Function Documentation

int setegid ( gid_t  gid)

Definition at line 24 of file setegid.c.

{
  if (gid == (gid_t) ~0)
    {
      __set_errno (EINVAL);
      return -1;
    }

  return __setregid (-1, gid);
}