diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index e06aef08e..99bbf623b 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1203,9 +1203,15 @@ void die_if_bad_username(const char* name) FAST_FUNC; | |||
1203 | gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC; | 1203 | gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC; |
1204 | /* | 1204 | /* |
1205 | * True if GID is in our getgroups() result. | 1205 | * True if GID is in our getgroups() result. |
1206 | * getgroups() is cached in group_array[], to makse successive calls faster. | 1206 | * getgroups() is cached in supplementary_array[], to make successive calls faster. |
1207 | */ | 1207 | */ |
1208 | int FAST_FUNC is_in_supplementary_groups(int *pngroups, gid_t **pgroup_array, gid_t gid); | 1208 | struct cached_groupinfo { |
1209 | //TODO? gid_t egid; | ||
1210 | int ngroups; | ||
1211 | gid_t *supplementary_array; | ||
1212 | }; | ||
1213 | //TODO? int FAST_FUNC get_cached_egid(gid_t *egid); | ||
1214 | int FAST_FUNC is_in_supplementary_groups(struct cached_groupinfo *groupinfo, gid_t gid); | ||
1209 | 1215 | ||
1210 | #if ENABLE_FEATURE_UTMP | 1216 | #if ENABLE_FEATURE_UTMP |
1211 | void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname); | 1217 | void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname); |