| /freebsd-14.2/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_getgroups.c | 55 ATF_REQUIRE(getgroups(10, (gid_t *)-1) == -1); in ATF_TC_BODY() 60 ATF_REQUIRE(getgroups(-1, gidset) == -1); in ATF_TC_BODY() 80 n = getgroups(NGROUPS_MAX, gidset); in ATF_TC_BODY() 108 n = getgroups(NGROUPS_MAX, gidset); in ATF_TC_BODY() 153 ATF_REQUIRE(getgroups(0, gidset) >= 0); in ATF_TC_BODY()
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | uidswap.c | 86 saved_egroupslen = getgroups(0, NULL); in temporarily_use_uid() 92 if (getgroups(saved_egroupslen, saved_egroups) == -1) in temporarily_use_uid() 105 user_groupslen = getgroups(0, NULL); in temporarily_use_uid() 111 if (getgroups(user_groupslen, user_groups) == -1) in temporarily_use_uid()
|
| H A D | defines.h | 870 # define getgroups(a,b) ((a)==0 && (b)==NULL ? NGROUPS_MAX : getgroups((a),(b))) macro
|
| /freebsd-14.2/contrib/openbsm/bin/auditdistd/ |
| H A D | sandbox.c | 209 PJDLOG_VERIFY(getgroups(0, NULL) == ngroups); in sandbox() 216 PJDLOG_VERIFY(getgroups(ngroups, ggroups) == ngroups); in sandbox()
|
| /freebsd-14.2/contrib/atf/atf-c/detail/ |
| H A D | user.c | 54 ngroups = getgroups(NGROUPS_MAX, groups); in atf_user_is_member_of_group()
|
| H A D | user_test.c | 69 ngids = getgroups(NGROUPS_MAX, gids); in ATF_TC_BODY()
|
| /freebsd-14.2/sbin/hastd/ |
| H A D | subr.c | 290 PJDLOG_VERIFY(getgroups(0, NULL) == 1); in drop_privs() 291 PJDLOG_VERIFY(getgroups(1, gidset) == 1); in drop_privs()
|
| /freebsd-14.2/contrib/openpam/lib/libpam/ |
| H A D | openpam_borrow_cred.c | 84 r = getgroups(NGROUPS_MAX, scred->groups); in openpam_borrow_cred()
|
| /freebsd-14.2/tools/regression/sockets/unix_cmsg/ |
| H A D | unix_cmsg.c | 312 uc_cfg.proc_cred.gid_num = getgroups(0, (gid_t *)NULL); in init() 323 if (getgroups(uc_cfg.proc_cred.gid_num, uc_cfg.proc_cred.gid_arr) < 0) { in init()
|
| /freebsd-14.2/contrib/netbsd-tests/usr.bin/id/ |
| H A D | pwgr.c | 137 getgroups(int gidsetlen, gid_t *gidset) in getgroups() function
|
| /freebsd-14.2/usr.bin/id/ |
| H A D | id.c | 297 ngroups = getgroups(ngroups_max, groups); in id_print() 396 ngroups = getgroups(ngroups_max, groups); in group()
|
| /freebsd-14.2/share/doc/psd/05.sysman/ |
| H A D | spell.ok | 151 getgroups
|
| /freebsd-14.2/usr.sbin/chown/ |
| H A D | chown.c | 280 ngroups = getgroups(ngroups_max, groups); in chownerr()
|
| /freebsd-14.2/contrib/capsicum-test/ |
| H A D | syscalls.h | 105 #define getgroups_ getgroups
|
| /freebsd-14.2/usr.bin/newgrp/ |
| H A D | newgrp.c | 193 if ((ngrps = getgroups(ngrps_max, (gid_t *)grps)) < 0) { in addgroup()
|
| /freebsd-14.2/usr.sbin/lpr/lpc/ |
| H A D | lpc.c | 368 ngroups = getgroups(ngroups_max, groups); in ingroup()
|
| /freebsd-14.2/lib/libc/rpc/ |
| H A D | auth_unix.c | 199 if ((ngids = getgroups(ngids_max, gids)) < 0) in authunix_create_default()
|
| /freebsd-14.2/include/ |
| H A D | unistd.h | 343 int getgroups(int, gid_t []);
|
| /freebsd-14.2/contrib/tcsh/ |
| H A D | sh.exp.c | 161 n = getgroups(0, (GETGROUPS_T *) NULL); in sh_access() 165 n = getgroups((int) n, groups); in sh_access()
|
| H A D | tc.prompt.c | 218 gcnt = getgroups(NGROUPS_MAX, grps); in tprintf()
|
| /freebsd-14.2/contrib/kyua/utils/process/ |
| H A D | isolation_test.cpp | 175 if (::getgroups(1, groups) == -1) { in operator ()()
|
| /freebsd-14.2/lib/libc/sys/ |
| H A D | Makefile.inc | 209 getgroups.2 \
|
| H A D | Symbol.map | 99 getgroups;
|
| /freebsd-14.2/sys/sys/ |
| H A D | syscall.mk | 66 getgroups.o \
|
| /freebsd-14.2/usr.bin/quota/ |
| H A D | quota.c | 156 ngroups = getgroups(NGROUPS, gidset); in main()
|