Searched refs:grent (Results 1 – 6 of 6) sorted by relevance
/illumos-gate/usr/src/cmd/logins/ |
H A D | logins.c | 556 struct group *grent; /* Group info, from getgrent() */ in applygroup() local 567 if ((grent = getgrgid(dp->groupID)) != NULL) { in applygroup() 568 dp->groupname = strdup(grent->gr_name); in applygroup() 575 while (grent = getgrent()) { in applygroup() 584 if ((dp->groupID == grent->gr_gid) && !dp->groupname) { in applygroup() 586 p = strdup(grent->gr_name); in applygroup() 599 for (pp = grent->gr_mem; *pp; pp++) { in applygroup() 605 !(grent->gr_gid == dp->groupID)) { in applygroup() 607 p = strdup(grent->gr_name); in applygroup() 611 psecgrp->groupID = grent->gr_gid; in applygroup() [all …]
|
/illumos-gate/usr/src/cmd/users/ |
H A D | users.c | 651 struct group *grent; /* Ptr to an /etc/group entry */ in main() local 820 while ((grent = getgrent()) != NULL) { in main() 832 if (strcmp(grent->gr_name, in main() 842 pgrp->groupID = grent->gr_gid; in main() 844 for (pp = grent->gr_mem; in main()
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | pgrep.c | 395 struct group *grent; in parse_gids() local 408 if ((grent = getgrnam(ptr)) != NULL) in parse_gids() 409 idtab_append(idt, grent->gr_gid); in parse_gids()
|
/illumos-gate/usr/src/cmd/praudit/ |
H A D | format.c | 159 struct group *grent; in getgroup() local 167 if ((grent = getgrgid(gid)) != NULL) { in getgroup() 168 SCPYN(&c->name[0], grent->gr_name); in getgroup() 205 struct group *grent; in loadgroups() local 208 while ((grent = fgetgrent(gf)) != NULL) { in loadgroups() 209 c = findincache(&groups, grent->gr_gid); in loadgroups() 211 SCPYN(&c->name[0], grent->gr_name); in loadgroups()
|
/illumos-gate/usr/src/cmd/ls/ |
H A D | ls.c | 2282 struct group *grent; in getgroup() local 2296 } else if ((grent = getgrgid(gid)) != NULL) { in getgroup() 2297 SCPYN(&c->name[0], grent->gr_name); in getgroup()
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 6331 struct group *grent = getgrgid(gid); in getgroup() local 6332 c = hash_insert(gids, grent ? grent->gr_name : NULL, gid); in getgroup() 6355 struct group *grent = getgrnam(group); in getgidbyname() local 6356 c = hash_insert(groups, group, grent ? (int)grent->gr_gid : -1); in getgidbyname()
|