The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
grp.h File Reference

the group database (/etc/group: name:password:gid:members). More...

#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  group

Functions

struct group * getgrgid (gid_t gid)
 look up a group by id or name.
struct group * getgrnam (const char *name)

Detailed Description

the group database (/etc/group: name:password:gid:members).

Function Documentation

◆ getgrgid()

struct group * getgrgid ( gid_t gid)

look up a group by id or name.

the result is overwritten by the next call.

Returns
the entry, or NULL if there is none.

◆ getgrnam()

struct group * getgrnam ( const char * name)