aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2024-10-07 01:20:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2024-10-07 01:20:43 +0200
commit748b1681549067f2e27ab2b9102ef9352cfa8a4c (patch)
tree1b0bc13cd7a5297747ef600999a63dc0a97e8d06 /include
parentbb5525613ec109aa30d2cb1db84e18aa0b084576 (diff)
downloadbusybox-w32-748b1681549067f2e27ab2b9102ef9352cfa8a4c.tar.gz
busybox-w32-748b1681549067f2e27ab2b9102ef9352cfa8a4c.tar.bz2
busybox-w32-748b1681549067f2e27ab2b9102ef9352cfa8a4c.zip
libbb: move is_in_supplementary_groups() from test to libbb
function old new delta is_in_supplementary_groups - 54 +54 nexpr 766 721 -45 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 54/-45) Total: 9 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 67e7bf7b9..e06aef08e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1201,6 +1201,11 @@ void die_if_bad_username(const char* name) FAST_FUNC;
1201 * Dies on errors (on Linux, only xrealloc can cause this, not internal getgroups call). 1201 * Dies on errors (on Linux, only xrealloc can cause this, not internal getgroups call).
1202 */ 1202 */
1203gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC; 1203gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC;
1204/*
1205 * True if GID is in our getgroups() result.
1206 * getgroups() is cached in group_array[], to makse successive calls faster.
1207 */
1208int FAST_FUNC is_in_supplementary_groups(int *pngroups, gid_t **pgroup_array, gid_t gid);
1204 1209
1205#if ENABLE_FEATURE_UTMP 1210#if ENABLE_FEATURE_UTMP
1206void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname); 1211void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname);