The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
grp.h
Go to the documentation of this file.
1#pragma once
2
3#include <sys/types.h>
4
5/**
6 * @file grp.h
7 * @brief the group database (/etc/group: name:password:gid:members).
8 */
9
10struct group
11{
12 char *gr_name;
13 char *gr_passwd;
15 char *gr_mem_list; // the members, comma separated (no gr_mem array yet)
16};
17
18/**
19 * look up a group by id or name. the result is overwritten by the next call.
20 * @return the entry, or NULL if there is none.
21 */
22struct group *getgrgid(gid_t gid);
23struct group *getgrnam(const char *name);
struct group * getgrnam(const char *name)
struct group * getgrgid(gid_t gid)
look up a group by id or name.
Definition grp.h:11
gid_t gr_gid
Definition grp.h:14
char * gr_passwd
Definition grp.h:13
char * gr_name
Definition grp.h:12
char * gr_mem_list
Definition grp.h:15
basic system types.
unsigned int gid_t
Definition types.h:18