/freebsd-10-stable/usr.sbin/chroot/ |
H A D | chroot.c | 68 int ch, gids; local 119 for (gids = 0; 120 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) { 125 gidlist[gids] = (gid_t)strtoul(p, &endp, 0); 131 gidlist[gids] = gp->gr_gid; 135 gids++; 137 if (p != NULL && gids == ngroups_max) 157 if (gids && setgroups(gids, gidlist) == -1)
|
/freebsd-10-stable/contrib/atf/atf-c/detail/ |
H A D | user_test.c | 61 gid_t gids[NGROUPS_MAX]; local 69 ngids = getgroups(NGROUPS_MAX, gids); 74 printf("User group %d is %u\n", i, gids[i]); 75 if (maxgid < gids[i]) 76 maxgid = gids[i]; 93 if (gids[i] == g)
|
/freebsd-10-stable/contrib/ofed/management/infiniband-diags/scripts/ |
H A D | ibstatus | 28 echo " default gid: " `[ -r $port_dir/gids/0 ] && cat $port_dir/gids/0 || echo unknown`
|
/freebsd-10-stable/lib/libc/rpc/ |
H A D | auth_unix.c | 188 gid_t *gids; local 191 gids = malloc(sizeof(gid_t) * ngids_max); 192 if (gids == NULL) 200 if ((ngids = getgroups(ngids_max, gids)) < 0) 205 auth = authunix_create(machname, uid, gid, ngids, gids); 206 free(gids);
|
H A D | key_prot_xdr.c | 125 pgids_val = &objp->gids.gids_val; 126 if (!xdr_array(xdrs, (char **) pgids_val, (u_int *) &objp->gids.gids_len, MAXGIDS,
|
/freebsd-10-stable/bin/getfacl/ |
H A D | getfacl.c | 77 static char gids[10]; local 80 (void)snprintf(gids, sizeof(gids), "%u", gid); 81 return (gids);
|
/freebsd-10-stable/include/rpcsvc/ |
H A D | key_prot.x | 126 const MAXGIDS = 16; /* max number of gids in gid list */ 134 u_int gids<MAXGIDS>;
|
/freebsd-10-stable/contrib/ofed/management/opensm/opensm/ |
H A D | osm_sa_multipath_record.c | 1150 IN const ib_gid_t * gids, 1159 for (i = 0; i < ngids; i++, gids++) { 1160 if (!ib_gid_is_link_local(gids)) { 1161 if ((is_sgid && ib_gid_is_multicast(gids)) || 1162 (ib_gid_get_subnet_prefix(gids) != 1173 cl_ntoh64(gids->unicast.prefix)); 1182 gids->unicast.interface_id); 1191 cl_ntoh64(gids->unicast.interface_id)); 1218 ib_gid_t *gids; local 1228 gids 1149 __osm_mpr_rcv_get_gids(IN osm_sa_t * sa, IN const ib_gid_t * gids, IN int ngids, IN int is_sgid, OUT osm_port_t ** pp_port) argument [all...] |
H A D | osm_helper.c | 1133 ib_gid_t const *p_gid = p_mpr->gids;
|
/freebsd-10-stable/usr.sbin/keyserv/ |
H A D | keyserv.c | 599 static u_int gids[NGROUPS]; local 603 cred->gids.gids_val = gids; 605 (int *)&cred->gids.gids_len, (gid_t *)gids)) { 614 cred->uid, cred->gid, cred->gids.gids_len);
|
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dsl_deleg.c | 432 const gid_t *gids; local 457 gids = crgetgroups(cr); 459 id = gids[i]; 515 const gid_t *gids; local 531 gids = crgetgroups(cr); 533 id = gids[i];
|
/freebsd-10-stable/tools/regression/priv/ |
H A D | main.c | 428 gid_t gids[1] = { gid }; local 432 if (setgroups(sizeof(gids)/sizeof(gid_t), gids) < 0)
|
/freebsd-10-stable/contrib/pjdfstest/ |
H A D | pjdfstest.c | 997 set_gids(char *gids) argument 1008 for (i = 0, g = strtok(gids, ","); g != NULL; 1011 fprintf(stderr, "too many gids\n"); 1038 char *gids, *endp; local 1042 gids = NULL; 1048 gids = optarg; 1078 if (gids != NULL) { 1079 fprintf(stderr, "changing groups to %s\n", gids); 1080 set_gids(gids);
|
/freebsd-10-stable/tools/regression/pjdfstest/ |
H A D | pjdfstest.c | 989 set_gids(char *gids) argument 1000 for (i = 0, g = strtok(gids, ","); g != NULL; 1003 fprintf(stderr, "too many gids\n"); 1030 char *gids, *endp; local 1034 gids = NULL; 1040 gids = optarg; 1070 if (gids != NULL) { 1071 fprintf(stderr, "changing groups to %s\n", gids); 1072 set_gids(gids);
|
/freebsd-10-stable/contrib/ofed/management/opensm/include/vendor/ |
H A D | osm_vendor_sa_api.h | 325 ib_gid_t gids[IB_MULTIPATH_MAX_GIDS]; member in struct:_osmv_multipath_req_t
|
/freebsd-10-stable/contrib/ofed/management/opensm/libvendor/ |
H A D | osm_vendor_ibumad_sa.c | 720 multipath_rec.gids[j] = p_mpr_req->gids[j]; 722 multipath_rec.gids[j] = p_mpr_req->gids[j];
|
/freebsd-10-stable/sys/ofed/drivers/net/mlx4/ |
H A D | port.c | 518 int gids; local 521 gids = MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS; 526 if (slave <= gids % vfs) 527 return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave - 1); 529 return MLX4_ROCE_PF_GIDS + (gids % vfs) + ((gids / vfs) * (slave - 1)); 617 /* change to MULTIPLE entries: number of guest's gids 618 * need a FOR-loop here over number of gids the guest has. 619 * 1. Check no duplicates in gids passed by slave 646 continue; /* don't compare to slave's current gids */ [all...] |
/freebsd-10-stable/bin/ps/ |
H A D | ps.c | 128 gid_t *gids; member in union:listinfo::__anon1 480 flag = *gidlist.l.gids; 548 if (kp->ki_rgid == gidlist.l.gids[elem]) 741 inf->l.gids[(inf->count)++] = grp->gr_gid;
|
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/ |
H A D | main.c | 97 union ib_gid gids[128]; member in struct:update_gid_work 1365 union ib_gid *gids; local 1375 gids = mailbox->buf; 1376 memcpy(gids, gw->gids, sizeof gw->gids); 1384 memcpy(gw->dev->iboe.gid_table[gw->port - 1], gw->gids, sizeof gw->gids); 1474 memcpy(work->gids, dev->iboe.gid_table[port - 1], sizeof work->gids); [all...] |
H A D | mad.c | 1398 int gids; local 1404 gids = MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS; 1409 if (slave <= gids % vfs) 1410 return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave - 1); 1412 return MLX4_ROCE_PF_GIDS + (gids % vfs) + ((gids / vfs) * (slave - 1));
|
/freebsd-10-stable/sys/netipsec/ |
H A D | ipsec.h | 77 gid_t gids; member in struct:secpolicyindex
|
/freebsd-10-stable/contrib/libarchive/cpio/ |
H A D | cpio.c | 1134 char uids[16], gids[16]; local 1156 strcpy(gids, cpio_i64toa(archive_entry_gid(entry))); 1157 gname = gids;
|
/freebsd-10-stable/contrib/ofed/management/opensm/osmtest/ |
H A D | osmtest.c | 5380 ib_gid_set_default(&request.gids[0], portguid); 5381 ib_gid_set_default(&request.gids[1], portguid); 5406 ib_gid_set_default(&request.gids[0], portguid); 5427 ib_gid_set_default(&request.gids[0], portguid); 5429 request.gids[1].unicast.prefix = CL_HTON64(0xff12401bffff0000ULL); 5430 request.gids[1].unicast.interface_id = CL_HTON64(0x00000000ffffffffULL); 5451 request.gids[0].unicast.prefix = CL_HTON64(0xff12401bffff0000ULL); 5452 request.gids[0].unicast.interface_id = CL_HTON64(0x00000000ffffffffULL); 5453 ib_gid_set_default(&request.gids[1], portguid); 5476 ib_gid_set_default(&request.gids[ [all...] |
/freebsd-10-stable/sbin/pfctl/ |
H A D | parse.y | 488 %type <v.gid> gids gid_list gid_item 2413 | GROUP gids { 3261 gids : gid_item { $$ = $1; } label 5130 struct node_uid *uids, struct node_gid *gids, struct node_icmp *icmp_types, 5163 LOOP_THROUGH(struct node_gid, gid, gids, 5298 FREE_LIST(struct node_gid, gids);
|
/freebsd-10-stable/contrib/ofed/management/opensm/include/iba/ |
H A D | ib_types.h | 6038 ib_gid_t gids[IB_MULTIPATH_MAX_GIDS];
|