Searched refs:getgroups (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getgroups.c46 atf_tc_set_md_var(tc, "descr", "Test errors in getgroups(2)");
55 ATF_REQUIRE(getgroups(10, (gid_t *)-1) == -1);
63 ATF_REQUIRE(getgroups(-1, gidset) == -1);
70 atf_tc_set_md_var(tc, "descr", "Test getgid(2) from getgroups(2)");
81 * the GIDs returned by getgroups(2).
83 n = getgroups(NGROUPS_MAX, gidset);
91 atf_tc_fail("getgid(2) not found from getgroups(2)");
97 atf_tc_set_md_var(tc, "descr", "Test setgid(2) from getgroups(2)");
111 n = getgroups(NGROUPS_MAX, gidset);
132 atf_tc_fail("getgroups(
[all...]
/freebsd-11-stable/contrib/atf/atf-c/detail/
H A Duser.c54 ngroups = getgroups(NGROUPS_MAX, groups);
H A Duser_test.c69 ngids = getgroups(NGROUPS_MAX, gids);
71 atf_tc_fail("Call to getgroups failed");
/freebsd-11-stable/crypto/openssh/
H A Duidswap.c85 saved_egroupslen = getgroups(0, NULL);
87 fatal("getgroups: %.100s", strerror(errno));
91 if (getgroups(saved_egroupslen, saved_egroups) < 0)
92 fatal("getgroups: %.100s", strerror(errno));
103 user_groupslen = getgroups(0, NULL);
105 fatal("getgroups: %.100s", strerror(errno));
109 if (getgroups(user_groupslen, user_groups) < 0)
110 fatal("getgroups: %.100s", strerror(errno));
H A Ddefines.h806 # define getgroups(a,b) ((a)==0 && (b)==NULL ? NGROUPS_MAX : getgroups((a),(b))) macro
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_borrow_cred.c86 r = getgroups(NGROUPS_MAX, scred->groups);
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c209 PJDLOG_VERIFY(getgroups(0, NULL) == ngroups);
216 PJDLOG_VERIFY(getgroups(ngroups, ggroups) == ngroups);
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c137 getgroups(int gidsetlen, gid_t *gidset) function
/freebsd-11-stable/sys/kern/
H A Dcapabilities.conf273 getgroups
/freebsd-11-stable/sys/compat/freebsd32/
H A Dcapabilities.conf123 getgroups
/freebsd-11-stable/sbin/hastd/
H A Dsubr.c292 PJDLOG_VERIFY(getgroups(0, NULL) == 1);
293 PJDLOG_VERIFY(getgroups(1, gidset) == 1);
/freebsd-11-stable/usr.bin/id/
H A Did.c295 ngroups = getgroups(ngroups_max, groups);
394 ngroups = getgroups(ngroups_max, groups);
/freebsd-11-stable/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c314 uc_cfg.proc_cred.gid_num = getgroups(0, (gid_t *)NULL);
316 uc_logmsg("init: getgroups");
325 if (getgroups(uc_cfg.proc_cred.gid_num, uc_cfg.proc_cred.gid_arr) < 0) {
326 uc_logmsg("init: getgroups");
/freebsd-11-stable/sys/sys/
H A Dsyscall.mk67 getgroups.o \
/freebsd-11-stable/usr.sbin/chown/
H A Dchown.c293 ngroups = getgroups(ngroups_max, groups);
/freebsd-11-stable/usr.bin/newgrp/
H A Dnewgrp.c195 if ((ngrps = getgroups(ngrps_max, (gid_t *)grps)) < 0) {
196 warn("getgroups");
/freebsd-11-stable/usr.sbin/lpr/lpc/
H A Dlpc.c368 ngroups = getgroups(ngroups_max, groups);
370 err(1, "getgroups");
/freebsd-11-stable/lib/libc/rpc/
H A Dauth_unix.c200 if ((ngids = getgroups(ngids_max, gids)) < 0)
/freebsd-11-stable/include/
H A Dunistd.h342 int getgroups(int, gid_t []);
/freebsd-11-stable/lib/libc/sys/
H A DMakefile.inc175 getgroups.2 \
/freebsd-11-stable/contrib/tcsh/
H A Dsh.exp.c153 * 3) getgroups(0, unused)
161 n = getgroups(0, (GETGROUPS_T *) NULL);
165 n = getgroups((int) n, groups);
H A Dtc.prompt.c218 gcnt = getgroups(NGROUPS_MAX, grps);
/freebsd-11-stable/usr.bin/quota/
H A Dquota.c156 ngroups = getgroups(NGROUPS, gidset);
158 err(1, "getgroups");
/freebsd-11-stable/contrib/gcc/
H A Dsys-protos.h447 extern int getgroups(int, TARGET_GETGROUPS_T []);
/freebsd-11-stable/contrib/sendmail/src/
H A Dmain.c326 i = getgroups(NGROUPS_MAX, InitialGidSet);

Completed in 220 milliseconds

12