Searched refs:ngroups (Results 26 - 50 of 57) sorted by relevance

123

/freebsd-current/sys/dev/p2sb/
H A Dlewisburg_gpiocm.c73 int ngroups; member in struct:lbgcommunity
107 for (i = 0; i < sc->community->ngroups; ++i)
320 sc->community->ngroups = i;
/freebsd-current/sys/dev/nctgpio/
H A Dnctgpio.c148 int ngroups; member in struct:nct_device
154 .ngroups = 5,
221 .ngroups = 2,
252 .ngroups = 2,
283 .ngroups = 2,
315 .ngroups = 10,
444 .ngroups = 6,
523 .ngroups = 9,
638 .ngroups = 9,
1185 for (g = 0, gp = sc->nctdevp->groups; g < sc->nctdevp->ngroups;
[all...]
/freebsd-current/lib/libcasper/services/cap_grp/tests/
H A Dgrp_test.c1210 size_t ngroups)
1224 for (i = 0; i < ngroups; i++) {
1230 if (i == ngroups)
1233 if (got != ngroups)
1243 for (i = 0; i < ngroups; i++) {
1249 if (i == ngroups)
1252 if (got != ngroups)
1255 for (i = 0; i < ngroups; i++) {
1261 for (i = 0; i < ngroups; i++) {
1267 for (i = 0; i < ngroups;
1209 runtest_groups(cap_channel_t *capgrp, const char **names, const gid_t *gids, size_t ngroups) argument
[all...]
/freebsd-current/usr.sbin/rpc.lockd/
H A Dkern.c234 int ngroups; local
236 ngroups = xucred->cr_ngroups - 1;
237 if (ngroups > NGRPS)
238 ngroups = NGRPS;
244 ngroups,
/freebsd-current/usr.bin/quota/
H A Dquota.c103 int ngroups; local
146 ngroups = getgroups(NGROUPS, gidset);
147 if (ngroups < 0)
150 for (i = 0; i < ngroups; i++)
/freebsd-current/contrib/bsddialog/lib/
H A Dbsddialog.h226 int cols, unsigned int menurows, unsigned int ngroups,
/freebsd-current/contrib/lib9p/
H A Dutils.c197 int ngroups; local
203 ngroups = NGROUPS_MAX;
204 groups = malloc((size_t)ngroups * sizeof(*groups));
206 int_groups = groups ? malloc((size_t)ngroups * sizeof(*int_groups)) :
218 (void) getgrouplist(name, (int)basegid, int_groups, &ngroups);
219 for (i = 0; i < ngroups; i++)
222 (void) getgrouplist(name, basegid, groups, &ngroups);
224 *angroups = ngroups;
/freebsd-current/crypto/openssl/apps/lib/
H A Ds_cb.c358 int i, ngroups, *groups, nid; local
360 ngroups = SSL_get1_groups(s, NULL);
361 if (ngroups <= 0)
363 groups = app_malloc(ngroups * sizeof(int), "groups to print");
367 for (i = 0; i < ngroups; i++) {
379 ngroups = SSL_get_shared_group(s, -1);
380 for (i = 0; i < ngroups; i++) {
386 if (ngroups == 0)
/freebsd-current/contrib/pjdfstest/
H A Dpjdfstest.c1195 long ngroups; local
1199 ngroups = sysconf(_SC_NGROUPS_MAX);
1200 assert(ngroups > 0);
1201 gidset = malloc(sizeof(*gidset) * ngroups);
1205 if ((long)i >= ngroups) {
/freebsd-current/contrib/pf/authpf/
H A Dauthpf.c502 int gl_init = 0, ngroups = NGROUPS + 1; local
539 pw->pw_gid, groups, &ngroups);
543 for ( cnt = 0; cnt < ngroups; cnt++) {
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddraid.c497 uint64_t ngroups = 1; local
503 while (ngroups * (groupwidth) % (children - nspares) != 0)
504 ngroups++;
515 for (int j = 0; j < ngroups; j++) {
/freebsd-current/contrib/tcpdump/
H A Dprint-pim.c164 u_int ngroups, njoin, nprune; local
210 ngroups = GET_U_1(bp + 3);
213 while (ngroups != 0) {
254 ngroups--;
H A Dprint-icmp6.c1559 u_int group, nsrcs, ngroups; local
1568 ngroups = GET_BE_U_2(icp->icmp6_data16[1]);
1569 ND_PRINT(", %u group record(s)", ngroups);
1573 for (i = 0; i < ngroups; i++) {
/freebsd-current/sys/fs/ext2fs/
H A Dext2_vfsops.c1071 int i, ngroups; local
1089 for (i = 0, ngroups = 0; i < fs->e2fs_gcount; i++) {
1091 ngroups++;
1094 ngroups = fs->e2fs_gcount;
1100 overhead += ngroups * (1 /* superblock */ + ngdb);
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dvdev_draid.c77 * of D+P and C-S as the number of groups; i.e. ngroups = LCM(D+P, C-S).
915 * We cycle through a disk permutation every groupsz * ngroups chunk
916 * of address space. Note that ngroups * groupsz must be a multiple
919 * size is 10, and there are 13 data drives in the draid, then ngroups
924 uint64_t ngroups = vdc->vdc_ngroups; local
942 * - within a permutation there are ngroups groups spread over the
944 * - each permutation has (groupwidth * ngroups) / ndisks rows
948 *perm = group / ngroups;
949 uint64_t row = (*perm * ((groupwidth * ngroups) / ndisks)) +
950 (((group % ngroups) * groupwidt
2199 uint64_t ndata, nparity, nspares, ngroups; local
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c1358 uint64_t ngroups = 1; local
1472 while (ngroups * (ndata + nparity) % (children - nspares) != 0)
1473 ngroups++;
1479 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NGROUPS, ngroups);
/freebsd-current/sys/dev/iwn/
H A Dif_iwnreg.h1204 uint8_t ngroups; member in struct:iwn_phy_calib
1211 uint8_t ngroups; member in struct:iwn5000_phy_calib_crystal
1221 uint8_t ngroups; member in struct:iwn5000_phy_calib_temp_offset
1232 uint8_t ngroups; member in struct:iwn5000_phy_calib_temp_offsetv2
1243 uint8_t ngroups; member in struct:iwn_phy_calib_gain
/freebsd-current/contrib/lib9p/backend/
H A Dfs.c856 int ngroups; local
921 * This either succeeds and fills in ngroups and
922 * returns non-NULL, or fails and sets ngroups to 0
923 * and returns NULL. Either way ngroups is correct.
925 gids = l9p_getgrlist(pwd->pw_name, pwd->pw_gid, &ngroups);
928 ngroups = 0;
937 ai = malloc(sizeof(*ai) + (size_t)ngroups * sizeof(gid_t));
951 ai->ai_ngids = ngroups;
952 memcpy(ai->ai_gids, gids, (size_t)ngroups * sizeof(gid_t));
/freebsd-current/tests/sys/fs/fusefs/
H A Ddefault_permissions.cc254 int i, ngroups = 64; local
255 gid_t newgid, groups[ngroups];
257 getgrouplist(getlogin(), getegid(), groups, &ngroups); local
261 for (i = 0; i < ngroups; i++) {
/freebsd-current/sys/kern/
H A Dkern_prot.c2180 int ngroups; local
2186 ngroups = MIN(cr->cr_ngroups, XU_NGROUPS);
2187 xcr->cr_ngroups = ngroups;
2189 ngroups * sizeof(*cr->cr_groups));
H A Dkern_mib.c125 SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RDTUN |
H A Duipc_usrreq.c2776 int ngroups, i, cmsgtype; local
2779 ngroups = MIN(td->td_ucred->cr_ngroups, CMGROUP_MAX);
2781 ctrlsz = SOCKCRED2SIZE(ngroups);
2784 ctrlsz = SOCKCREDSIZE(ngroups);
2803 sc->sc_ngroups = ngroups;
2814 sc->sc_ngroups = ngroups;
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc7302 int *ngroups) {
7305 COMMON_INTERCEPTOR_ENTER(ctx, getgrouplist, name, basegid, groups, ngroups);
7308 if (ngroups)
7309 COMMON_INTERCEPTOR_READ_RANGE(ctx, ngroups, sizeof(*ngroups));
7310 res = REAL(getgrouplist)(name, basegid, groups, ngroups);
7311 if (!res && groups && ngroups) {
7312 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, groups, sizeof(*groups) * (*ngroups));
7313 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ngroups, sizeof(*ngroups));
[all...]
/freebsd-current/crypto/openssl/ssl/
H A Dt1_lib.c675 int *groups, size_t ngroups)
687 if (ngroups == 0) {
691 if ((glist = OPENSSL_malloc(ngroups * sizeof(*glist))) == NULL) {
695 for (i = 0; i < ngroups; i++) {
710 *pextlen = ngroups;
674 tls1_set_groups(uint16_t **pext, size_t *pextlen, int *groups, size_t ngroups) argument
/freebsd-current/crypto/openssh/
H A Dsftp-server.c1729 u_int n, nusers = 0, ngroups = 0; local
1761 verbose("users-groups-by-id: %u users, %u groups", nusers, ngroups);

Completed in 415 milliseconds

123