Lines Matching refs:ent
418 struct dgrptabent *ent; /* Ptr to struct we're making */
429 if (ent = malloc(sizeof (struct dgrptabent))) {
432 ent->name = NULL; /* alias */
433 ent->entryno = 0; /* Entry no. */
434 ent->comment = FALSE; /* data rec */
435 ent->dataspace = NULL; /* string */
436 ent->membership = NULL; /* attr list */
439 if (ent->name = malloc(strlen(dgroup)+1)) {
440 (void) strcpy(ent->name, dgroup);
452 else ent->membership = member;
471 _freedgrptabent(ent);
472 ent = NULL;
479 return (ent);
597 struct dgrptabent *ent; /* Ptr to dev tab entry */
628 if (ent = _getdgrprec(dgrp)) {
634 if ((pm = ent->membership) != NULL) {
643 for (pm = ent->membership; pm; pm = pm->next) {
653 } else ent->membership = new->membership;
677 if (ent->entryno != p->entryno)
679 else noerr = _putdgrptabrec(fd, ent) != EOF;
696 _freedgrptabent(ent);
733 struct dgrptabent *ent; /* Entry to remove */
742 if (ent = _getdgrprec(dgrp)) {
746 if (ent->entryno != p->entryno)
758 _freedgrptabent(ent);
794 struct dgrptabent *ent; /* Entry to modify */
817 if (ent = _getdgrprec(dgrp)) {
835 pm = ent->membership;
843 else ent->membership = pm->next;
875 if (ent->entryno != p->entryno)
877 else noerr = _putdgrptabrec(fd, ent) != EOF;
907 _freedgrptabent(ent);