Searched refs:grent (Results 1 – 5 of 5) sorted by relevance
559 struct group *grent; /* Group info, from getgrent() */ in applygroup() local570 if ((grent = getgrgid(dp->groupID)) != NULL) { in applygroup()571 dp->groupname = strdup(grent->gr_name); in applygroup()578 while (grent = getgrent()) { in applygroup()587 if ((dp->groupID == grent->gr_gid) && !dp->groupname) { in applygroup()589 p = strdup(grent->gr_name); in applygroup()602 for (pp = grent->gr_mem; *pp; pp++) { in applygroup()608 !(grent->gr_gid == dp->groupID)) { in applygroup()610 p = strdup(grent->gr_name); in applygroup()614 psecgrp->groupID = grent->gr_gid; in applygroup()[all …]
653 struct group *grent; /* Ptr to an /etc/group entry */ in main() local822 while (grent = getgrent()) { in main()834 if (strcmp(grent->gr_name, in main()844 pgrp->groupID = grent->gr_gid; in main()846 for (pp = grent->gr_mem; in main()
395 struct group *grent; in parse_gids() local408 if ((grent = getgrnam(ptr)) != NULL) in parse_gids()409 idtab_append(idt, grent->gr_gid); in parse_gids()
2251 struct group *grent; in getgroup() local2259 if ((grent = getgrgid(gid)) != NULL) { in getgroup()2260 SCPYN(&c->name[0], grent->gr_name); in getgroup()
6286 struct group *grent = getgrgid(gid); in getgroup() local6287 c = hash_insert(gids, grent ? grent->gr_name : NULL, gid); in getgroup()6310 struct group *grent = getgrnam(group); in getgidbyname() local6311 c = hash_insert(groups, group, grent ? (int)grent->gr_gid : -1); in getgidbyname()