Back to index

courier  0.68.2
Defines | Functions
setgroupid.h File Reference
#include "config.h"
#include <sys/types.h>
#include <grp.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __USE_BSG

Functions

void setgroupid (gid_t grpid)

Define Documentation

#define __USE_BSG

Definition at line 11 of file setgroupid.h.


Function Documentation

void setgroupid ( gid_t  grpid)

Definition at line 4 of file setgroupid.c.

{
gid_t g=grpid;

#if    HAVE_SETGROUPS
       setgroups(1, &g);
#endif

       setgid(g);
}