]> Git Repo - uclibc-ng.git/blame - include/grp.h
We already have tar.h, so might as well include cpio.h as well...
[uclibc-ng.git] / include / grp.h
CommitLineData
64bc6412
EA
1#ifndef __GRP_H
2#define __GRP_H
3
4#include <sys/types.h>
5#include <features.h>
6#include <stdio.h>
7
ce8ee8d9
DM
8__BEGIN_DECLS
9
64bc6412
EA
10/* The group structure */
11struct group
12{
13 char *gr_name; /* Group name. */
14 char *gr_passwd; /* Password. */
15 gid_t gr_gid; /* Group ID. */
16 char **gr_mem; /* Member list. */
17};
18
19extern void setgrent __P ((void));
20extern void endgrent __P ((void));
21extern struct group * getgrent __P ((void));
22
23extern struct group * getgrgid __P ((__const gid_t gid));
24extern struct group * getgrnam __P ((__const char * name));
25
26extern struct group * fgetgrent __P ((FILE * file));
27
28extern int setgroups __P ((size_t n, __const gid_t * groups));
29extern int initgroups __P ((__const char * user, gid_t gid));
30
31
62787816 32#ifdef _LIBC
64bc6412
EA
33extern struct group * __getgrent __P ((int grp_fd));
34#endif
35
ce8ee8d9
DM
36__END_DECLS
37
64bc6412
EA
38#endif /* _GRP_H */
39
40
41
This page took 0.039225 seconds and 4 git commands to generate.