Searched refs:gid (Results 226 - 250 of 549) sorted by relevance

1234567891011>>

/freebsd-12-stable/libexec/flua/modules/
H A Dlfs.c109 * gid: 0
245 PUSH_INTEGER(gid, gid)
303 PUSH_ENTRY(gid),
/freebsd-12-stable/usr.sbin/lpr/lpc/
H A Dlpc.c359 register gid_t gid; local
374 gid = gptr->gr_gid;
376 if (gid == groups[i])
/freebsd-12-stable/usr.sbin/nscd/agents/
H A Dgroup.c127 gid_t gid; local
155 memcpy(&gid, key + sizeof(enum nss_lookup_type), sizeof(gid_t));
169 result = getgrgid(gid);
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/
H A Dsaquery.c72 ib_gid_t sgid, dgid, gid, mgid; member in struct:query_params
123 static unsigned valid_gid(ib_gid_t * gid) argument
127 return memcmp(&zero_gid, gid, sizeof(*gid));
314 char mgid[INET6_ADDRSTRLEN], gid[INET6_ADDRSTRLEN]; local
337 inet_ntop(AF_INET6, mr->port_gid.raw, gid, sizeof(gid)),
372 * this port gid interface id.
413 char gid[INET6_ADDRSTRLEN]; local
469 inet_ntop(AF_INET6, p_sr->service_gid.raw, gid, sizeo
1046 sm_pr_query(struct sa_handle * h, ibmad_gid_t *gid, int srclid, int destlid) argument
1905 ibmad_gid_t gid = { 0 }; local
[all...]
H A Dibdiag_common.h154 int *port, ibmad_gid_t *gid);
/freebsd-12-stable/sys/kern/
H A Dkern_prot.c455 * compatible. It says that setting the uid/gid to euid/egid is a special
515 uid != oldcred->cr_svuid && /* allow setuid(saved gid) */
642 gid_t gid; member in struct:setgid_args
651 gid_t gid; local
654 gid = uap->gid;
655 AUDIT_ARG_GID(gid);
661 error = mac_cred_check_setgid(oldcred, gid);
677 if (gid != oldcred->cr_rgid && /* allow setgid(getgid()) */
679 gid !
1265 groupmember(gid_t gid, struct ucred *cred) argument
[all...]
/freebsd-12-stable/libexec/atrun/
H A Datrun.c124 run_file(const char *filename, uid_t uid, gid_t gid) argument
233 "#!/bin/sh\n# atrun uid=%%ld gid=%%ld\n# mail %%%ds %%d",
248 if (ngid != gid)
249 perrx("Job %s - groupid %ld does not match file gid %lu",
250 filename, ngid, (unsigned long)gid);
326 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
372 if (setgid(gid) < 0 || setegid(pentry->pw_gid) < 0)
472 /* We don't need root privileges all the time; running under uid and gid daemon
/freebsd-12-stable/sbin/mdmfs/
H A Dmdmfs.c639 * name. Upon return, the uid and gid fields in 'mip' will contain
640 * the uid and gid of the user and group name in 'str', respectively.
658 gid_t *gid; local
661 gid = &mip->mi_gid;
684 /* Derive gid. */
685 *gid = strtoul(group, &p, 10);
686 if (*gid == (gid_t)ULONG_MAX)
692 *gid = gr->gr_gid;
/freebsd-12-stable/contrib/ofed/libibverbs/
H A Dcompat-1_0.c211 int (*attach_mcast)(struct ibv_qp *qp, union ibv_gid *gid,
213 int (*detach_mcast)(struct ibv_qp *qp, union ibv_gid *gid,
248 int index, union ibv_gid *gid);
283 int __ibv_attach_mcast_1_0(struct ibv_qp_1_0 *qp, union ibv_gid *gid,
285 int __ibv_detach_mcast_1_0(struct ibv_qp_1_0 *qp, union ibv_gid *gid,
652 int index, union ibv_gid *gid)
654 return ibv_query_gid(context->real_context, port_num, index, gid);
990 int __ibv_attach_mcast_1_0(struct ibv_qp_1_0 *qp, union ibv_gid *gid, uint16_t lid) argument
992 return ibv_attach_mcast(qp->real_qp, gid, lid);
996 int __ibv_detach_mcast_1_0(struct ibv_qp_1_0 *qp, union ibv_gid *gid, uint16_ argument
651 __ibv_query_gid_1_0(struct ibv_context_1_0 *context, uint8_t port_num, int index, union ibv_gid *gid) argument
[all...]
/freebsd-12-stable/contrib/pf/authpf/
H A Dauthpf.c99 gid_t gid; local
298 gid = getegid();
299 if (setgroups(1, &gid) == -1) {
757 gid_t gid; local
806 gid = getgid();
807 if (setregid(gid, gid) == -1) {
/freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/
H A Dprovider.c73 static int c4iw_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
78 static int c4iw_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
297 c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, union ib_gid *gid) argument
303 CTR5(KTR_IW_CXGBE, "%s ibdev %p, port %d, index %d, gid %p", __func__,
304 ibdev, port, index, gid);
306 memset(&gid->raw[0], 0, sizeof(gid->raw));
312 memcpy(&gid->raw[0], pi->vi[0].hw_addr, ETHER_ADDR_LEN);
/freebsd-12-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_sysfs.c119 union ib_gid gid; local
123 mlx4_ib_iov_dentry->entry_num, &gid, 1);
127 be16_to_cpu(((__be16 *) gid.raw)[0]),
128 be16_to_cpu(((__be16 *) gid.raw)[1]),
129 be16_to_cpu(((__be16 *) gid.raw)[2]),
130 be16_to_cpu(((__be16 *) gid.raw)[3]),
131 be16_to_cpu(((__be16 *) gid.raw)[4]),
132 be16_to_cpu(((__be16 *) gid.raw)[5]),
133 be16_to_cpu(((__be16 *) gid.raw)[6]),
134 be16_to_cpu(((__be16 *) gid
[all...]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_replay.c57 uint64_t uid, uint64_t gid, uint64_t rdev, uint64_t nodeid)
68 vap->va_gid = (gid_t)(IS_EPHEMERAL(gid)) ? -1 : gid;
142 zfs_replay_domain_cnt(uint64_t uid, uint64_t gid) argument
149 gid_idx = FUID_INDEX(gid);
173 * Set the uid/gid in the fuid_info structure.
176 zfs_replay_fuid_ugid(zfs_fuid_info_t *fuid_infop, uint64_t uid, uint64_t gid) argument
185 if (IS_EPHEMERAL(gid))
186 fuid_infop->z_fuid_group = gid;
193 zfs_replay_fuid_domain(void *buf, void **end, uint64_t uid, uint64_t gid) argument
56 zfs_init_vattr(vattr_t *vap, uint64_t mask, uint64_t mode, uint64_t uid, uint64_t gid, uint64_t rdev, uint64_t nodeid) argument
220 zfs_replay_fuids(void *start, void **end, int idcnt, int domcnt, uint64_t uid, uint64_t gid) argument
[all...]
H A Dzfs_sa.c203 uint64_t uid, gid, mode, rdev, xattr, parent; local
238 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_GID(zfsvfs), NULL, &gid, 8);
257 SA_ADD_BULK_ATTR(sa_attrs, count, SA_ZPL_GID(zfsvfs), NULL, &gid, 8);
/freebsd-12-stable/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c92 const union ib_gid *gid, const struct sockaddr *addr,
332 __path_find(struct ipoib_dev_priv *priv, void *gid) argument
341 ret = memcmp(gid, path->pathrec.dgid.raw,
1134 const union ib_gid *gid, u16 pkey_index, const struct sockaddr *addr,
1141 (!gid || !memcmp(gid, &priv->local_gid, sizeof(*gid)))) {
1160 matches += ipoib_match_gid_pkey_addr(child_priv, gid,
1178 u16 pkey_index, const union ib_gid *gid,
1190 matches += ipoib_match_gid_pkey_addr(priv, gid, pkey_inde
1133 ipoib_match_gid_pkey_addr(struct ipoib_dev_priv *priv, const union ib_gid *gid, u16 pkey_index, const struct sockaddr *addr, struct net_device **found_net_dev) argument
1177 __ipoib_get_net_dev_by_params(struct list_head *dev_list, u8 port, u16 pkey_index, const union ib_gid *gid, const struct sockaddr *addr, struct net_device **net_dev) argument
1201 ipoib_get_net_dev_by_params(struct ib_device *dev, u8 port, u16 pkey, const union ib_gid *gid, const struct sockaddr *addr, void *client_data) argument
[all...]
/freebsd-12-stable/crypto/heimdal/kcm/
H A Dcache.c41 char *kcm_ccache_nextid(pid_t pid, uid_t uid, gid_t gid) argument
173 "uid %d gid %d client %s server %s ncreds %d",
174 p, p->name, p->refcnt, p->flags, p->mode, p->uid, p->gid,
210 cache->gid = -1;
315 slot->gid = -1;
445 gid_t gid,
451 name = kcm_ccache_nextid(pid, uid, gid);
442 kcm_ccache_gen_new(krb5_context context, pid_t pid, uid_t uid, gid_t gid, kcm_ccache *ccache) argument
/freebsd-12-stable/usr.sbin/pw/tests/
H A Dpw_useradd_test.sh194 gid=12345
199 ${PW} useradd "${user_name}" -g ${gid}
203 ${PW} useradd -n "${user_name}" -g ${gid}
206 atf_check -s exit:0 ${PW} groupadd blafasel -g ${gid}
208 ${PW} useradd "${user_name}" -g ${gid}
212 ${PW} useradd -n "${user_name}" -g ${gid}
/freebsd-12-stable/contrib/llvm-project/lldb/source/API/
H A DSBLaunchInfo.cpp92 void SBLaunchInfo::SetGroupID(uint32_t gid) { argument
93 LLDB_RECORD_METHOD(void, SBLaunchInfo, SetGroupID, (uint32_t), gid);
95 m_opaque_sp->SetGroupID(gid);
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_stat.c247 gid_t gid; local
255 gid = getgid();
263 if (gid != sa.st_gid || sa.st_gid != sb.st_gid)
/freebsd-12-stable/contrib/sendmail/src/
H A Drecipient.c143 ** send to -- effective uid/gid are important.
1441 volatile gid_t gid; local
1501 gid = DefGid;
1507 gid = ca->q_gid;
1517 if (initgroups(user, gid) == -1)
1521 user, (long) gid);
1529 gidset[0] = gid;
1538 if (gid != 0 && setgid(gid) < -1)
1541 syserr("setgid(%ld) failure", (long) gid);
[all...]
/freebsd-12-stable/sys/fs/fuse/
H A Dfuse_kernel.h141 uint32_t gid; member in struct:fuse_attr
448 uint32_t gid; member in struct:fuse_setattr_in
675 uint32_t gid; member in struct:fuse_in_header
/freebsd-12-stable/usr.bin/xinstall/
H A Dxinstall.c110 static gid_t gid; variable
302 if (gid_from_group(group, &gid) == -1) {
306 gid = id;
309 gid = (gid_t)-1;
481 * parse uid or gid from arg into id, returning non-zero if successful
991 if (!dounpriv && ((gid != (gid_t)-1 && gid != to_sb.st_gid) ||
1002 (gid != (gid_t)-1 && gid != to_sb.st_gid) ||
1004 if (fchown(to_fd, uid, gid)
[all...]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.h32 uint32_t gid = UINT32_MAX) override;
/freebsd-12-stable/contrib/openbsm/bin/auditd/
H A Dauditd_fbsd.c71 auditd_openlog(int debug, gid_t __unused gid) argument
/freebsd-12-stable/contrib/sendmail/libsmdb/
H A Dsmcdb.c53 static int smcdb_set_owner __P((SMDB_DATABASE *database, uid_t uid, gid_t gid));
277 smcdb_set_owner(database, uid, gid)
280 gid_t gid;
291 result = fchown(fd, uid, gid);

Completed in 290 milliseconds

1234567891011>>