/titanic_41/usr/src/cmd/ssh/sshd/ |
H A D | groupaccess.c | 38 static int ngroups, ngroups_lim; variable 56 } else if (ngroups > 0) in ga_init() 61 ngroups = ngroups_lim; in ga_init() 62 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1) in ga_init() 64 for (i = 0, j = 0; i < ngroups; i++) in ga_init() 67 return (ngroups = j); in ga_init() 79 for (i = 0; i < ngroups; i++) in ga_match() 96 for (i = 0; i < ngroups; i++) { in ga_match_pattern_list() 118 if (ngroups > 0) { in ga_free() 119 for (i = 0; i < ngroups; i++) in ga_free() [all …]
|
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | getgrouplist.c | 57 register int i, ngroups; local 62 ngroups = 0; 68 if (ngroups >= maxgroups) { 69 *grpcnt = ngroups; 72 groups[ngroups++] = agroup; 81 for (bail = 0, i = 0; bail == 0 && i < ngroups; i++) 88 if (ngroups >= maxgroups) { 92 groups[ngroups++] = grp->gr_gid; 99 *grpcnt = ngroups;
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | eaccess.c | 106 static int ngroups = -2; 109 if (ngroups == -2) 111 if ((ngroups = getgroups(0, (gid_t*)0)) <= 0) 112 ngroups = NGROUPS_MAX; 113 if (!(groups = newof(0, gid_t, ngroups + 1, 0))) 114 ngroups = -1; 116 ngroups = getgroups(ngroups, groups); 118 n = ngroups;
|
/titanic_41/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | setgroups.c | 41 setgroups(int ngroups, gid_t grouplist[]) in setgroups() argument 46 if (ngroups > NGROUPS) { in setgroups() 50 for (i = 0; i < ngroups; i++) in setgroups() 52 return (_syscall(SYS_setgroups, ngroups, glist)); in setgroups()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | initgroups.c | 50 int ngroups; in initgroups() local 70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max, in initgroups() 72 if (ngroups < 0) { in initgroups() 79 retsave = setgroups(ngroups, groups); in initgroups()
|
/titanic_41/usr/src/cmd/grpck/ |
H A D | grpck.c | 80 int ngroups; member 105 int ngroups = 0; in main() local 141 t->ngroups = 1; in main() 215 ngroups++; /* Increment number of groups found */ in main() 323 t->ngroups = 1; in main() 338 t->ngroups++; in main() 368 if (ngroups == 0) { in main() 375 if (t->ngroups > ngroups_max) { in main() 377 NGROUPS, t->user, t->ngroups); in main()
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | id.c | 209 int ngroups = 0; in getids() local 237 ngroups = getgroups(maxgroups, groups); in getids() 238 for (i = j = 0; i < ngroups; i++) in getids() 243 ngroups = j; in getids() 286 if (ngroups == 1 && groups[0] == group) in getids() 287 ngroups = 0; in getids() 335 if (ngroups > 0) in getids() 339 for (i = 0; i < ngroups; i++) in getids() 393 else if (ngroups > 0) in getids() 401 if (++i >= ngroups) break; in getids()
|
/titanic_41/usr/src/cmd/id/ |
H A D | id.c | 388 int ngroups = 0; local 391 while ((ngroups < gidsetsize) && ((group = getgrent()) != NULL)) 395 grouplist[ngroups] = group->gr_gid; 396 ngroups++; 399 if (gidsetsize && !ngroups) 400 grouplist[ngroups++] = prgid; 401 return (ngroups);
|
/titanic_41/usr/src/lib/libresolv2/common/irs/ |
H A D | util.c | 67 gid_t basegid, gid_t *groups, int *ngroups) in make_group_list() argument 75 maxgroups = *ngroups; in make_group_list() 105 *ngroups = ng; in make_group_list()
|
/titanic_41/usr/src/ucbcmd/groups/ |
H A D | groups.c | 35 int ngroups, i; in main() local 49 ngroups = getgroups(maxgrp, groups); in main() 55 for (i = 0; i < ngroups; i++) { in main()
|
/titanic_41/usr/src/cmd/groups/ |
H A D | groups.c | 108 int ngroups; in showgroups() local 122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups() 129 for (i = 1; i < ngroups; i++) { in showgroups()
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass3b.c | 298 int ngroups; in bufchk() member 391 tcp->ngroups++; in bufchk() 459 tcp->ngroups != 0)) { in bufchk() 503 tcp_all->ngroups = tcp_def->ngroups + tcp_norm->ngroups; in bufchk() 517 if (tcp_all->ngroups && !tcp_all->nclass_objs) { in bufchk()
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | netnamer.c | 314 int ngroups = 0; in netname2user_ldap() local 352 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp, in netname2user_ldap() 355 if (ngroups < 0) { in netname2user_ldap() 360 *(argp->gidlenp) = ngroups; in netname2user_ldap() 362 for (count = 0; count < ngroups; count++) { in netname2user_ldap()
|
/titanic_41/usr/src/lib/libsocket/inet/ |
H A D | rcmd.c | 569 int ngroups; in ruserok() local 608 if ((ngroups = getgroups(maxgrp, grouplist)) == -1) in ruserok() 619 setgroups(ngroups, grouplist); in ruserok() 629 setgroups(ngroups, grouplist); in ruserok() 639 setgroups(ngroups, grouplist); in ruserok() 648 setgroups(ngroups, grouplist); in ruserok()
|
/titanic_41/usr/src/lib/libproc/common/ |
H A D | proc_get_info.c | 52 proc_get_cred(pid_t pid, prcred_t *credp, int ngroups) in proc_get_cred() argument 58 size_t size = minsize + ngroups * sizeof (gid_t); in proc_get_cred()
|
H A D | Pcore.c | 138 Pcred_core(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) in Pcred_core() argument 148 ngroups = MIN(ngroups, core->core_cred->pr_ngroups); in Pcred_core() 151 sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t)); in Pcred_core() 803 int ngroups; in note_cred() local 815 ngroups = (nbytes - min_size) / sizeof (gid_t); in note_cred() 816 nbytes = sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t); in note_cred() 827 if (pcrp->pr_ngroups > ngroups) { in note_cred() 829 pcrp->pr_ngroups, ngroups); in note_cred() 830 pcrp->pr_ngroups = ngroups; in note_cred()
|
H A D | llib-lproc | 51 int Pcred(struct ps_prochandle *Pr, prcred_t *pcrp, int ngroups); 344 int proc_get_cred(pid_t pid, prcred_t *credp, int ngroups);
|
/titanic_41/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | pages.c | 309 if ((sfile.ngroups++ & 0x1f) == 0) in cb_restore_kpages() 321 sfile.ngroups, sfile.recycle); in cb_restore_kpages()
|
H A D | cprboot.h | 99 int ngroups; /* number of page groups restored */ member
|
/titanic_41/usr/src/lib/nsswitch/nis/common/ |
H A D | getnetgrent.c | 336 top_down(struct nis_netgr_be *be, const char **groups, int ngroups, in top_down() argument 354 while (ngroups > 0) { in top_down() 357 ngroups--; in top_down()
|
/titanic_41/usr/src/lib/librestart/common/ |
H A D | librestart.h | 274 int ngroups; /* -1 means use initgroups(). */ member
|
H A D | librestart.c | 2324 ci->ngroups = 0; in get_groups() 2345 ci->ngroups = 0; in get_groups() 2351 ci->ngroups = 0; in get_groups() 2358 ci->ngroups = i; in get_groups() 2614 ci->ngroups = -1; in get_ids() 3464 if (cip->ngroups == -1) { in restarter_set_method_context() 3493 } else if (cip->ngroups > 0 && in restarter_set_method_context() 3494 setgroups(cip->ngroups, cip->groups) != 0) { in restarter_set_method_context()
|
/titanic_41/usr/src/lib/libresolv2/include/ |
H A D | port_before.h | 68 #define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_acl.c | 852 int ngroups = 0; in acl_validate() local 906 ngroups++; in acl_validate() 933 if (ngroups && !nclass_objs) { in acl_validate() 937 ngroups + nusers > MAX_ACL_ENTRIES) in acl_validate()
|
/titanic_41/usr/src/cmd/sgs/elfdump/common/ |
H A D | corenote.c | 1528 Word ngroups; in dump_prcred() local 1541 ngroups = extract_as_word(state, &layout->pr_ngroups); in dump_prcred() 1542 print_array(state, &layout->pr_groups, SL_FMT_NUM_DEC, ngroups, in dump_prcred()
|