Lines Matching refs:ngroups
601 _check_groups(const char *function, int32_t ngroups)
605 if (ngroups > 0 && ngroups < NGROUPS_MAX) {
616 snprintf(buffer, sizeof(buffer), "%d", (ngroups == 0 ? INT_MAX : ngroups));
634 getgrouplist_internal(const char *name, int basegid, gid_t *groups, uint32_t *ngroups)
641 * On input, ngroups specifies the size of the groups array.
652 if (ngroups == NULL) return 0;
654 max = (*ngroups);
655 *ngroups = 0;
659 *ngroups = 1;
684 *ngroups = x;
691 getgrouplist(const char *name, int basegid, int *groups, int *ngroups)
694 _check_groups("getgrouplist", *ngroups);
697 return getgrouplist_internal(name, basegid, (gid_t *)groups, (uint32_t *)ngroups);
798 uint32_t ngroups;
824 ngroups = NGROUPS;
832 (void) getgrouplist_internal(name, basegid, groups, &ngroups);
834 status = __initgroups(ngroups, groups, uid);