diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-07-03 23:19:26 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-07-03 23:19:26 +0000 |
commit | 851036f3faecf4b664ccec9e77a3d274a2492741 (patch) | |
tree | 25f08b2b2ea8b333aac91b6b75876f82a4cfef6f /include/grp_.h | |
parent | 87d618846726b0ab2ff9d3f7e2d687e554743e2b (diff) | |
download | busybox-w32-851036f3faecf4b664ccec9e77a3d274a2492741.tar.gz busybox-w32-851036f3faecf4b664ccec9e77a3d274a2492741.tar.bz2 busybox-w32-851036f3faecf4b664ccec9e77a3d274a2492741.zip |
Scrub pwd.h and grp.h handling so we don't have to play any
silly games.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@5011 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 | |||