/freebsd-12-stable/usr.bin/quota/ |
H A D | quota.c | 91 static int showgid(u_long gid); 236 showgid(u_long gid) argument 238 struct group *grp = getgrgid(gid); 245 return(showquotas(GRPQUOTA, gid, name));
|
/freebsd-12-stable/usr.sbin/makefs/cd9660/ |
H A D | iso9660_rrip.h | 107 u_char gid [ISODCL(29,36)]; member in struct:__anon17466
|
/freebsd-12-stable/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 229 * its owner set to 'uid', its group to 'gid' and its mode set to 'mode', 251 uid_t uid, gid_t gid, mode_t mode, struct tmpfs_node *parent, 299 nnode->tn_gid = gid; 1691 * Change ownership of the given vnode. At least one of uid or gid must 1698 tmpfs_chown(struct vnode *vp, uid_t uid, gid_t gid, struct ucred *cred, argument 1711 MPASS(uid != VNOVAL || gid != VNOVAL); 1714 if (gid == VNOVAL) 1715 gid = node->tn_gid; 1716 MPASS(uid != VNOVAL && gid != VNOVAL); 1739 (gid ! 250 tmpfs_alloc_node(struct mount *mp, struct tmpfs_mount *tmp, enum vtype type, uid_t uid, gid_t gid, mode_t mode, struct tmpfs_node *parent, char *target, dev_t rdev, struct tmpfs_node **node) argument [all...] |
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/ |
H A D | ibccquery.c | 374 {"dgid", 25, 1, NULL, "remote gid (IPv6 format)"}, 420 memcpy(&portid.gid, &dgid, sizeof(portid.gid));
|
/freebsd-12-stable/contrib/ofed/libibverbs/ |
H A D | driver.h | 272 int ibv_cmd_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid); 273 int ibv_cmd_detach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid);
|
/freebsd-12-stable/contrib/apr/network_io/unix/ |
H A D | sockopt.c | 454 gid = -1; 455 if (fchown(socket->socketdes, uid, gid) < 0) {
|
/freebsd-12-stable/contrib/libarchive/cpio/ |
H A D | cpio.c | 112 static const char *lookup_gname(struct cpio *, gid_t gid); 114 const char **name, id_t gid); 138 int uid, gid; local 320 errmsg = owner_parse(cpio->argument, &uid, &gid); 329 if (gid != -1) { 330 cpio->gid_override = gid; 1155 /* Format numeric uid/gid for display. */ 1165 /* Use gname if it's present, else lookup name from gid. */ 1352 * Lookup uname/gname from uid/gid, return NULL if no match. 1432 lookup_gname(struct cpio *cpio, gid_t gid) argument [all...] |
/freebsd-12-stable/contrib/libarchive/tar/ |
H A D | read.c | 286 if (bsdtar->gid >= 0) { 287 archive_entry_set_gid(entry, bsdtar->gid);
|
/freebsd-12-stable/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_policy.c | 296 secpolicy_vnode_setids_setgids(vnode_t *vp, cred_t *cr, gid_t gid) argument 299 if (groupmember(gid, cr))
|
/freebsd-12-stable/sys/netsmb/ |
H A D | smb_conn.h | 140 gid_t gid; /* group of connection */ member in struct:smb_vc_info 155 gid_t gid; /* group of connection */ member in struct:smb_share_info
|
/freebsd-12-stable/sys/kgssapi/ |
H A D | gssd.x | 163 uint32_t gid;
|
/freebsd-12-stable/tests/sys/mac/bsdextended/ |
H A D | matches_test.sh | 135 atf_check -s exit:0 ugidfw set 1 subject gid $gidrange object mode rasx 137 # subject gid in range 141 # subject gid out range 223 atf_check -s exit:0 ugidfw set 1 subject object gid $uidrange mode rasx 225 # object gid in range 229 # object gid out range 231 # object gid in range (different subject) 235 # object gid out range (different subject) 349 # object gid notmatches subject 352 # object gid matche [all...] |
/freebsd-12-stable/sbin/pfctl/ |
H A D | parse.y | 152 gid_t gid[2]; 229 struct node_gid *gid; 400 struct node_gid *gid; 480 %type <v.number> number icmptype icmp6type uid gid 503 %type <v.gid> gids gid_list gid_item 943 $9.uid, $9.gid, $9.icmpspec, 2446 $9.uid, $9.gid, $9.icmpspec, ""); 2473 if (filter_opts.gid) 2474 $2->tail->next = filter_opts.gid; 2475 filter_opts.gid 3427 gid : STRING { label [all...] |
/freebsd-12-stable/sbin/restore/ |
H A D | tape.c | 573 gid_t gid; local 594 gid = curfile.gid; 633 (void) lchown(name, uid, gid); 665 (void) chown(name, uid, gid); 695 (void) chown(name, uid, gid); 721 (void) fchown(ofile, uid, gid); 1394 * format inodes, copy the uid/gid to the new location 1507 curfile.gid = header->c_gid;
|
/freebsd-12-stable/usr.bin/logins/ |
H A D | logins.c | 159 find_group_bygid(gid_t gid) argument 164 if (grps[i].gr_gid == gid)
|
/freebsd-12-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_main.c | 344 static void ib_gid_to_mlx5_roce_addr(const union ib_gid *gid, argument 355 if (!gid) 378 if (ipv6_addr_v4mapped((void *)gid)) 387 !ipv6_addr_v4mapped((void *)gid)) 388 memcpy(mlx5_addr_l3_addr, gid, sizeof(*gid)); 390 memcpy(&mlx5_addr_l3_addr[12], &gid->raw[12], 4); 395 const union ib_gid *gid, 407 ib_gid_to_mlx5_roce_addr(gid, attr, in_addr); 415 unsigned int index, const union ib_gid *gid, 393 set_roce_addr(struct ib_device *device, u8 port_num, unsigned int index, const union ib_gid *gid, const struct ib_gid_attr *attr) argument 414 mlx5_ib_add_gid(struct ib_device *device, u8 port_num, unsigned int index, const union ib_gid *gid, const struct ib_gid_attr *attr, __always_unused void **context) argument 432 union ib_gid gid; local 452 union ib_gid gid; local 1009 mlx5_ib_query_gid(struct ib_device *ibdev, u8 port, int index, union ib_gid *gid) argument 2303 mlx5_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 2316 mlx5_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument [all...] |
/freebsd-12-stable/sys/security/audit/ |
H A D | audit_arg.c | 165 audit_arg_gid(gid_t gid) argument 173 ar->k_ar.ar_arg_gid = gid; 371 audit_arg_owner(uid_t uid, gid_t gid) argument 380 ar->k_ar.ar_arg_gid = gid; 640 audit_arg_posix_ipc_perm(uid_t uid, gid_t gid, mode_t mode) argument 649 ar->k_ar.ar_arg_pipc_perm.pipc_gid = gid;
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 113 #define __sanitizer_syscall_pre_chown(path, uid, gid) \ 115 (long long)(gid)) 116 #define __sanitizer_syscall_post_chown(res, path, uid, gid) \ 118 (long long)(uid), (long long)(gid)) 642 #define __sanitizer_syscall_pre_fchown(fd, uid, gid) \ 644 (long long)(gid)) 645 #define __sanitizer_syscall_post_fchown(res, fd, uid, gid) \ 647 (long long)(gid)) 924 #define __sanitizer_syscall_pre_setgid(gid) \ 925 __sanitizer_syscall_pre_impl_setgid((long long)(gid)) [all...] |
/freebsd-12-stable/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_mtree.c | 108 int64_t gid; member in struct:mtree_entry 140 int64_t gid; member in struct:mtree_writer::__anon2099 177 #define F_GID 0x00000010 /* gid */ 433 * Set the most used value of uid, gid, mode and fflags, which are 466 mtree->set.gid == acs->gid_list->m_entry->gid) 531 mtree->set.gid = acs->gid_list->m_entry->gid; 532 archive_string_sprintf(&setstr, " gid=%jd", 533 (intmax_t)mtree->set.gid); [all...] |
/freebsd-12-stable/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 161 gid_t gid; /* Group of log */ member in struct:conf_entry 409 tempwork->gid = src_entry->gid; 429 tempwork->gid = (gid_t)-1; 1185 working->gid = grp->gr_gid; 1187 working->gid = atoi(q); 1189 working->gid = (gid_t)-1; 1199 working->gid = (gid_t)-1; 2686 if (ent->uid != (uid_t)-1 || ent->gid != (gid_t)-1) { 2688 printf("\tchown %u:%u %s\n", ent->uid, ent->gid, [all...] |
/freebsd-12-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_resource_tracker.c | 87 u8 gid[16]; member in struct:res_gid 3962 struct res_qp *rqp, u8 *gid) 3967 if (!memcmp(res->gid, gid, 16)) 3974 u8 *gid, enum mlx4_protocol prot, 3985 if (find_gid(dev, slave, rqp, gid)) { 3989 memcpy(res->gid, gid, 16); 4002 u8 *gid, enum mlx4_protocol prot, 4009 res = find_gid(dev, slave, rqp, gid); 3961 find_gid(struct mlx4_dev *dev, int slave, struct res_qp *rqp, u8 *gid) argument 3973 add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, u8 *gid, enum mlx4_protocol prot, enum mlx4_steer_type steer, u64 reg_id) argument 4001 rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, u8 *gid, enum mlx4_protocol prot, enum mlx4_steer_type steer, u64 *reg_id) argument 4023 qp_attach(struct mlx4_dev *dev, int slave, struct mlx4_qp *qp, u8 gid[16], int block_loopback, enum mlx4_protocol prot, enum mlx4_steer_type type, u64 *reg_id) argument 4050 qp_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], enum mlx4_protocol prot, enum mlx4_steer_type type, u64 reg_id) argument 4064 mlx4_adjust_port(struct mlx4_dev *dev, int slave, u8 *gid, enum mlx4_protocol prot) argument 4090 u8 *gid = inbox->buf; local [all...] |
/freebsd-12-stable/contrib/ofed/libmlx4/ |
H A D | verbs.c | 1123 static int link_local_gid(const union ibv_gid *gid) argument 1125 uint32_t *tmp = (uint32_t *)gid->raw; 1135 static int is_multicast_gid(const union ibv_gid *gid) argument 1137 return gid->raw[0] == 0xff; 1140 static uint16_t get_vlan_id(union ibv_gid *gid) argument 1143 vid = gid->raw[11] << 8 | gid->raw[12];
|
/freebsd-12-stable/sys/kern/ |
H A D | uipc_shm.c | 984 shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 994 error = mac_posixshm_check_setowner(active_cred, shmfd, uid, gid); 1000 if (gid == (gid_t)-1) 1001 gid = shmfd->shm_gid; 1003 (gid != shmfd->shm_gid && !groupmember(gid, active_cred))) && 1007 shmfd->shm_gid = gid;
|
H A D | uipc_mqueue.c | 1248 gid_t gid; local 1273 gid = pn->mn_gid; 1275 gid = vap->va_gid; 1277 if (uid != pn->mn_uid || gid != pn->mn_gid) { 1291 (gid != pn->mn_gid && !groupmember(gid, ap->a_cred))) && 1295 pn->mn_gid = gid; 2572 mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 2583 if (gid == (gid_t)-1) 2584 gid [all...] |
/freebsd-12-stable/contrib/opie/ |
H A D | opielogin.c | 156 #define TTYGID(gid) tty_gid(gid) /* gid that owns all ttys */ 635 int gid = default_gid; local 639 gid = gr->gr_gid; 641 return (gid);
|