Home
last modified time | relevance | path

Searched refs:getgroups (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getgroups.c55 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/crypto/openssh/
H A Duidswap.c86 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 Ddefines.h870 # define getgroups(a,b) ((a)==0 && (b)==NULL ? NGROUPS_MAX : getgroups((a),(b))) macro
/freebsd/include/ssp/
H A Dunistd.h61 __ssp_redirect_raw(int, getgroups, getgroups, (int __len, gid_t *__buf),
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c209 PJDLOG_VERIFY(getgroups(0, NULL) == ngroups); in sandbox()
216 PJDLOG_VERIFY(getgroups(ngroups, ggroups) == ngroups); in sandbox()
/freebsd/contrib/atf/atf-c/detail/
H A Duser.c54 ngroups = getgroups(NGROUPS_MAX, groups); in atf_user_is_member_of_group()
H A Duser_test.c69 ngids = getgroups(NGROUPS_MAX, gids); in ATF_TC_BODY()
/freebsd/sbin/hastd/
H A Dsubr.c289 PJDLOG_VERIFY(getgroups(0, NULL) == 1); in drop_privs()
290 PJDLOG_VERIFY(getgroups(1, gidset) == 1); in drop_privs()
/freebsd/contrib/openpam/lib/libpam/
H A Dopenpam_borrow_cred.c84 r = getgroups(NGROUPS_MAX, scred->groups); in openpam_borrow_cred()
/freebsd/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c311 uc_cfg.proc_cred.gid_num = getgroups(0, (gid_t *)NULL); in init()
322 if (getgroups(uc_cfg.proc_cred.gid_num, uc_cfg.proc_cred.gid_arr) < 0) { in init()
/freebsd/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c137 getgroups(int gidsetlen, gid_t *gidset) in getgroups() function
/freebsd/usr.bin/id/
H A Did.c285 ngroups = getgroups(ngroups_max, groups); in id_print()
384 ngroups = getgroups(ngroups_max, groups); in group()
/freebsd/usr.bin/newgrp/
H A Dnewgrp.c192 if ((ngrps = getgroups(ngrps_max, (gid_t *)grps)) < 0) { in addgroup()
/freebsd/contrib/capsicum-test/
H A Dsyscalls.h105 #define getgroups_ getgroups
/freebsd/share/doc/psd/05.sysman/
H A Dspell.ok151 getgroups
/freebsd/usr.sbin/chown/
H A Dchown.c267 ngroups = getgroups(ngroups_max, groups); in chownerr()
/freebsd/lib/libsys/
H A DSymbol.sys.map92 getgroups;
H A DMakefile.sys209 getgroups.2 \
/freebsd/lib/libc/tests/secure/
H A Dfortify_unistd_test.c437 getgroups(__len, __stack.__buf); in ATF_TC_BODY()
455 getgroups(__len, __stack.__buf); in ATF_TC_BODY()
475 getgroups(__len, __stack.__buf); in ATF_TC_BODY()
495 getgroups(__len, __stack.__buf); in ATF_TC_BODY()
524 getgroups(__len, __stack.__buf); in ATF_TC_BODY()
/freebsd/usr.sbin/lpr/lpc/
H A Dlpc.c356 ngroups = getgroups(ngroups_max, groups); in ingroup()
/freebsd/lib/libc/rpc/
H A Dauth_unix.c195 if ((ngids = getgroups(ngids_max, gids)) < 0) in authunix_create_default()
/freebsd/include/
H A Dunistd.h344 int getgroups(int, gid_t []);
/freebsd/contrib/tcsh/
H A Dsh.exp.c161 n = getgroups(0, (GETGROUPS_T *) NULL); in sh_access()
165 n = getgroups((int) n, groups); in sh_access()
/freebsd/contrib/kyua/utils/process/
H A Disolation_test.cpp175 if (::getgroups(1, groups) == -1) { in operator ()()
/freebsd/sys/sys/
H A Dsyscall.mk68 getgroups.o \

12