Home
last modified time | relevance | path

Searched refs:ngroups (Results 1 – 5 of 5) sorted by relevance

/busybox-1.35.0/libbb/
Dbb_getgroups.c13 gid_t* FAST_FUNC bb_getgroups(int *ngroups, gid_t *group_array) in bb_getgroups() argument
15 int n = ngroups ? *ngroups : 0; in bb_getgroups()
44 if (ngroups) in bb_getgroups()
45 *ngroups = n; in bb_getgroups()
/busybox-1.35.0/libpwdgrp/
Dpwd_grp.c503 int ngroups; in getgrouplist_internal() local
508 ngroups = 1; in getgrouplist_internal()
524 group_list = xrealloc_vector(group_list, /*8=2^3:*/ 3, ngroups); in getgrouplist_internal()
525 group_list[ngroups++] = group.gr_gid; in getgrouplist_internal()
533 *ngroups_ptr = ngroups; in getgrouplist_internal()
539 int ngroups; in initgroups() local
540 gid_t *group_list = getgrouplist_internal(&ngroups, user, gid); in initgroups()
542 ngroups = setgroups(ngroups, group_list); in initgroups()
544 return ngroups; in initgroups()
547 int FAST_FUNC getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups) in getgrouplist() argument
[all …]
/busybox-1.35.0/util-linux/
Dmkfs_ext2.c231 uint32_t ngroups; in mkfs_ext2_main() local
347 ngroups = div_roundup(nblocks - first_block, blocks_per_group); in mkfs_ext2_main()
349 group_desc_blocks = div_roundup(ngroups, blocksize / sizeof(*gd)); in mkfs_ext2_main()
379 inodes_per_group = div_roundup(ninodes, ngroups); in mkfs_ext2_main()
400 …overhead = (has_super(ngroups - 1) ? (1/*sb*/ + group_desc_blocks) : 0) + 1/*bbmp*/ + 1/*ibmp*/ + … in mkfs_ext2_main()
439 , inodes_per_group * ngroups, nblocks in mkfs_ext2_main()
443 , ngroups in mkfs_ext2_main()
451 for (i = 1; i < ngroups; i++) { in mkfs_ext2_main()
500 STORE_LE(sb->s_inodes_count, inodes_per_group * ngroups); in mkfs_ext2_main()
501 STORE_LE(sb->s_free_inodes_count, inodes_per_group * ngroups - EXT2_GOOD_OLD_FIRST_INO); in mkfs_ext2_main()
[all …]
/busybox-1.35.0/coreutils/
Dtest.c430 int ngroups; member
444 #define ngroups (S.ngroups ) macro
642 group_array = bb_getgroups(&ngroups, NULL); in initialize_group_array()
657 if (ngroups == 0) in is_a_group_member()
661 for (i = 0; i < ngroups; i++) in is_a_group_member()
/busybox-1.35.0/include/
Dlibbb.h1194 gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC;