HomeSort by: relevance | last modified time | path
    Searched refs:ngroups (Results 1 - 25 of 25) 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/tests/usr.bin/id/
pwgr.c 105 getgrouplist(const char *name, gid_t basegid, gid_t *groups, int *ngroups)
110 if (*ngroups >= 1) {
115 ret = (*ngroups >= cnt) ? 0 : -1;
116 *ngroups = cnt;
118 if (*ngroups >= 1) {
123 if (*ngroups >= 2) {
128 ret = (*ngroups >= cnt) ? 0 : -1;
129 *ngroups = cnt;
  /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/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/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/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/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/sys/arch/arm/amlogic/
meson_pinctrl.h 76 u_int ngroups; member in struct:meson_pinctrl_config
meson_pinctrl.c 114 for (n = 0; n < sc->sc_conf->ngroups; n++) {
170 for (n = 0; n < sc->sc_conf->ngroups; n++) {
362 for (n = 0; n < sc->sc_conf->ngroups; n++) {
meson8b_pinctrl.c 524 .ngroups = __arraycount(meson8b_cbus_groups),
532 .ngroups = __arraycount(meson8b_aobus_groups),
mesongxbb_pinctrl.c 545 .ngroups = __arraycount(mesongxbb_periphs_groups),
553 .ngroups = __arraycount(mesongxbb_aobus_groups),
mesongxl_pinctrl.c 472 .ngroups = __arraycount(mesongxl_periphs_groups),
480 .ngroups = __arraycount(mesongxl_aobus_groups),
mesong12a_pinctrl.c 665 .ngroups = __arraycount(mesong12a_periphs_groups),
673 .ngroups = __arraycount(mesong12a_aobus_groups),
  /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/rump/librump/rumpkern/
accessors.c 103 rump_cred_create(uid_t uid, gid_t gid, size_t ngroups, gid_t *groups)
116 rv = kauth_cred_setgroups(cred, groups, ngroups, 0, UIO_SYSSPACE);
  /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/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/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/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/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
if_iwn.c 4086 cmd.ngroups = 1;
4136 cmd.ngroups = 1;
5459 cmd.ngroups = 1;
5476 cmd.ngroups = 1;
5612 cmd.ngroups = 1;
  /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/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_common_interceptors.inc 6834 int *ngroups) {
6837 COMMON_INTERCEPTOR_ENTER(ctx, getgrouplist, name, basegid, groups, ngroups);
6840 if (ngroups)
6841 COMMON_INTERCEPTOR_READ_RANGE(ctx, ngroups, sizeof(*ngroups));
6842 res = REAL(getgrouplist)(name, basegid, groups, ngroups);
6843 if (!res && groups && ngroups) {
6844 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, groups, sizeof(*groups) * (*ngroups));
6845 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ngroups, sizeof(*ngroups));
    [all...]
  /src/usr.sbin/user/
user.c 541 append_group(char *user, int ngroups, const char **groups)
558 for (i = 0 ; i < ngroups ; i++) {
605 for (i = 0 ; i < ngroups ; i++) {

Completed in 59 milliseconds