Lines Matching refs:ent
429 struct dgrptabent *ent; /* Dev table entry structure */
443 if (!(ent = malloc(sizeof (struct dgrptabent)))) {
457 ent->comment = TRUE;
458 ent->entryno = recnum++;
461 if (ent->dataspace = malloc(strlen(record)+1)) {
462 (void) strcpy(ent->dataspace, record);
464 free(ent);
465 ent = NULL;
474 ent->comment = FALSE;
481 ent->entryno = recnum++;
484 if (!(ent->name = malloc(strlen(p)+1))) {
486 free(ent);
489 (void) strcpy(ent->name, p);
496 ent->dataspace = NULL;
502 free(ent->name);
503 free(ent);
508 free(ent->name);
509 free((char *)ent);
513 ent->membership = q;
520 for (q = ent->membership; q; q = r) {
525 free(ent->name);
526 free(ent);
531 for (q = ent->membership; q; q = r) {
536 free(ent->name);
537 free(ent);
549 ent->membership = NULL;
561 free(ent);
562 ent = NULL;
566 return (ent);
583 _freedgrptabent(struct dgrptabent *ent) /* Structure to free */
596 if (!ent->comment) {
597 if ((q = ent->membership) != NULL) do {
605 if (ent->name) free(ent->name);
609 if (ent->dataspace) free(ent->dataspace);