HomeSort by: relevance | last modified time | path
    Searched defs:ngroups (Results 1 - 15 of 15) sorted by relevancy

  /src/lib/libc/gen/
initgroups.c 57 gid_t groups_list[NGROUPS];
58 int ngroups; local in function:__weak_alias
64 ngroups = NGROUPS;
65 if (getgrouplist(uname, agroup, groups, &ngroups) == -1) {
66 int maxgroups = ngroups;
70 if (getgrouplist(uname, agroup, groups, &ngroups) == -1)
71 ngroups = maxgroups;
73 rval = setgroups(ngroups, groups);
76 if (ng > 0 && ng < ngroups)
    [all...]
  /src/sys/miscfs/umapfs/
umap_subr.c 140 gid_t groups[NGROUPS];
141 uint16_t ngroups; local in function:umap_mapids
176 ngroups = kauth_cred_ngroups(credp);
177 for (i = 0; i < ngroups; i++) {
188 kauth_cred_setgroups(credp, groups, ngroups, -1, UIO_SYSSPACE);
  /src/sys/miscfs/procfs/
procfs_status.c 104 uint16_t ngroups; local in function:procfs_status_netbsd
124 ngroups = kauth_cred_ngroups(cr);
126 for (i = 0; i < ngroups; i++)
191 ngroups = kauth_cred_ngroups(cr);
192 for (i = 0; i < ngroups; i++)
212 uint16_t ngroups; local in function:procfs_status_linux
227 ngroups = kauth_cred_ngroups(cr);
229 for (i = 0; i < ngroups; i++)
  /src/sys/arch/arm/amlogic/
meson_pinctrl.h 76 u_int ngroups; member in struct:meson_pinctrl_config
  /src/usr.bin/newgrp/
grutil.c 69 alloc_groups(int *ngroups, gid_t **groups, int *ngroupsmax)
79 *ngroups = getgroups(*ngroupsmax, *groups);
80 if (*ngroups == -1) {
88 addgid(gid_t *groups, int ngroups, int ngroupsmax, gid_t gid, int makespace)
93 for (i = 0; i < ngroups && groups[i] != gid; i++)
97 if (i == ngroups) {
98 if (ngroups < ngroupsmax)
99 groups[ngroups++] = gid;
102 * if ngroups > nmaxgroups. If makespace is
131 if (setgroups(ngroups, groups) < 0
140 int ngroups, ngroupsmax; local in function:addgrp
213 int ngroups, ngroupsmax; local in function:newgrp
    [all...]
  /src/distrib/utils/libhack/
getgrent.c 215 int maxgroups, i, ngroups, ret; local in function:getgrouplist
219 ngroups = 0;
224 if (ngroups < maxgroups)
225 groups[ngroups] = agroup;
228 ngroups++;
241 for (i = 0; i < MIN(ngroups, maxgroups); i++) {
245 if (ngroups < maxgroups)
246 groups[ngroups] = grp->gr_gid;
249 ngroups++;
254 *grpcnt = ngroups;
    [all...]
  /src/sys/compat/linux/common/
linux_uid16.c 280 unsigned int i, ngroups = SCARG(uap, gidsetsize); local in function:linux_sys_setgroups16
282 if (ngroups > COMPAT_NGROUPS16)
284 error = copyin(SCARG(uap, gidset), lset, ngroups);
288 for (i = 0; i < ngroups; i++)
  /src/usr.bin/id/
id.c 223 int cnt, ngroups; local in function:current
244 if ((ngroups = getgroups(maxgroups, groups)) != 0) {
245 for (fmt = " groups=%ju", lastid = -1, cnt = 0; cnt < ngroups;
263 int cnt, id, lastid, ngroups; local in function:user
271 ngroups = maxgroups + 1;
272 if (getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups) == -1) {
273 glist = malloc(ngroups * sizeof(gid_t));
274 (void) getgrouplist(pw->pw_name, pw->pw_gid, glist, &ngroups);
276 for (fmt = " groups=%u", lastid = -1, cnt = 0; cnt < ngroups;
294 int cnt, ngroups; local in function:group
    [all...]
  /src/sys/coda/
coda_subr.c 511 uint16_t ngroups; local in function:coda_print_cred
517 ngroups = kauth_cred_ngroups(cred);
518 for (i=0; i < ngroups; i++)
  /src/usr.bin/quota/
quota.c 113 int ngroups; local in function:main
114 gid_t mygid, gidset[NGROUPS];
166 ngroups = getgroups(NGROUPS, gidset);
167 if (ngroups < 0)
170 for (i = 0; i < ngroups; i++)
258 int ngroups; local in function:showgid
259 gid_t mygid, gidset[NGROUPS];
268 ngroups = getgroups(NGROUPS, gidset)
292 int ngroups; local in function:showgrpname
    [all...]
  /src/usr.sbin/lpr/lpc/
lpc.c 322 static gid_t groups[NGROUPS];
323 static int ngroups; local in function:ingroup
333 ngroups = getgroups(NGROUPS, groups);
334 if (ngroups < 0)
338 for (i = 0; i < ngroups; i++)
  /src/sys/ufs/ext2fs/
ext2fs_vfsops.c 879 int i, ngroups; local in function:ext2fs_statvfs
900 ngroups = 1
904 for (i = 0, ngroups = 0; i < fs->e2fs_ncg; i++) {
906 ngroups++;
909 ngroups = fs->e2fs_ncg;
914 overhead += ngroups * (1 /* superblock */ + ngdb);
  /src/lib/libp2k/
p2k.c 102 gid_t groups[NGROUPS];
105 short ngroups = __arraycount(groups); local in function:cred_create
115 puffs_cred_getgroups(pcr, groups, &ngroups);
117 /* LINTED: ngroups is ok */
118 return rump_pub_cred_create(uid, gid, ngroups, groups);
  /src/usr.sbin/mountd/
mountd.c 2072 int ngroups; local in function:parsecred
2073 gid_t usergroups[NGROUPS + 1];
2097 ngroups = NGROUPS + 1;
2098 if (getgrouplist(pw->pw_name, pw->pw_gid, usergroups, &ngroups))
2103 cr->cr_ngroups = ngroups - 1;
2105 for (cnt = 1; cnt < ngroups; cnt++)
2122 while (names != NULL && *names != '\0' && cr->cr_ngroups < NGROUPS) {
2134 if (names != NULL && *names != '\0' && cr->cr_ngroups == NGROUPS)
  /src/sys/dev/pci/
if_iwnreg.h 1071 uint8_t ngroups; member in struct:iwn_phy_calib
1078 uint8_t ngroups; member in struct:iwn5000_phy_calib_crystal
1088 uint8_t ngroups; member in struct:iwn6000_phy_calib_temp_offset
1099 uint8_t ngroups; member in struct:iwn2000_phy_calib_temp_offset
1110 uint8_t ngroups; member in struct:iwn_phy_calib_gain

Completed in 48 milliseconds