Home
last modified time | relevance | path

Searched refs:gr_gid (Results 1 – 25 of 79) sorted by relevance

1234

/titanic_44/usr/src/cmd/oamuser/user/
H A Dval_lgrp.c84 if (g_ptr->gr_gid == gid) { in valid_lgroup()
91 grplist[ i++ ] = g_ptr->gr_gid; in valid_lgroup()
95 if( g_ptr->gr_gid == grplist[j] ) in valid_lgroup()
100 grplist[i++] = g_ptr->gr_gid; in valid_lgroup()
H A Dgroups.c184 if (g_ptr->gr_gid == gids[i]) { in edit_group()
/titanic_44/usr/src/lib/libcmdutils/common/
H A Dgid.c56 if (isreservedgid(grp->gr_gid)) /* Skip reserved IDs */ in findnextgid()
58 if (grp->gr_gid >= gid) { in findnextgid()
59 if (grp->gr_gid == stop) { /* Overflow check */ in findnextgid()
63 gid = grp->gr_gid + 1; in findnextgid()
/titanic_44/usr/src/cmd/oamuser/lib/
H A Dputgrent.c58 if (grpstr->gr_gid == 0) { in putgrent()
61 (void) fprintf(to, "%ld:", grpstr->gr_gid); in putgrent()
80 grpstr->gr_passwd, grpstr->gr_gid); in putgrent()
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dgetgrouplist.c79 if (grp->gr_gid == agroup)
82 if (groups[i] == grp->gr_gid)
92 groups[ngroups++] = grp->gr_gid;
/titanic_44/usr/src/lib/nsswitch/files/common/
H A Dgetgrent.c128 ulong_t gr_gid; in check_grgid() local
146 gr_gid = strtoul(linep, (char **)&end, 10); in check_grgid()
149 if (linep == end || gr_gid > UINT32_MAX) in check_grgid()
152 return ((gid_t)gr_gid == argp->key.gid); in check_grgid()
/titanic_44/usr/src/cmd/newgrp/
H A Dnewgrp.c246 if (p->pw_gid == g->gr_gid || getuid() == 0) {
248 return (g->gr_gid);
253 return (g->gr_gid);
264 return (g->gr_gid);
/titanic_44/usr/src/lib/libresolv2/common/irs/
H A Dutil.c92 if ((gid_t)grp->gr_gid == basegid) in make_group_list()
98 groups[ng++] = grp->gr_gid; in make_group_list()
/titanic_44/usr/src/lib/libast/common/string/
H A Dstrgid.c89 id = gr->gr_gid; in strgid()
104 id = gr->gr_gid; in strgid()
/titanic_44/usr/src/cmd/hal/hald/
H A Dutil_helper.c116 if (initgroups (HAL_USER, gr->gr_gid)) { in drop_privileges()
122 if (setgid (gr->gr_gid)) { in drop_privileges()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dgetgrnam_r.c363 group->gr_gid = 0; in str2group()
390 group->gr_gid = GID_NOBODY; in str2group()
392 group->gr_gid = (gid_t)tmp; in str2group()
449 gid_t gid = grp->gr_gid; in process_cstr()
H A Dpt.c151 pto.pto_rgid = gr_name->gr_gid; in grantpt()
/titanic_44/usr/src/lib/nsswitch/compat/common/
H A Dgetgrent.c143 return (g->gr_gid == argp->key.gid);
200 int gid = g->gr_gid;
262 g->gr_gid);
/titanic_44/usr/src/lib/libbc/inc/include/
H A Dgrp.h32 int gr_gid; member
/titanic_44/usr/src/lib/libbc/inc/5include/
H A Dgrp.h43 gid_t gr_gid; member
/titanic_44/usr/src/lib/libpkg/common/
H A Dpkgexecv.c431 if (setgid(grp->gr_gid) == -1) { in pkgexecv()
432 progerr(pkg_gt(ERR_SETGID), grp->gr_gid); in pkgexecv()
/titanic_44/usr/src/cmd/getent/
H A Ddogetgr.c47 grp->gr_gid) == EOF) in putgrent()
/titanic_44/usr/src/ucbcmd/install.d/
H A Dinstall.c163 if (gflag && chown(dirname, -1, gp->gr_gid) && errno != EPERM) { in main()
252 if (chown(path, pp->pw_uid, gp->gr_gid) && errno != EPERM) {
/titanic_44/usr/src/cmd/oamuser/group/
H A Dmod_group.c94 g_ptr->gr_gid = gid; in mod_group()
/titanic_44/usr/src/ucbcmd/groups/
H A Dgroups.c86 if (pw->pw_gid == gr->gr_gid) { in showgroups()
/titanic_44/usr/src/head/
H A Dgrp.h51 gid_t gr_gid; member
/titanic_44/usr/src/cmd/idmap/idmapd/
H A Ddirectory_provider_nsswitch.c375 de = uint_list_dav(val, &grp->gr_gid, 1); in directory_provider_nsswitch_populate()
378 grp->gr_gid + LOCALRID_GID_MIN); in directory_provider_nsswitch_populate()
/titanic_44/usr/src/cmd/logins/
H A Dlogins.c587 if ((dp->groupID == grent->gr_gid) && !dp->groupname) { in applygroup()
608 !(grent->gr_gid == dp->groupID)) { in applygroup()
614 psecgrp->groupID = grent->gr_gid; in applygroup()
1556 pgrp->groupID = grent->gr_gid; in main()
/titanic_44/usr/src/lib/libcmd/common/
H A Did.c319 else sfprintf(sp, "%u(%s)", grp->gr_gid, grp->gr_name); in getids()
385 else sfprintf(sp, "%u", grp->gr_gid); in getids()
/titanic_44/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c225 gr->gr_gid == stbuf.st_gid) ||
338 ((gr != NULL && gr->gr_gid == st->st_gid) ||
643 ((gr != NULL && gr->gr_gid == stbuf.st_gid) ||

1234