Lines Matching refs:bent
143 benv_ent_t *bent; in new_bent() local
145 bent = (benv_ent_t *)malloc(sizeof (benv_ent_t)); in new_bent()
146 (void) memset(bent, 0, sizeof (benv_ent_t)); in new_bent()
149 bent->cmd = strdup(comm); in new_bent()
152 bent->cmd = strdup(cmd); in new_bent()
153 bent->name = strdup(name); in new_bent()
155 bent->val = strdup(val); in new_bent()
158 return (bent); in new_bent()
168 benv_ent_t *bent; in add_bent() local
170 bent = new_bent(comm, cmd, name, val); in add_bent()
171 add_item((void *)bent, list); in add_bent()
991 benv_ent_t *bent; in write_benv() local
1003 bent = (benv_ent_t *)e->item; in write_benv()
1004 name = bent->name; in write_benv()
1006 if (bent->val) { in write_benv()
1008 bent->cmd, bent->name); in write_benv()
1009 put_quoted(fp, bent->val); in write_benv()
1013 bent->cmd, bent->name); in write_benv()
1016 (void) fprintf(fp, "%s\n", bent->cmd); in write_benv()