aboutsummaryrefslogtreecommitdiff
path: root/include/grp_.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grp_.h')
-rw-r--r--include/grp_.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/grp_.h b/include/grp_.h
index f7b8d836f..db13ce3b4 100644
--- a/include/grp_.h
+++ b/include/grp_.h
@@ -36,31 +36,30 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
36#define getgrouplist bb_internal_getgrouplist 36#define getgrouplist bb_internal_getgrouplist
37#define initgroups bb_internal_initgroups 37#define initgroups bb_internal_initgroups
38 38
39
40/* All function names below should be remapped by #defines above 39/* All function names below should be remapped by #defines above
41 * in order to not collide with libc names. */ 40 * in order to not collide with libc names. */
42 41
43/* Close the group-file stream. */ 42/* Close the group-file stream. */
44extern void endgrent(void); 43void FAST_FUNC endgrent(void);
45 44
46/* Search for an entry with a matching group ID. */ 45/* Search for an entry with a matching group ID. */
47extern struct group *getgrgid(gid_t __gid); 46struct group* FAST_FUNC getgrgid(gid_t __gid);
48 47
49/* Search for an entry with a matching group name. */ 48/* Search for an entry with a matching group name. */
50extern struct group *getgrnam(const char *__name); 49struct group* FAST_FUNC getgrnam(const char *__name);
51 50
52/* Reentrant versions of some of the functions above. */ 51/* Reentrant versions of some of the functions above. */
53 52
54/* Store at most *NGROUPS members of the group set for USER into 53/* Store at most *NGROUPS members of the group set for USER into
55 *GROUPS. Also include GROUP. The actual number of groups found is 54 *GROUPS. Also include GROUP. The actual number of groups found is
56 returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. */ 55 returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. */
57extern int getgrouplist(const char *__user, gid_t __group, 56int FAST_FUNC getgrouplist(const char *__user, gid_t __group,
58 gid_t *__groups, int *__ngroups); 57 gid_t *__groups, int *__ngroups);
59 58
60/* Initialize the group set for the current user 59/* Initialize the group set for the current user
61 by reading the group database and using all groups 60 by reading the group database and using all groups
62 of which USER is a member. Also include GROUP. */ 61 of which USER is a member. Also include GROUP. */
63extern int initgroups(const char *__user, gid_t __group); 62int FAST_FUNC initgroups(const char *__user, gid_t __group);
64 63
65POP_SAVED_FUNCTION_VISIBILITY 64POP_SAVED_FUNCTION_VISIBILITY
66 65