diff options
Diffstat (limited to 'include/grp_.h')
-rw-r--r-- | include/grp_.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/grp_.h b/include/grp_.h new file mode 100644 index 000000000..0ce274cf0 --- /dev/null +++ b/include/grp_.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #ifndef __CONFIG_GRP_H | ||
2 | #define __CONFIG_GRP_H | ||
3 | |||
4 | #if !defined CONFIG_USE_BB_PWD_GRP | ||
5 | #include <grp.h> | ||
6 | |||
7 | #else | ||
8 | |||
9 | #include <sys/types.h> | ||
10 | #include <features.h> | ||
11 | #include <stdio.h> | ||
12 | |||
13 | |||
14 | /* The group structure */ | ||
15 | struct group | ||
16 | { | ||
17 | char *gr_name; /* Group name. */ | ||
18 | char *gr_passwd; /* Password. */ | ||
19 | gid_t gr_gid; /* Group ID. */ | ||
20 | char **gr_mem; /* Member list. */ | ||
21 | }; | ||
22 | |||
23 | extern void setgrent __P ((void)); | ||
24 | extern void endgrent __P ((void)); | ||
25 | extern struct group * getgrent __P ((void)); | ||
26 | |||
27 | extern struct group * getgrgid __P ((__const gid_t gid)); | ||
28 | extern struct group * getgrnam __P ((__const char * name)); | ||
29 | |||
30 | extern struct group * fgetgrent __P ((FILE * file)); | ||
31 | |||
32 | extern int setgroups __P ((size_t n, __const gid_t * groups)); | ||
33 | extern int initgroups __P ((__const char * user, gid_t gid)); | ||
34 | |||
35 | extern struct group * __getgrent __P ((int grp_fd)); | ||
36 | |||
37 | #endif /* USE_SYSTEM_PWD_GRP */ | ||
38 | #endif /* __CONFIG_GRP_H */ | ||
39 | |||