HomeSort by: relevance | last modified time | path
    Searched refs:ngroups (Results 1 - 25 of 75) sorted by relevancy

1 2 3

  /src/crypto/external/bsd/openssh/dist/
groupaccess.c 44 static int ngroups; variable
58 if (ngroups > 0)
61 maxgroups = ngroups = sizeof(groups_bygid) / sizeof(gid_t);
62 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1) {
65 ngroups = maxgroups;
67 for (i = 0, j = 0; i < ngroups; i++)
70 return (ngroups = j);
82 for (i = 0; i < ngroups; i++)
98 for (i = 0; i < ngroups; i++) {
120 if (ngroups > 0)
    [all...]
  /src/external/bsd/atf/dist/atf-c/detail/
user.c 52 static int ngroups = -1; local
56 if (ngroups == -1) {
57 ngroups = getgroups(NGROUPS_MAX, groups);
58 INV(ngroups >= 0);
62 for (i = 0; !found && i < ngroups; i++)
  /src/external/bsd/openpam/dist/lib/libpam/
openpam_cred.h 49 int ngroups; member in struct:pam_saved_cred
openpam_restore_cred.c 80 setgroups(scred->ngroups, scred->groups) < 0 ||
  /src/lib/libc/gen/
initgroups.c 57 gid_t groups_list[NGROUPS];
58 int ngroups; local
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
213 int ngroups, ngroupsmax; local
    [all...]
  /src/external/bsd/atf/dist/tools/
user.cpp 76 static int ngroups = -1; local
80 if (ngroups == -1) {
81 ngroups = getgroups(NGROUPS_MAX, groups);
82 assert(ngroups >= 0);
86 for (i = 0; !found && i < ngroups; i++)
  /src/usr.bin/id/
id.c 223 int cnt, ngroups; local
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
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
    [all...]
  /src/distrib/utils/libhack/
getgrent.c 215 int maxgroups, i, ngroups, ret; local
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/external/bsd/libbind/dist/irs/
util.c 69 gid_t basegid, gid_t *groups, int *ngroups)
77 maxgroups = *ngroups;
107 *ngroups = ng;
getgrent.c 112 return (getgrouplist_p(name, basegid, groups, ngroups, net_data));
191 getgrouplist_p(const char *name, gid_t basegid, gid_t *groups, int *ngroups,
196 *ngroups = 0;
199 return ((*gr->list)(gr, name, basegid, groups, ngroups));
gen_gr.c 235 gid_t basegid, gid_t *groups, int *ngroups)
244 maxgroups = *ngroups;
245 *ngroups = 0;
257 if (newgid(*ngroups, groups, t_groups[n])) {
258 if (*ngroups == maxgroups) {
262 groups[(*ngroups)++] = t_groups[n];
486 newgid(int ngroups, gid_t *groups, gid_t group) {
487 ngroups--, groups++;
488 for (; ngroups-- > 0; groups++)
  /src/sys/miscfs/umapfs/
umap_subr.c 140 gid_t groups[NGROUPS];
141 uint16_t ngroups; local
176 ngroups = kauth_cred_ngroups(credp);
177 for (i = 0; i < ngroups; i++) {
188 kauth_cred_setgroups(credp, groups, ngroups, -1, UIO_SYSSPACE);
  /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/
fb.h 19 size_t ngroups = FB_NGROUPS(nbits); local
20 memset(fb, 0, ngroups * sizeof(fb_group_t));
25 size_t ngroups = FB_NGROUPS(nbits); local
26 for (size_t i = 0; i < ngroups; i++) {
36 size_t ngroups = FB_NGROUPS(nbits); local
38 size_t limit = (trailing_bits == 0 ? ngroups : ngroups - 1);
47 return fb[ngroups - 1] == ((fb_group_t)1 << trailing_bits) - 1;
178 size_t ngroups = FB_NGROUPS(nbits);
198 ssize_t group_ind_bound = forward ? (ssize_t)ngroups : -1
    [all...]
  /src/external/bsd/jemalloc.old/include/jemalloc/internal/
fb.h 19 size_t ngroups = FB_NGROUPS(nbits); local
20 memset(fb, 0, ngroups * sizeof(fb_group_t));
25 size_t ngroups = FB_NGROUPS(nbits); local
26 for (size_t i = 0; i < ngroups; i++) {
36 size_t ngroups = FB_NGROUPS(nbits); local
38 size_t limit = (trailing_bits == 0 ? ngroups : ngroups - 1);
47 return fb[ngroups - 1] == ((fb_group_t)1 << trailing_bits) - 1;
178 size_t ngroups = FB_NGROUPS(nbits);
198 ssize_t group_ind_bound = forward ? (ssize_t)ngroups : -1
    [all...]
  /src/external/bsd/jemalloc/dist/include/jemalloc/internal/
fb.h 23 size_t ngroups = FB_NGROUPS(nbits); local
24 memset(fb, 0, ngroups * sizeof(fb_group_t));
29 size_t ngroups = FB_NGROUPS(nbits); local
30 for (size_t i = 0; i < ngroups; i++) {
40 size_t ngroups = FB_NGROUPS(nbits); local
42 size_t limit = (trailing_bits == 0 ? ngroups : ngroups - 1);
51 return fb[ngroups - 1] == ((fb_group_t)1 << trailing_bits) - 1;
182 size_t ngroups = FB_NGROUPS(nbits);
202 ssize_t group_ind_bound = forward ? (ssize_t)ngroups : -1
    [all...]
  /src/external/bsd/jemalloc/include/jemalloc/internal/
fb.h 23 size_t ngroups = FB_NGROUPS(nbits); local
24 memset(fb, 0, ngroups * sizeof(fb_group_t));
29 size_t ngroups = FB_NGROUPS(nbits); local
30 for (size_t i = 0; i < ngroups; i++) {
40 size_t ngroups = FB_NGROUPS(nbits); local
42 size_t limit = (trailing_bits == 0 ? ngroups : ngroups - 1);
51 return fb[ngroups - 1] == ((fb_group_t)1 << trailing_bits) - 1;
182 size_t ngroups = FB_NGROUPS(nbits);
202 ssize_t group_ind_bound = forward ? (ssize_t)ngroups : -1
    [all...]
  /src/usr.bin/quota/
quota.c 113 int ngroups; local
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
259 gid_t mygid, gidset[NGROUPS];
268 ngroups = getgroups(NGROUPS, gidset)
292 int ngroups; local
    [all...]
  /src/external/bsd/jemalloc.old/dist/src/
bitmap.c 89 binfo->ngroups = BITMAP_BITS2GROUPS(nbits);
95 return binfo->ngroups;
111 bitmap[binfo->ngroups - 1] >>= extra;
  /src/external/bsd/jemalloc/dist/src/
bitmap.c 90 binfo->ngroups = BITMAP_BITS2GROUPS(nbits);
96 return binfo->ngroups;
112 bitmap[binfo->ngroups - 1] >>= extra;
  /src/sys/arch/arm/amlogic/
meson_pinctrl.h 76 u_int ngroups; member in struct:meson_pinctrl_config
  /src/sys/miscfs/procfs/
procfs_status.c 104 uint16_t ngroups; local
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
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
333 ngroups = getgroups(NGROUPS, groups);
334 if (ngroups < 0)
338 for (i = 0; i < ngroups; i++)

Completed in 85 milliseconds

1 2 3