Searched refs:gid (Results 76 - 100 of 579) sorted by relevance

1234567891011>>

/freebsd-current/contrib/ofed/libibverbs/examples/
H A Duc_pingpong.c76 union ibv_gid gid; member in struct:pingpong_dest
97 if (dest->gid.global.interface_id) {
100 attr.ah_attr.grh.dgid = dest->gid;
138 char gid[33]; local
169 gid_to_wire_gid(&my_dest->gid, gid);
171 my_dest->psn, gid);
190 &rem_dest->psn, gid);
191 wire_gid_to_gid(gid, &rem_dest->gid);
215 char gid[33]; local
555 char gid[33]; local
[all...]
H A Ddevinfo.c49 static int null_gid(union ibv_gid *gid) argument
51 return !(gid->raw[8] | gid->raw[9] | gid->raw[10] | gid->raw[11] |
52 gid->raw[12] | gid->raw[13] | gid->raw[14] | gid->raw[15]);
166 union ibv_gid gid; local
[all...]
/freebsd-current/contrib/ofed/libibmad/
H A Dportid.c67 char gid[sizeof local
69 if (inet_ntop(AF_INET6, portid->gid, gid, sizeof(gid)))
70 n += sprintf(buf + n, " Gid %s", gid);
/freebsd-current/usr.sbin/bluetooth/sdpd/
H A Dmain.c153 int uid, gid; local
157 log_notice("Cannot set uid/gid. Not a superuser");
161 gid = getgid();
179 gid = strtol(group, &ep, 10);
189 gid = grp->gr_gid;
193 if (setgid(gid) < 0) {
/freebsd-current/tests/sys/fs/fusefs/
H A Ddefault_permissions_privileged.cc71 uid_t uid = 0, gid_t gid = 0)
86 out.body.attr.attr.gid = gid;
92 uint64_t attr_valid, uid_t uid = 0, gid_t gid = 0)
94 FuseTest::expect_lookup(relpath, ino, mode, 0, 1, attr_valid, uid, gid);
/freebsd-current/usr.sbin/pw/
H A Dcpdir.c40 gid_t gid, int flags)
56 fchownat(rootfd, dir, uid, gid, AT_SYMLINK_NOFOLLOW);
83 st.st_mode & _DEF_DIRMODE, uid, gid, st.st_flags);
92 fchownat(homefd, p, uid, gid, AT_SYMLINK_NOFOLLOW);
115 fchown(destfd, uid, gid);
39 copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, gid_t gid, int flags) argument
H A Dpw_vpw.c151 vnextgrent(char const *nam, gid_t gid, int doclose) argument
174 if (gid != (gid_t)-1) {
175 if (gid == gr->gr_gid)
201 vgetgrgid(gid_t gid) argument
203 return vnextgrent(NULL, gid, 1);
H A Dpwupd.h50 struct group * (*_getgrgid)(gid_t gid);
97 #define GETGRGID(gid) PWF._getgrgid(gid)
135 struct group * vgetgrgid(gid_t gid);
141 gid_t gid, int flags);
/freebsd-current/usr.sbin/chroot/
H A Dchroot.c56 gid_t gid, *gidlist; local
62 gid = 0;
99 gid = (gid_t)strtoul(group, &endp, 0);
105 gid = gp->gr_gid;
161 if (group && setgid(gid) == -1)
/freebsd-current/sys/ofed/drivers/infiniband/core/
H A Dib_cache.c90 union ib_gid gid; member in struct:ib_gid_table_entry
177 const union ib_gid *gid,
198 ret = ib_dev->add_gid(ib_dev, port, ix, gid, attr,
210 /* if modify_gid failed, just delete the old gid */
212 gid = &zgid;
217 memcpy(&table->data_vec[ix].gid, gid, sizeof(*gid));
235 const union ib_gid *gid,
238 return write_gid(ib_dev, port, table, ix, gid, att
233 add_gid(struct ib_device *ib_dev, u8 port, struct ib_gid_table *table, int ix, const union ib_gid *gid, const struct ib_gid_attr *attr, bool default_gid) argument
242 modify_gid(struct ib_device *ib_dev, u8 port, struct ib_gid_table *table, int ix, const union ib_gid *gid, const struct ib_gid_attr *attr, bool default_gid) argument
259 find_gid(struct ib_gid_table *table, const union ib_gid *gid, const struct ib_gid_attr *val, bool default_gid, unsigned long mask, int *pempty) argument
326 make_default_gid(if_t dev, union ib_gid *gid) argument
332 ib_cache_gid_add(struct ib_device *ib_dev, u8 port, union ib_gid *gid, struct ib_gid_attr *attr) argument
370 ib_cache_gid_del(struct ib_device *ib_dev, u8 port, union ib_gid *gid, struct ib_gid_attr *attr) argument
429 __ib_cache_gid_get(struct ib_device *ib_dev, u8 port, int index, union ib_gid *gid, struct ib_gid_attr *attr) argument
458 _ib_cache_gid_table_find(struct ib_device *ib_dev, const union ib_gid *gid, const struct ib_gid_attr *val, unsigned long mask, u8 *port, u16 *index) argument
488 ib_cache_gid_find(struct ib_device *ib_dev, const union ib_gid *gid, enum ib_gid_type gid_type, if_t ndev, u8 *port, u16 *index) argument
505 ib_find_cached_gid_by_port(struct ib_device *ib_dev, const union ib_gid *gid, enum ib_gid_type gid_type, u8 port, if_t ndev, u16 *index) argument
561 ib_cache_gid_find_by_filter(struct ib_device *ib_dev, const union ib_gid *gid, u8 port, bool (*filter)(const union ib_gid *, const struct ib_gid_attr *, void *), void *context, u16 *index) argument
678 union ib_gid gid; local
875 ib_get_cached_gid(struct ib_device *device, u8 port_num, int index, union ib_gid *gid, struct ib_gid_attr *gid_attr) argument
897 ib_find_cached_gid(struct ib_device *device, const union ib_gid *gid, enum ib_gid_type gid_type, if_t ndev, u8 *port_num, u16 *index) argument
908 ib_find_gid_by_filter(struct ib_device *device, const union ib_gid *gid, u8 port_num, bool (*filter)(const union ib_gid *gid, const struct ib_gid_attr *, void *), void *context, u16 *index) argument
[all...]
H A Dib_roce_gid_mgmt.c92 u8 port, union ib_gid *gid, if_t ndev)
107 gid, &gid_attr);
111 gid, &gid_attr);
219 union ib_gid gid; local
261 if (rdma_ip2gid(&entry->ipx_addr.sa[0], &gid) != 0)
268 if (ib_find_cached_gid_by_port(device, &gid, i,
275 update_gid(GID_ADD, device, port, &gid, entry->ndev);
279 for (i = default_gids; ib_get_cached_gid(device, port, i, &gid, &gid_attr) == 0; i++) {
289 if (memcmp(&gid, &zgid, sizeof(zgid)) == 0)
295 rdma_gid2ip(&ipx.sa[0], &gid);
91 update_gid(enum gid_op_type gid_op, struct ib_device *ib_dev, u8 port, union ib_gid *gid, if_t ndev) argument
[all...]
/freebsd-current/usr.bin/login/
H A Dlogin_audit.c67 gid_t gid = pwd->pw_gid; local
95 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid,
119 gid_t gid; local
145 gid = pwd->pw_gid;
147 gid, pid, pid, &tid)) == NULL)
175 gid_t gid = pwd->pw_gid; local
192 if ((tok = au_to_subject32(uid, geteuid(), getegid(), uid, gid, pid,
/freebsd-current/contrib/kyua/utils/
H A Dpasswd_test.cpp52 ATF_REQUIRE_EQ(2, user.gid);
77 ATF_REQUIRE_EQ(::getgid(), user.gid);
101 ATF_REQUIRE_EQ(::getgid(), user.gid);
125 ATF_REQUIRE_EQ(15, user.gid);
138 ATF_REQUIRE_EQ(::getgid(), user.gid);
157 ATF_REQUIRE_EQ(15, user.gid);
/freebsd-current/crypto/heimdal/kcm/
H A Dclient.c121 ccache->gid != client->gid) && !CLIENT_IS_ROOT(client))
137 ccache->gid = client->gid;
160 * default gid.
170 gid_t gid = pwd->pw_gid; local
171 kcm_chown(context, client, ccache, uid, gid);
/freebsd-current/crypto/openssh/
H A Dsshpty.c169 gid_t gid; local
177 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
193 if (st.st_uid != pw->pw_uid || st.st_gid != gid) {
194 if (chown(tty, pw->pw_uid, gid) == -1) {
198 tty, (u_int)pw->pw_uid, (u_int)gid,
202 tty, (u_int)pw->pw_uid, (u_int)gid,
/freebsd-current/tools/test/stress2/misc/
H A Dkillpg2.sh117 int e, gid;
121 gid = share[GID];
124 gid = share[GID];
125 if (gid != 0) {
128 if (killpg(gid, SIGUSR1) == -1) {
131 err(1, "pgkill(%d)", gid);
/freebsd-current/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c87 getgrgid(gid_t gid) argument
92 if (gid == 0) {
95 } else if (gid == 100) {
/freebsd-current/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-cred.c96 * array via ->gid.
106 gids = KGIDP_TO_SGIDP(gi->gid);
114 /* Check if the passed gid is available in supplied credential. */
116 groupmember(gid_t gid, const cred_t *cr) argument
122 rc = cr_groups_search(gi, SGID_TO_KGID(gid));
/freebsd-current/contrib/ofed/infiniband-diags/src/
H A Dibaddr.c59 ibmad_gid_t gid; local
74 mad_encode_field(gid, IB_GID_PREFIX_F, &prefix);
75 mad_encode_field(gid, IB_GID_GUID_F, &guid);
78 printf("GID %s ", inet_ntop(AF_INET6, gid, gid_str,
120 {"gid_show", 'g', 0, NULL, "show gid address only"},
128 "32\t\t# show lid range and gid of lid 32",
132 "-g 32\t\t# show gid address only",
/freebsd-current/usr.sbin/gstat/
H A Dgstat.c88 struct gident *gid; local
312 gid = geom_lookupid(&gmp, gsp->id);
313 if (gid == NULL) {
318 gid = geom_lookupid(&gmp, gsp->id);
320 if (gid == NULL)
322 if (gid->lg_what == ISCONSUMER && !flag_c)
324 if (flag_p && gid->lg_what == ISPROVIDER &&
326 (gid->lg_ptr))->lg_geom->lg_rank != 1)
334 if ((gid->lg_what == ISPROVIDER
335 || gid
[all...]
/freebsd-current/contrib/libc-pwcache/
H A Dpwcache.c112 * routines that control user, group, uid and gid caches (for the archive
137 static GIDC **gidtb; /* gid to name cache */
139 static GIDC **grptb; /* group name to gid cache */
324 * caches the name (if any) for the gid. If noname clear, we always
331 group_from_gid(gid_t gid, int noname) argument
340 * see if we have this gid cached
342 pptr = gidtb + (gid % GID_SZ);
345 if ((ptr != NULL) && (ptr->valid > 0) && (ptr->gid == gid)) {
347 * have an entry for this gid
462 gid_from_group(const char *name, gid_t *gid) argument
[all...]
/freebsd-current/sbin/mknod/
H A Dmknod.c91 if (*s == '\0') /* Argument was "[:.]gid". */
101 gid_t gid; local
138 uid = gid = -1;
143 gid = a_gid(cp);
152 if (chown(argv[1], uid, gid))
/freebsd-current/sys/kern/
H A Dsysv_ipc.c92 } else if (groupmember(perm->gid, cred) ||
158 new->gid = old->gid;
172 old->gid = new->gid;
198 CP(*ip32, *ip, gid);
211 CP(*ip, *ip32, gid);
225 CP(*ip32, *ip, gid);
238 CP(*ip, *ip32, gid);
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_read_format_lha.c143 int uid, gid; local
146 uid = gid = 1001;
148 uid = gid = 0;
166 assertEqualInt(gid, archive_entry_gid(ae));
180 assertEqualInt(gid, archive_entry_gid(ae));
196 assertEqualInt(gid, archive_entry_gid(ae));
208 assertEqualInt(gid, archive_entry_gid(ae));
220 assertEqualInt(gid, archive_entry_gid(ae));
236 assertEqualInt(gid, archive_entry_gid(ae));
/freebsd-current/contrib/pjdfstest/tests/rename/
H A D09.t39 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid
57 expect ${inode},${id},${id} lstat ${n1}/${n3} inode,uid,gid
76 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid
94 expect ${inode},${id},${id} lstat ${n0}/${n2} inode,uid,gid
96 expect 65534,65534 lstat ${n1}/${n3} uid,gid
112 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid
118 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid
131 expect ${inode},${id},${id} lstat ${n0}/${n2} inode,uid,gid
136 expect ${inode},${id},${id} lstat ${n0}/${n3} inode,uid,gid
141 expect ${inode},${id},${id} lstat ${n0}/${n2} inode,uid,gid
[all...]

Completed in 385 milliseconds

1234567891011>>