Symbol: gid_t
bin/cpdup/cpdup.c
114
static int ChgrpAllowed(gid_t g);
bin/cpdup/cpdup.c
166
static gid_t *GroupList;
bin/cpdup/cpdup.c
461
ChgrpAllowed(gid_t g)
bin/cpdup/hcproto.c
1229
hc_chown(struct HostConf *hc, const char *path, uid_t owner, gid_t group)
bin/cpdup/hcproto.c
1264
gid_t gid = (gid_t)-1;
bin/cpdup/hcproto.c
1296
hc_lchown(struct HostConf *hc, const char *path, uid_t owner, gid_t group)
bin/cpdup/hcproto.c
1331
gid_t gid = (gid_t)-1;
bin/cpdup/hcproto.c
1974
getmygroups(gid_t **gidlist)
bin/cpdup/hcproto.c
1979
if ((*gidlist = malloc(count * sizeof(gid_t))) != NULL) {
bin/cpdup/hcproto.c
1992
hc_getgroups(struct HostConf *hc, gid_t **gidlist)
bin/cpdup/hcproto.c
2023
if ((*gidlist = malloc(count * sizeof(gid_t))) == NULL)
bin/cpdup/hcproto.c
2044
gid_t *gidlist;
bin/cpdup/hcproto.c
46
static int getmygroups(gid_t **gidlist);
bin/cpdup/hcproto.h
108
int hc_chown(struct HostConf *hc, const char *path, uid_t owner, gid_t group);
bin/cpdup/hcproto.h
109
int hc_lchown(struct HostConf *hc, const char *path, uid_t owner, gid_t group);
bin/cpdup/hcproto.h
123
int hc_getgroups(struct HostConf *hc, gid_t **gidlist);
bin/csh/csh/config.h
6
#define GETGROUPS_T gid_t
bin/ls/ls.c
549
gid_t maxgroup;
bin/ls/ls.c
558
char nuser[STRBUF_SIZEOF(gid_t) + 1];
bin/pax/cpio.c
1052
if (arcn->sb.st_gid != (gid_t)(SHRT_EXT(hd->h_gid)))
bin/pax/cpio.c
291
arcn->sb.st_gid = (gid_t)asc_ul(hd->c_gid, sizeof(hd->c_gid), OCT);
bin/pax/cpio.c
570
arcn->sb.st_gid = (gid_t)asc_ul(hd->c_gid, sizeof(hd->c_gid), HEX);
bin/pax/cpio.c
867
arcn->sb.st_gid = (gid_t)(RSHRT_EXT(hd->h_gid));
bin/pax/cpio.c
882
arcn->sb.st_gid = (gid_t)(SHRT_EXT(hd->h_gid));
bin/pax/extern.h
131
int chk_path (char *, uid_t, gid_t);
bin/pax/extern.h
133
int set_ids (char *, uid_t, gid_t);
bin/pax/extern.h
134
int set_lids (char *, uid_t, gid_t);
bin/pax/file_subs.c
552
chk_path( char *name, uid_t st_uid, gid_t st_gid)
bin/pax/file_subs.c
674
set_ids(char *fnm, uid_t uid, gid_t gid)
bin/pax/file_subs.c
698
set_lids(char *fnm, uid_t uid, gid_t gid)
bin/pax/sel_subs.c
201
gid_t gid;
bin/pax/sel_subs.c
227
gid = (gid_t)gr->gr_gid;
bin/pax/sel_subs.c
229
gid = (gid_t)strtoul(str+1, NULL, 10);
bin/pax/sel_subs.h
51
gid_t gid;
bin/pax/tar.c
388
arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT);
bin/pax/tar.c
757
arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT);
crypto/openssh/audit-bsm.c
259
gid_t gid = -1;
crypto/openssh/audit-bsm.c
88
extern void aug_save_gid(gid_t);
crypto/openssh/audit-bsm.c
89
extern void aug_save_egid(gid_t);
crypto/openssh/auth.c
628
fake.pw_gid = privsep_pw == NULL ? (gid_t)-1 : privsep_pw->pw_gid;
crypto/openssh/channels.c
2488
gid_t egid;
crypto/openssh/defines.h
760
int setegid (gid_t);
crypto/openssh/groupaccess.c
50
ga_init(const char *user, gid_t base)
crypto/openssh/groupaccess.c
52
gid_t *groups_bygid;
crypto/openssh/groupaccess.h
30
int ga_init(const char *, gid_t);
crypto/openssh/sftp-server.c
1756
gr = getgrgid((gid_t)n);
crypto/openssh/sftp-usergroup.c
200
if (rgroup_name((gid_t)(d[i]->a.gid)) != NULL)
crypto/openssh/ssh-agent.c
1936
gid_t egid;
crypto/openssh/sshd-session.c
287
gid_t gidset[1];
crypto/openssh/sshpty.c
169
gid_t gid;
crypto/openssh/sshpty.c
90
if (chown(tty, (uid_t) 0, (gid_t) 0) == -1)
crypto/openssh/uidswap.c
110
user_groupslen, sizeof(gid_t));
crypto/openssh/uidswap.c
185
gid_t old_gid = getgid();
crypto/openssh/uidswap.c
46
static gid_t saved_egid = 0;
crypto/openssh/uidswap.c
53
static gid_t *saved_egroups = NULL, *user_groups = NULL;
crypto/openssh/uidswap.c
91
saved_egroupslen, sizeof(gid_t));
games/sail/extern.h
51
extern gid_t gid;
games/sail/extern.h
52
extern gid_t egid;
games/sail/globals.c
572
gid_t gid;
games/sail/globals.c
573
gid_t egid;
include/grp.h
59
gid_t gr_gid; /* group id */
include/grp.h
68
struct group *getgrgid(gid_t);
include/grp.h
71
const char *group_from_gid(gid_t, int);
include/grp.h
72
int gid_from_group(const char *, gid_t *);
include/grp.h
75
struct group * (*)(gid_t));
include/grp.h
81
int getgrgid_r(gid_t, struct group *, char *, size_t,
include/pwd.h
116
gid_t pw_gid; /* user gid */
include/rpc/auth.h
279
int netname2user(char *, uid_t *, gid_t *, int *, gid_t *);
include/rpc/auth_des.h
113
int authdes_getucred(struct authdes_cred *, uid_t *, gid_t *, int *, gid_t *);
include/unistd.h
381
int chown(const char *, uid_t, gid_t);
include/unistd.h
394
gid_t getegid(void);
include/unistd.h
396
gid_t getgid(void);
include/unistd.h
397
int getgroups(int, gid_t []);
include/unistd.h
411
int setgid(gid_t);
include/unistd.h
454
int fchown(int, uid_t, gid_t);
include/unistd.h
459
int setegid(gid_t);
include/unistd.h
468
int lchown(const char *, uid_t, gid_t);
include/unistd.h
486
int fchownat(int, const char *, uid_t, gid_t, int);
include/unistd.h
510
int setregid(gid_t, gid_t);
include/unistd.h
554
int getgrouplist(const char *, gid_t, gid_t *, int *);
include/unistd.h
557
int getpeereid(int, uid_t *, gid_t *);
include/unistd.h
558
int getresgid(gid_t *, gid_t *, gid_t *);
include/unistd.h
561
int initgroups(const char *, gid_t);
include/unistd.h
602
int setgroups(int, const gid_t *);
include/unistd.h
609
int setresgid(gid_t, gid_t, gid_t);
include/unistd.h
611
int setrgid(gid_t);
lib/libc/compat-43/setrgid.c
36
setrgid(gid_t rgid)
lib/libc/gen/getgrent.c
1082
gid_t gid;
lib/libc/gen/getgrent.c
1087
gid = (gid_t)-1;
lib/libc/gen/getgrent.c
1095
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
1299
gid_t gid;
lib/libc/gen/getgrent.c
1314
gid = (gid_t)-1;
lib/libc/gen/getgrent.c
1321
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
1469
const char *name, gid_t gid)
lib/libc/gen/getgrent.c
147
static int gr_addgid(gid_t, gid_t *, int, int *);
lib/libc/gen/getgrent.c
1499
if (q < eol && *q == ':' && gid == (gid_t)n)
lib/libc/gen/getgrent.c
1534
grp->gr_gid = (gid_t)n;
lib/libc/gen/getgrent.c
159
gid_t gid;
lib/libc/gen/getgrent.c
183
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
184
desired_size = sizeof(enum nss_lookup_type) + sizeof(gid_t);
lib/libc/gen/getgrent.c
192
sizeof(gid_t));
lib/libc/gen/getgrent.c
211
gid_t gid __unused;
lib/libc/gen/getgrent.c
225
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
306
gid_t gid __unused;
lib/libc/gen/getgrent.c
320
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
432
gr_addgid(gid_t gid, gid_t *groups, int maxgrp, int *grpcnt)
lib/libc/gen/getgrent.c
464
gid_t *groups;
lib/libc/gen/getgrent.c
465
gid_t agroup;
lib/libc/gen/getgrent.c
476
agroup = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
477
groups = va_arg(ap, gid_t *);
lib/libc/gen/getgrent.c
614
getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
653
__getgroupmembership(const char *uname, gid_t agroup, gid_t *groups,
lib/libc/gen/getgrent.c
748
getgrgid(gid_t gid)
lib/libc/gen/getgrent.c
77
int __getgroupmembership(const char *, gid_t, gid_t *, int, int *);
lib/libc/gen/getgrent.c
79
const char *, gid_t);
lib/libc/gen/getgrent.c
833
gid_t gid;
lib/libc/gen/getgrent.c
840
gid = (gid_t)-1;
lib/libc/gen/getgrent.c
847
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrent.c
87
gid_t gid;
lib/libc/gen/getgrent.c
945
gid_t gid;
lib/libc/gen/getgrent.c
952
gid = (gid_t)-1;
lib/libc/gen/getgrent.c
959
gid = va_arg(ap, gid_t);
lib/libc/gen/getgrouplist.c
43
extern int __getgroupmembership(const char *, gid_t, gid_t *, int, int *);
lib/libc/gen/getgrouplist.c
46
getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
lib/libc/gen/getpeereid.c
40
getpeereid(int s, uid_t *euid, gid_t *egid)
lib/libc/gen/getpwent.c
623
pwd->pw_gid = (gid_t)-1; /* a security issue. */
lib/libc/gen/initgroups.c
39
initgroups(const char *uname, gid_t agroup)
lib/libc/gen/initgroups.c
46
gid_t groups[NGROUPS + 1];
lib/libc/gen/pw_scan.c
113
pw->pw_gid = (gid_t)id;
lib/libc/gen/pwcache.c
120
static struct group * (*_pwcache_getgrgid)(gid_t) = getgrgid;
lib/libc/gen/pwcache.c
326
group_from_gid(gid_t gid, int noname)
lib/libc/gen/pwcache.c
457
gid_from_group(const char *name, gid_t *gid)
lib/libc/gen/pwcache.c
557
struct group * (*a_getgrgid)(gid_t))
lib/libc/gen/pwcache.h
71
gid_t gid; /* cached gid */
lib/libc/net/nss_compat.c
116
int (*fn)(gid_t, struct group *, char *, size_t, int *);
lib/libc/net/nss_compat.c
117
gid_t gid;
lib/libc/net/nss_compat.c
125
gid = va_arg(ap, gid_t);
lib/libc/rpc/auth_unix.c
181
gid_t gid;
lib/libc/rpc/auth_unix.c
182
gid_t gids[NGROUPS_MAX];
lib/libc/rpc/netnamer.c
104
gidlist[gidlen] = (gid_t) atol(p);
lib/libc/rpc/netnamer.c
151
_getgroups(char *uname, gid_t *groups)
lib/libc/rpc/netnamer.c
153
gid_t ngroups = 0;
lib/libc/rpc/netnamer.c
63
static int _getgroups(char *, gid_t *);
lib/libc/rpc/netnamer.c
74
netname2user(char *netname, uid_t *uidp, gid_t *gidp, int *gidlenp,
lib/libc/rpc/netnamer.c
75
gid_t *gidlist)
lib/libc/rpc/netnamer.c
99
*gidp = (gid_t) atol(p);
lib/libc/rpc/svc_auth_des.c
459
authdes_getucred(struct authdes_cred *adc, uid_t *uid, gid_t *gid,
lib/libc/rpc/svc_auth_des.c
460
int *grouplen, gid_t *groups)
lib/libc/rpc/svc_auth_des.c
465
gid_t i_gid;
lib/libc/rpc/svc_vc.c
686
gid_t egid;
lib/libcuse/cuse.h
66
struct cuse_dev *cuse_dev_create(const struct cuse_methods *, void *, void *, uid_t, gid_t, int, const char *,...);
lib/libcuse/cuse_lib.c
379
uid_t _uid, gid_t _gid, int _perms, const char *_fmt,...)
lib/libdm/dm_task.c
849
dm_task_set_gid(struct dm_task *dmt, gid_t gid)
lib/libdm/libdm.h
127
int dm_task_set_gid(struct dm_task *dmt, gid_t gid);
lib/libexecinfo/private_libelf.h
674
gid_t ar_gid;
lib/libipfw3/layer4/ipfw3_layer4.c
101
gid_t gid;
lib/libssh/openbsd-compat/bsd-misc.c
168
fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag)
lib/libssh/openbsd-compat/bsd-misc.h
73
int fchownat(int, const char *, uid_t, gid_t, int);
lib/libssh/openbsd-compat/openbsd-compat.h
177
int getgrouplist(const char *, gid_t, gid_t *, int *);
lib/libssh/openbsd-compat/openbsd-compat.h
204
int getpeereid(int , uid_t *, gid_t *);
lib/libssh/openbsd-compat/openbsd-compat.h
307
char *group_from_gid(gid_t, int);
lib/libutil/_secure_path.c
45
_secure_path(const char *path, uid_t uid, gid_t gid)
lib/libutil/libutil.h
88
int _secure_path(const char *, uid_t, gid_t);
lib/libutil/login_cap.c
195
gid_t egid = 0;
libexec/atrun/atrun.c
112
run_file(const char *filename, uid_t uid, gid_t gid)
libexec/atrun/atrun.c
130
gid_t ngid;
libexec/atrun/atrun.c
445
gid_t batch_gid;
libexec/atrun/atrun.c
499
batch_gid = (gid_t) -1;
libexec/atrun/atrun.c
78
gid_t real_gid, effective_gid;
libexec/dma/dma-mbox-create.c
92
gid_t mail_gid;
libexec/mknetid/hash.h
38
gid_t groupid;
libexec/mknetid/mknetid.c
108
gid_t i;
libexec/mknetid/parse_group.c
103
grscan(int search, gid_t gid, char *name)
libexec/mknetid/parse_group.c
52
static int grscan(int, gid_t, char *), start_gr(void);
sbin/ccdconfig/ccdconfig.c
326
gid_t egid;
sbin/ipfw/ipfw2.c
3205
gid_t gid;
sbin/jscan/dump_mirror.c
428
if (jattr->gid != (gid_t)-1)
sbin/jscan/dump_mirror.c
651
if (jattr->uid != (uid_t)-1 && jattr->gid != (gid_t)-1)
sbin/jscan/dump_mirror.c
655
else if (jattr->gid != (gid_t)-1)
sbin/jscan/dump_mirror.c
665
if (jattr->uid != (uid_t)-1 && jattr->gid != (gid_t)-1)
sbin/jscan/dump_mirror.c
669
else if (jattr->gid != (gid_t)-1)
sbin/jscan/jattr.h
44
gid_t gid;
sbin/jscan/subs.c
270
jattr->gid = (gid_t)-1;
sbin/mount_cd9660/mount_cd9660.c
281
static gid_t
sbin/mount_cd9660/mount_cd9660.c
286
gid_t gid;
sbin/mount_cd9660/mount_cd9660.c
71
static gid_t a_gid(const char *);
sbin/mount_hpfs/mount_hpfs.c
156
gid_t
sbin/mount_hpfs/mount_hpfs.c
161
gid_t gid;
sbin/mount_hpfs/mount_hpfs.c
54
static gid_t a_gid(char *);
sbin/mount_msdos/mount_msdos.c
217
static gid_t
sbin/mount_msdos/mount_msdos.c
222
gid_t gid;
sbin/mount_msdos/mount_msdos.c
72
static gid_t a_gid(char *);
sbin/mount_ntfs/mount_ntfs.c
167
gid_t
sbin/mount_ntfs/mount_ntfs.c
172
gid_t gid;
sbin/mount_ntfs/mount_ntfs.c
60
static gid_t a_gid(char *);
sbin/mount_tmpfs/mount_tmpfs.c
253
static gid_t
sbin/mount_tmpfs/mount_tmpfs.c
258
gid_t gid;
sbin/mount_tmpfs/mount_tmpfs.c
77
static gid_t a_gid(char *);
sbin/mount_tmpfs/mount_tmpfs.c
92
gid_t gid;
sbin/mountd/mountd.c
2302
gid_t groups[NGROUPS + 1];
sbin/mountd/mountd.c
262
def_anon.cr_groups[0] = (gid_t)65533;
sbin/restore/dirs.c
79
gid_t gid;
sbin/restore/tape.c
525
gid_t gid;
sbin/svc/svc.h
98
gid_t groups[NGROUPS];
sbin/vquota/vquota.c
235
gnode_insert(gid_t gid)
sbin/vquota/vquota.c
273
gid_t file_gid;
sbin/vquota/vquota.c
340
print_group(gid_t gid)
sbin/vquota/vquota.c
675
cmd_limit_gid(char *dirname, gid_t gid, uint64_t limit)
sys/bus/u4b/usb_dev.c
1862
uint8_t iface_index, uid_t uid, gid_t gid, int mode)
sys/bus/u4b/usb_device.c
1970
int fi, int rwmode, uid_t uid, gid_t gid, int mode)
sys/bus/u4b/usb_device.h
299
int, int, int, uid_t, gid_t, int);
sys/bus/u4b/usbdi.h
595
uint8_t iface_index, uid_t uid, gid_t gid, int mode);
sys/dev/misc/cuse/cuse_ioctl.h
67
gid_t group_id;
sys/kern/kern_conf.c
189
make_dev(struct dev_ops *ops, int minor, uid_t uid, gid_t gid,
sys/kern/kern_conf.c
220
uid_t uid, gid_t gid, int perms, const char *fmt, ...)
sys/kern/kern_conf.c
246
make_only_devfs_dev(struct dev_ops *ops, int minor, uid_t uid, gid_t gid,
sys/kern/kern_conf.c
271
make_only_dev(struct dev_ops *ops, int minor, uid_t uid, gid_t gid,
sys/kern/kern_conf.c
300
uid_t uid, gid_t gid, int perms, const char *fmt, ...)
sys/kern/kern_conf.c
409
d_clone_t *nhandler, uid_t uid, gid_t gid, int perms, const char *fmt, ...)
sys/kern/kern_exit.c
1104
if (p->p_ucred->cr_gid != (gid_t)id) {
sys/kern/kern_prot.c
227
(caddr_t)uap->gidset, ngrp * sizeof(gid_t));
sys/kern/kern_prot.c
554
gid_t gid;
sys/kern/kern_prot.c
637
gid_t egid;
sys/kern/kern_prot.c
693
ngrp * sizeof(gid_t));
sys/kern/kern_prot.c
752
gid_t rgid, egid;
sys/kern/kern_prot.c
760
if (((rgid != (gid_t)-1 && rgid != cr->cr_rgid &&
sys/kern/kern_prot.c
762
(egid != (gid_t)-1 && egid != cr->cr_groups[0] &&
sys/kern/kern_prot.c
769
if (egid != (gid_t)-1 && cr->cr_groups[0] != egid) {
sys/kern/kern_prot.c
774
if (rgid != (gid_t)-1 && cr->cr_rgid != rgid) {
sys/kern/kern_prot.c
779
if ((rgid != (gid_t)-1 || cr->cr_groups[0] != cr->cr_rgid) &&
sys/kern/kern_prot.c
847
gid_t rgid, egid, sgid;
sys/kern/kern_prot.c
855
if (((rgid != (gid_t)-1 && rgid != cr->cr_rgid &&
sys/kern/kern_prot.c
857
(egid != (gid_t)-1 && egid != cr->cr_rgid &&
sys/kern/kern_prot.c
859
(sgid != (gid_t)-1 && sgid != cr->cr_rgid &&
sys/kern/kern_prot.c
866
if (egid != (gid_t)-1 && cr->cr_groups[0] != egid) {
sys/kern/kern_prot.c
871
if (rgid != (gid_t)-1 && cr->cr_rgid != rgid) {
sys/kern/kern_prot.c
876
if (sgid != (gid_t)-1 && cr->cr_svgid != sgid) {
sys/kern/kern_prot.c
949
groupmember(gid_t gid, struct ucred *cred)
sys/kern/kern_prot.c
951
gid_t *gp;
sys/kern/kern_prot.c
952
gid_t *egp;
sys/kern/vfs_helper.c
225
uid_t cur_uid, gid_t cur_gid, mode_t *cur_modep)
sys/kern/vfs_helper.c
249
vop_helper_chown(struct vnode *vp, uid_t new_uid, gid_t new_gid,
sys/kern/vfs_helper.c
251
uid_t *cur_uidp, gid_t *cur_gidp, mode_t *cur_modep)
sys/kern/vfs_helper.c
253
gid_t ogid;
sys/kern/vfs_helper.c
259
if (new_gid == (gid_t)VNOVAL)
sys/kern/vfs_helper.c
77
vop_helper_access(struct vop_access_args *ap, uid_t ino_uid, gid_t ino_gid,
sys/kern/vfs_helper.c
83
gid_t *gp;
sys/kern/vfs_helper.c
86
gid_t proc_gid;
sys/kern/vfs_quota.c
149
vfs_stdaccount(struct mount *mp, uid_t uid, gid_t gid, int64_t delta)
sys/kern/vfs_quota.c
311
gid_t gid;
sys/kern/vfs_quota.c
436
vq_write_ok(struct mount *mp, uid_t uid, gid_t gid, uint64_t delta)
sys/kern/vfs_quota.c
62
struct ac_gnode* gnode_insert(struct mount*, gid_t);
sys/kern/vfs_quota.c
99
gnode_insert(struct mount *mp, gid_t gid)
sys/kern/vfs_subr.c
1721
vaccess(enum vtype type, mode_t file_mode, uid_t uid, gid_t gid,
sys/kern/vfs_syscalls.c
3528
setfown(struct mount *mp, struct vnode *vp, uid_t uid, gid_t gid)
sys/kern/vfs_syscalls.c
3534
gid_t o_gid;
sys/kern/vfs_syscalls.c
4015
gid_t gid = 0;
sys/kern/vfs_syscalls.c
4082
gid_t gid = 0;
sys/kern/vfs_syscalls.c
90
static int setfown (struct mount *, struct vnode *, uid_t, gid_t);
sys/net/ipfw3_layer4/ip_fw3_layer4.c
166
(gid_t)((ipfw_insn_u32 *)cmd)->d[0]);
sys/net/pf/pf.c
2469
pf_match_gid(u_int8_t op, gid_t a1, gid_t a2, gid_t g)
sys/net/pf/pfvar.h
1202
gid_t gid;
sys/net/pf/pfvar.h
1850
int pf_match_gid(u_int8_t, gid_t, gid_t, gid_t);
sys/netproto/smb/smb_conn.c
423
gid_t gid = vcspec->group;
sys/netproto/smb/smb_conn.c
741
gid_t gid = shspec->group;
sys/netproto/smb/smb_conn.h
152
gid_t gid; /* group of connection */
sys/netproto/smb/smb_conn.h
167
gid_t gid; /* group of connection */
sys/netproto/smb/smb_conn.h
262
gid_t vc_grp; /* group of connection */
sys/netproto/smb/smb_conn.h
306
gid_t ss_grp; /* group of connection */
sys/netproto/smb/smb_conn.h
332
gid_t group;
sys/netproto/smb/smb_conn.h
349
gid_t group;
sys/netproto/smb/smb_conn.h
78
#define SMBM_ANY_GROUP ((gid_t)-1)
sys/netproto/smb/smb_dev.h
80
gid_t ioc_group; /* proposed group */
sys/netproto/smb/smb_dev.h
91
gid_t ioc_group; /* proposed group of share */
sys/sys/acct.h
60
gid_t ac_gid; /* group id */
sys/sys/conf.h
71
gid_t si_gid;
sys/sys/devfs.h
113
gid_t gid; /* owner group id */
sys/sys/devfs.h
172
gid_t gid;
sys/sys/devfs.h
375
int devfs_set_perms(struct devfs_node *, uid_t, gid_t, u_short, u_long);
sys/sys/devfs.h
378
int devfs_create_dev(cdev_t, uid_t, gid_t, int);
sys/sys/devfs.h
383
void devfs_msg_send_dev(uint32_t, cdev_t dev, uid_t, gid_t, int);
sys/sys/devfs_rules.h
65
gid_t gid; /* owner group id */
sys/sys/devfs_rules.h
83
gid_t gid; /* owner group id */
sys/sys/device.h
388
cdev_t make_dev(struct dev_ops *ops, int minor, uid_t uid, gid_t gid,
sys/sys/device.h
391
uid_t uid, gid_t gid, int perms, const char *fmt, ...) __printflike(7, 8);
sys/sys/device.h
392
cdev_t make_only_dev(struct dev_ops *ops, int minor, uid_t uid, gid_t gid,
sys/sys/device.h
395
uid_t uid, gid_t gid, int perms, const char *fmt, ...) __printflike(7,8);
sys/sys/device.h
396
cdev_t make_only_devfs_dev(struct dev_ops *ops, int minor, uid_t uid, gid_t gid,
sys/sys/device.h
402
d_clone_t *nhandler, uid_t uid, gid_t gid, int perms,
sys/sys/ipc.h
74
gid_t cgid; /* creator group id */
sys/sys/ipc.h
76
gid_t gid; /* group id */
sys/sys/kinfo.h
196
gid_t kp_groups[NGROUPS];
sys/sys/kinfo.h
199
gid_t kp_rgid;
sys/sys/kinfo.h
200
gid_t kp_svgid;
sys/sys/mount.h
170
gid_t left_bits;
sys/sys/mount.h
576
uid_t uid, gid_t gid, int64_t delta);
sys/sys/mount.h
785
int vop_helper_access(struct vop_access_args *ap, uid_t ino_uid, gid_t ino_gid,
sys/sys/mount.h
792
uid_t cur_uid, gid_t cur_gid, mode_t *cur_modep);
sys/sys/mount.h
793
int vop_helper_chown(struct vnode *vp, uid_t new_uid, gid_t new_gid,
sys/sys/mount.h
795
uid_t *cur_uidp, gid_t *cur_gidp, mode_t *cur_modep);
sys/sys/mqueue.h
91
gid_t mq_egid;
sys/sys/socket.h
435
gid_t cmcred_gid; /* real GID of sending process */
sys/sys/socket.h
437
gid_t cmcred_groups[CMGROUP_MAX]; /* groups */
sys/sys/stat.h
107
gid_t st_gid; /* group ID of the file's group */
sys/sys/sysproto.h
281
gid_t * gidset; char gidset_[PAD_(gid_t *)];
sys/sys/sysproto.h
285
gid_t * gidset; char gidset_[PAD_(gid_t *)];
sys/sys/sysproto.h
506
gid_t gid; char gid_[PAD_(gid_t)];
sys/sys/sysproto.h
509
gid_t egid; char egid_[PAD_(gid_t)];
sys/sys/sysproto.h
756
gid_t rgid; char rgid_[PAD_(gid_t)];
sys/sys/sysproto.h
757
gid_t egid; char egid_[PAD_(gid_t)];
sys/sys/sysproto.h
758
gid_t sgid; char sgid_[PAD_(gid_t)];
sys/sys/sysproto.h
943
gid_t * rgid; char rgid_[PAD_(gid_t *)];
sys/sys/sysproto.h
944
gid_t * egid; char egid_[PAD_(gid_t *)];
sys/sys/sysproto.h
945
gid_t * sgid; char sgid_[PAD_(gid_t *)];
sys/sys/ucred.h
114
int groupmember (gid_t gid, struct ucred *cred);
sys/sys/ucred.h
70
gid_t cr_groups[NGROUPS]; /* groups */
sys/sys/ucred.h
76
gid_t cr_rgid; /* Real group id. */
sys/sys/ucred.h
77
gid_t cr_svgid; /* Saved effective group id. */
sys/sys/ucred.h
94
gid_t cr_groups[NGROUPS]; /* groups */
sys/sys/vfs_quota.h
51
int vq_write_ok(struct mount *mp, uid_t uid, gid_t gid, uint64_t delta);
sys/sys/vfscache.h
125
gid_t va_gid; /* owner group id */
sys/sys/vfscache.h
159
gid_t va_gid; /* owner group id */
sys/sys/vnode.h
445
int vaccess(enum vtype, mode_t, uid_t, gid_t, mode_t, struct ucred *);
sys/vfs/devfs/devfs_core.c
115
static int devfs_create_dev_worker(cdev_t, uid_t, gid_t, int);
sys/vfs/devfs/devfs_core.c
1219
devfs_msg_send_dev(uint32_t cmd, cdev_t dev, uid_t uid, gid_t gid, int perms)
sys/vfs/devfs/devfs_core.c
1417
devfs_create_dev_worker(cdev_t dev, uid_t uid, gid_t gid, int perms)
sys/vfs/devfs/devfs_core.c
2272
devfs_set_perms(struct devfs_node *node, uid_t uid, gid_t gid,
sys/vfs/devfs/devfs_core.c
746
devfs_create_dev(cdev_t dev, uid_t uid, gid_t gid, int perms)
sys/vfs/devfs/devfs_vnops.c
631
gid_t cur_gid;
sys/vfs/devfs/devfs_vnops.c
641
if ((vap->va_uid != (uid_t)VNOVAL) || (vap->va_gid != (gid_t)VNOVAL)) {
sys/vfs/dirfs/dirfs.h
160
gid_t dn_gid;
sys/vfs/dirfs/dirfs.h
192
gid_t dm_gid;
sys/vfs/dirfs/dirfs_vnops.c
506
vap->va_gid != (gid_t)VNOVAL)) {
sys/vfs/dirfs/dirfs_vnops.c
512
gid_t cur_gid = dnp->dn_gid;
sys/vfs/dirfs/dirfs_vnops.c
539
gid_t cur_gid = dnp->dn_gid;
sys/vfs/ext2fs/ext2_vnops.c
106
static int ext2_chown(struct vnode *, uid_t, gid_t, struct ucred *,
sys/vfs/ext2fs/ext2_vnops.c
317
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/ext2fs/ext2_vnops.c
410
ext2_chown(struct vnode *vp, uid_t uid, gid_t gid, struct ucred *cred,
sys/vfs/ext2fs/ext2_vnops.c
415
gid_t ogid;
sys/vfs/ext2fs/ext2_vnops.c
420
if (gid == (gid_t)VNOVAL)
sys/vfs/fuse/fuse_vnops.c
414
vap->va_gid != (gid_t)VNOVAL)) {
sys/vfs/hammer/hammer_inode.c
905
else if (vap->va_gid != (gid_t)VNOVAL)
sys/vfs/hammer/hammer_vnops.c
2213
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/hammer/hammer_vnops.c
2216
gid_t cur_gid = hammer_to_unix_xid(&ip->ino_data.gid);
sys/vfs/hammer/hammer_vnops.c
2359
gid_t cur_gid = hammer_to_unix_xid(&ip->ino_data.gid);
sys/vfs/hammer/hammer_vnops.c
863
gid_t gid;
sys/vfs/hammer2/hammer2_inode.c
1202
else if (vap->va_gid != (gid_t)VNOVAL)
sys/vfs/hammer2/hammer2_vnops.c
287
gid_t gid;
sys/vfs/hammer2/hammer2_vnops.c
480
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/hammer2/hammer2_vnops.c
483
gid_t cur_gid = hammer2_to_unix_xid(&ip->meta.gid);
sys/vfs/hammer2/hammer2_vnops.c
547
gid_t cur_gid = hammer2_to_unix_xid(&ip->meta.gid);
sys/vfs/hpfs/hpfs.h
318
gid_t hpm_gid;
sys/vfs/hpfs/hpfs.h
348
gid_t h_gid;
sys/vfs/hpfs/hpfs_vnops.c
518
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/hpfs/hpfsmount.h
35
gid_t gid; /* gid that owns hpfs files */
sys/vfs/isofs/cd9660/cd9660_mount.h
50
gid_t gid; /* gid that owns files */
sys/vfs/isofs/cd9660/cd9660_node.c
294
inop->inode.iso_gid = (gid_t)0;
sys/vfs/isofs/cd9660/cd9660_node.h
58
gid_t iso_gid; /* owner group id */
sys/vfs/isofs/cd9660/cd9660_vnops.c
132
gid_t gid;
sys/vfs/isofs/cd9660/cd9660_vnops.c
94
vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL ||
sys/vfs/isofs/cd9660/iso.h
233
gid_t im_gid;
sys/vfs/msdosfs/msdosfs_vnops.c
349
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/msdosfs/msdosfs_vnops.c
351
gid_t gid;
sys/vfs/msdosfs/msdosfs_vnops.c
359
if (gid == (gid_t)VNOVAL)
sys/vfs/msdosfs/msdosfsmount.h
230
gid_t gid; /* gid that owns msdosfs files */
sys/vfs/msdosfs/msdosfsmount.h
73
gid_t pm_gid; /* gid to set as owner of the files */
sys/vfs/nfs/nfs.h
719
void nfsrvw_sort (gid_t *, int);
sys/vfs/nfs/nfs_serv.c
386
vap->va_gid = fxdr_unsigned(gid_t, sp->sa_gid);
sys/vfs/nfs/nfs_socket.c
2368
nd->nd_cr.cr_gid = fxdr_unsigned(gid_t, *tl++);
sys/vfs/nfs/nfs_socket.c
2378
nd->nd_cr.cr_groups[i] = fxdr_unsigned(gid_t, *tl++);
sys/vfs/nfs/nfs_subs.c
1509
nfsrvw_sort(gid_t *list, int num)
sys/vfs/nfs/nfs_subs.c
1512
gid_t v;
sys/vfs/nfs/nfs_subs.c
763
vap->va_gid = fxdr_unsigned(gid_t, fp->fa_gid);
sys/vfs/nfs/nfs_subs.c
775
vap->va_gid = fxdr_unsigned(gid_t, fp->fa_gid);
sys/vfs/nfs/nfs_vnops.c
770
vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL ||
sys/vfs/nfs/nfs_vnops.c
796
vap->va_gid == (gid_t)VNOVAL) {
sys/vfs/nfs/nfs_vnops.c
933
if (vap->va_gid == (gid_t)VNOVAL)
sys/vfs/nfs/nfsm_subs.c
1003
vap->va_gid = fxdr_unsigned(gid_t, *tl);
sys/vfs/nfs/nfsm_subs.c
586
if (full && vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/ntfs/ntfs.h
252
gid_t ntm_gid;
sys/vfs/ntfs/ntfs_vnops.c
398
gid_t *gp;
sys/vfs/ntfs/ntfsmount.h
41
gid_t gid; /* gid that owns ntfs files */
sys/vfs/smbfs/smbfs.h
63
gid_t gid;
sys/vfs/smbfs/smbfs_vnops.c
316
if ((vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL ||
sys/vfs/tmpfs/tmpfs.h
190
gid_t tn_gid;
sys/vfs/tmpfs/tmpfs.h
400
uid_t uid, gid_t gid, mode_t mode, char *, int, int,
sys/vfs/tmpfs/tmpfs.h
424
int tmpfs_chown(struct vnode *, uid_t, gid_t, struct ucred *);
sys/vfs/tmpfs/tmpfs_mount.h
52
gid_t ta_root_gid;
sys/vfs/tmpfs/tmpfs_subr.c
1187
tmpfs_chown(struct vnode *vp, uid_t uid, gid_t gid, struct ucred *cred)
sys/vfs/tmpfs/tmpfs_subr.c
1191
gid_t cur_gid;
sys/vfs/tmpfs/tmpfs_subr.c
96
uid_t uid, gid_t gid, mode_t mode,
sys/vfs/tmpfs/tmpfs_vfsops.c
115
gid_t root_gid = cred->cr_gid;
sys/vfs/tmpfs/tmpfs_vnops.c
476
vap->va_gid != (gid_t)VNOVAL)) {
sys/vfs/ufs/ufs_vnops.c
434
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
sys/vfs/ufs/ufs_vnops.c
539
ufs_chown(struct vnode *vp, uid_t uid, gid_t gid, struct ucred *cred)
sys/vfs/ufs/ufs_vnops.c
543
gid_t ogid;
sys/vfs/ufs/ufs_vnops.c
552
if (gid == (gid_t)VNOVAL)
sys/vfs/ufs/ufs_vnops.c
84
static int ufs_chown (struct vnode *, uid_t, gid_t, struct ucred *);
test/stress/fsstress/fsstress.c
257
int lchown_path(pathname_t *, uid_t, gid_t);
test/stress/fsstress/fsstress.c
862
lchown_path(pathname_t *name, uid_t owner, gid_t group)
test/stress/stress2/testcases/openat/doat.c
47
gid_t g;
test/testcases/sysv/sysvmsg/msgtest.c
268
gid_t gid = getegid();
test/testcases/sysv/sysvsem/semtest.c
278
gid_t gid = getegid();
test/testcases/sysv/sysvshm/shmtest.c
241
gid_t gid = getegid();
tools/regression/priv/test.c
12
gid_t unpriv_gid = 5000;
usr.bin/at/at.c
96
gid_t real_gid, effective_gid;
usr.bin/at/privs.h
64
extern gid_t real_gid, effective_gid;
usr.bin/at/privs.h
99
setregid((gid_t)-1, effective_gid); \
usr.bin/chpass/field.c
123
gid_t id;
usr.bin/find/find.h
82
gid_t _g_data; /* gid */
usr.bin/find/function.c
937
gid_t gid;
usr.bin/getent/getent.c
249
gr = getgrgid((gid_t)id);
usr.bin/id/id.c
211
gid_t groups[NGROUPS];
usr.bin/id/id.c
252
gid_t gid, lastgid, groups[NGROUPS + 1];
usr.bin/id/id.c
279
gid_t groups[NGROUPS + 1];
usr.bin/ipcs/ipcs.c
136
gid_t grpgid = 0;
usr.bin/ipcs/ipcs.c
523
static gid_t
usr.bin/ipcs/ipcs.c
527
gid_t gid;
usr.bin/ipcs/ipcs.c
61
static gid_t grp2gid(const char *);
usr.bin/login/login.c
156
gid_t egid;
usr.bin/login/login.h
28
void login_fbtab(char *, uid_t, gid_t);
usr.bin/login/login_fbtab.c
122
login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid)
usr.bin/login/login_fbtab.c
75
static void login_protect(const char *, char *, int, uid_t, gid_t);
usr.bin/login/login_fbtab.c
82
login_fbtab(char *tty, uid_t uid, gid_t gid)
usr.bin/newgrp/newgrp.c
150
gid_t grps[NGROUPS_MAX];
usr.bin/newgrp/newgrp.c
153
gid_t egid;
usr.bin/newgrp/newgrp.c
163
(grp = getgrgid((gid_t)lgid)) == NULL ) {
usr.bin/newgrp/newgrp.c
191
if ((ngrps = getgroups(NGROUPS_MAX, (gid_t *)grps)) < 0) {
usr.bin/newgrp/newgrp.c
202
memmove(&grps[i], &grps[i + 1], (ngrps - i) * sizeof(gid_t));
usr.bin/newgrp/newgrp.c
204
if (setgroups(ngrps, (const gid_t *)grps) < 0) {
usr.bin/newgrp/newgrp.c
228
if (setgroups(ngrps, (const gid_t *)grps)) {
usr.bin/newgrp/newgrp.c
240
inarray(gid_t gid, const gid_t grps[], int ngrps)
usr.bin/newgrp/newgrp.c
51
static int inarray(gid_t, const gid_t[], int);
usr.bin/pkill/pkill.c
422
if (kp->kp_rgid == (gid_t)li->li_number)
usr.bin/quota/quota.c
100
gid_t mygid, gidset[NGROUPS];
usr.bin/quota/quota.c
228
gid_t mygid, gidset[NGROUPS];
usr.bin/quota/quota.c
262
gid_t mygid, gidset[NGROUPS];
usr.bin/rfcomm_sppd/rfcomm_sppd.c
286
gid_t ttygid;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
316
ttygid = (gid_t)-1;
usr.bin/tip/tip.h
266
EXTERN gid_t gid, egid; /* real and effective group id's */
usr.bin/wall/wall.c
130
if (g->gid == (gid_t)-1)
usr.bin/wall/wall.c
177
gid_t egid;
usr.bin/wall/wall.c
64
gid_t gid;
usr.bin/xinstall/xinstall.c
1131
if ((gid != (gid_t)-1 || uid != (uid_t)-1) &&
usr.bin/xinstall/xinstall.c
253
gid = (gid_t)-1;
usr.bin/xinstall/xinstall.c
78
static gid_t gid;
usr.bin/xinstall/xinstall.c
801
if (!dounpriv && ((gid != (gid_t)-1 && gid != to_sb.st_gid) ||
usr.bin/xinstall/xinstall.c
811
(gid != (gid_t)-1 && gid != to_sb.st_gid) ||
usr.sbin/authpf/authpf.c
641
gid_t gid;
usr.sbin/authpf/authpf.c
88
gid_t gid;
usr.sbin/chown/chown.c
133
gid = (gid_t)-1;
usr.sbin/chown/chown.c
181
(gid == (gid_t)(-1) || gid == p->fts_statp->st_gid))
usr.sbin/chown/chown.c
200
(gid == (gid_t)(-1)) ?
usr.sbin/chown/chown.c
208
(gid == (gid_t)(-1)) ?
usr.sbin/chown/chown.c
266
gid_t *groups;
usr.sbin/chown/chown.c
276
if (gid != (gid_t)(-1) && ngroups == -1 &&
usr.sbin/chown/chown.c
279
if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
usr.sbin/chown/chown.c
57
static gid_t gid;
usr.sbin/chroot/chroot.c
117
gidlist[gids] = (gid_t)strtoul(p, &endp, 0);
usr.sbin/chroot/chroot.c
60
gid_t gid, gidlist[NGROUPS_MAX];
usr.sbin/chroot/chroot.c
99
gid = (gid_t)strtoul(group, &endp, 0);
usr.sbin/cron/cron/cron.h
159
gid_t gid;
usr.sbin/inetd/inetd.c
246
gid_t egid;
usr.sbin/inetd/inetd.h
100
gid_t se_sockgid; /* Group for unix domain socket */
usr.sbin/installer/libaura/fspred.c
119
gid_t gid;
usr.sbin/jail/jail.c
58
gid_t groups[NGROUPS];
usr.sbin/keyserv/keyserv.c
548
if (!netname2user(*name, (uid_t *) &cred->uid, (gid_t *) &cred->gid,
usr.sbin/keyserv/keyserv.c
549
(int *)&cred->gids.gids_len, (gid_t *)gids)) {
usr.sbin/lpr/lpc/lpc.c
344
static gid_t groups[NGROUPS];
usr.sbin/lpr/lpc/lpc.c
345
gid_t gid;
usr.sbin/makefs/hammer2/hammer2_inode.c
1210
else if (vap->va_gid != (gid_t)VNOVAL)
usr.sbin/makefs/hammer2/hammer2_vnops.c
293
gid_t gid;
usr.sbin/makefs/hammer2/hammer2_vnops.c
495
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
usr.sbin/makefs/hammer2/hammer2_vnops.c
498
gid_t cur_gid = hammer2_to_unix_xid(&ip->meta.gid);
usr.sbin/makefs/hammer2/hammer2_vnops.c
562
gid_t cur_gid = hammer2_to_unix_xid(&ip->meta.gid);
usr.sbin/makefs/mtree.c
483
gid_t gid;
usr.sbin/mtree/create.c
319
statd(FILE *fp, FTS *t, FTSENT *parent, uid_t *puid, gid_t *pgid, mode_t *pmode,
usr.sbin/mtree/create.c
323
gid_t sgid;
usr.sbin/mtree/create.c
330
gid_t savegid;
usr.sbin/mtree/create.c
64
static gid_t gid;
usr.sbin/mtree/create.c
78
static int statd(FILE *, FTS *, FTSENT *, uid_t *, gid_t *, mode_t *,
usr.sbin/mtree/getid.c
158
gi_getgrgid(gid_t gid)
usr.sbin/mtree/getid.c
212
grscan(int search, gid_t gid, const char *name)
usr.sbin/mtree/getid.c
241
grmatchline(int search, gid_t gid, const char *name)
usr.sbin/mtree/getid.c
260
_gr_group.gr_gid = (gid_t)id;
usr.sbin/mtree/getid.c
418
_pw_passwd.pw_gid = (gid_t)id;
usr.sbin/mtree/getid.c
77
static struct group * gi_getgrgid(gid_t);
usr.sbin/mtree/getid.c
81
static int grscan(int, gid_t, const char *);
usr.sbin/mtree/getid.c
82
static int grmatchline(int, gid_t, const char *);
usr.sbin/mtree/mtree.h
49
gid_t st_gid; /* gid */
usr.sbin/mtree/spec.c
531
gid_t gid;
usr.sbin/mtree/spec.c
566
ip->st_gid = (gid_t)strtoul(val, &ep, 10);
usr.sbin/newsyslog/newsyslog.c
1205
working->gid = (gid_t)-1;
usr.sbin/newsyslog/newsyslog.c
1215
working->gid = (gid_t)-1;
usr.sbin/newsyslog/newsyslog.c
183
gid_t gid; /* Group of log */
usr.sbin/newsyslog/newsyslog.c
2666
if (ent->uid != (uid_t)-1 || ent->gid != (gid_t)-1) {
usr.sbin/newsyslog/newsyslog.c
2729
if (ent->uid != (uid_t)-1 || ent->gid != (gid_t)-1)
usr.sbin/newsyslog/newsyslog.c
2745
if (ent->uid != (uid_t)-1 || ent->gid != (gid_t)-1) {
usr.sbin/newsyslog/newsyslog.c
450
tempwork->gid = (gid_t)-1;
usr.sbin/nscd/agents/group.c
124
gid_t gid;
usr.sbin/nscd/agents/group.c
147
sizeof(gid_t)) {
usr.sbin/nscd/agents/group.c
152
memcpy(&gid, key + sizeof(enum nss_lookup_type), sizeof(gid_t));
usr.sbin/nscd/nscd.c
235
gid_t egid;
usr.sbin/nscd/query.c
1214
init_query_state(int sockfd, size_t kevent_watermark, uid_t euid, gid_t egid)
usr.sbin/nscd/query.h
105
extern struct query_state *init_query_state(int, size_t, uid_t, gid_t);
usr.sbin/nscd/query.h
76
gid_t egid; /* egid of the caller, received via getpeereid */
usr.sbin/nscd/query.h
77
gid_t gid; /* gid of the caller received via credentials */
usr.sbin/pfctl/parse.y
141
gid_t gid[2];
usr.sbin/pflogd/privsep.c
89
gid_t gidset[1];
usr.sbin/pw/cpdir.c
45
copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid)
usr.sbin/pw/edgroup.c
177
while ((pwd = GETPWENT()) != NULL && (gid_t)pwd->pw_gid != (gid_t)grp.gr_gid);
usr.sbin/pw/pw.h
92
gid_t min_gid, max_gid; /* Allowed range of gids */
usr.sbin/pw/pw_conf.c
348
config.min_gid = (gid_t) atol(q);
usr.sbin/pw/pw_conf.c
352
config.max_gid = (gid_t) atol(q);
usr.sbin/pw/pw_group.c
109
grp = (a_name != NULL) ? GETGRNAM(a_name->val) : GETGRGID((gid_t) atoi(a_gid->val));
usr.sbin/pw/pw_group.c
120
fakegroup.gr_gid = a_gid ? (gid_t) atol(a_gid->val) : -1;
usr.sbin/pw/pw_group.c
133
gid_t gid = grp->gr_gid;
usr.sbin/pw/pw_group.c
148
grp->gr_gid = (gid_t) atoi(a_gid->val);
usr.sbin/pw/pw_group.c
348
static gid_t
usr.sbin/pw/pw_group.c
352
gid_t gid = (gid_t) - 1;
usr.sbin/pw/pw_group.c
359
gid = (gid_t) atol(a_gid->val);
usr.sbin/pw/pw_group.c
382
if ((gid_t)grp->gr_gid >= (gid_t)cnf->min_gid &&
usr.sbin/pw/pw_group.c
383
(gid_t)grp->gr_gid <= (gid_t)cnf->max_gid)
usr.sbin/pw/pw_group.c
391
gid = (gid_t) (bm_firstunset(&bm) + cnf->min_gid);
usr.sbin/pw/pw_group.c
393
gid = (gid_t) (bm_lastset(&bm) + 1);
usr.sbin/pw/pw_group.c
397
gid = (gid_t) (bm_firstunset(&bm) + cnf->min_gid);
usr.sbin/pw/pw_group.c
43
static gid_t gr_gidpolicy(struct userconf * cnf, struct cargs * args);
usr.sbin/pw/pw_group.c
84
gid_t next = gr_gidpolicy(cnf, args);
usr.sbin/pw/pw_user.c
228
if (!isdigit((unsigned char)*p) || (grp = GETGRGID((gid_t) atoi(p))) == NULL)
usr.sbin/pw/pw_user.c
242
if (!isdigit((unsigned char)*p) || (grp = GETGRGID((gid_t) atoi(p))) == NULL)
usr.sbin/pw/pw_user.c
272
if ((cnf->min_gid = (gid_t) atoi(p)) == 0)
usr.sbin/pw/pw_user.c
274
if ((p = strtok(NULL, " ,\t")) == NULL || (cnf->max_gid = (gid_t) atoi(p)) < cnf->min_gid)
usr.sbin/pw/pw_user.c
468
gid_t newgid = (gid_t) GETGRNAM(cnf->default_group)->gr_gid;
usr.sbin/pw/pw_user.c
50
static uid_t pw_gidpolicy(struct userconf * cnf, struct cargs * args, char *nam, gid_t prefer);
usr.sbin/pw/pw_user.c
576
pwd->pw_gid = pw_gidpolicy(cnf, args, pwd->pw_name, (gid_t) pwd->pw_uid);
usr.sbin/pw/pw_user.c
846
pw_gidpolicy(struct userconf * cnf, struct cargs * args, char *nam, gid_t prefer)
usr.sbin/pw/pw_user.c
849
gid_t gid = (uid_t) - 1;
usr.sbin/pw/pw_user.c
864
gid = (gid_t) atol(a_gid->val);
usr.sbin/pw/pw_vpw.c
195
vnextgrent(char const * nam, gid_t gid, int doclose)
usr.sbin/pw/pw_vpw.c
250
if (gid != (gid_t)-1) {
usr.sbin/pw/pw_vpw.c
251
if (gid == (gid_t)grp.gr_gid)
usr.sbin/pw/pw_vpw.c
292
vgetgrgid(gid_t gid)
usr.sbin/pw/pwupd.h
139
struct group * vgetgrgid(gid_t gid);
usr.sbin/pw/pwupd.h
146
void copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid);
usr.sbin/pw/pwupd.h
69
struct group * (*_getgrgid)(gid_t gid);
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
186
if ((gid_t)npw->pw_gid != opw->pw_gid) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
269
yp_password.pw_gid == (gid_t)pw->pw_gid) {
usr.sbin/rwhod/rwhod.c
141
static void run_as(uid_t *, gid_t *);
usr.sbin/rwhod/rwhod.c
170
gid_t unpriv_gid;
usr.sbin/rwhod/rwhod.c
400
run_as(uid_t *uid, gid_t *gid)
usr.sbin/sysvipcd/perm.c
42
is_grpmember(gid_t gid, struct cmsgcred *cred) {
usr.sbin/usbconfig/usbconfig.c
47
gid_t gid;
usr.sbin/vknetd/vknetd.c
332
gid_t gid;
usr.sbin/zic/zic.c
130
static void setgroup(gid_t *flag, const char *name);
usr.sbin/zic/zic.c
1667
if ((uflag != (uid_t)-1 || gflag != (gid_t)-1)
usr.sbin/zic/zic.c
2709
setgroup(gid_t *flag, const char *name)
usr.sbin/zic/zic.c
2713
if (*flag != (gid_t)-1)
usr.sbin/zic/zic.c
2722
if (ul == (unsigned long)(gid_t)ul && *ep == '\0') {
usr.sbin/zic/zic.c
2736
if (*flag != (gid_t)-1)
usr.sbin/zic/zic.c
2745
if (ul == (unsigned long)(gid_t)ul && *ep == '\0') {
usr.sbin/zic/zic.c
436
static gid_t gflag = (gid_t)-1;