Lines Matching defs:list
53 * Concatenate a NULL terminated list of strings into
82 eplist_t *list;
84 list = (eplist_t *)malloc(sizeof (eplist_t));
85 (void) memset(list, 0, sizeof (eplist_t));
87 list->next = list;
88 list->prev = list;
89 list->item = NULL;
91 return (list);
95 add_item(void *item, eplist_t *list)
103 entry->next = list;
104 entry->prev = list->prev;
105 list->prev->next = entry;
106 list->prev = entry;
162 * Add a new entry to the benv entry list. Entries can be
166 add_bent(eplist_t *list, char *comm, char *cmd, char *name, char *val)
171 add_item((void *)bent, list);
175 get_var(char *name, eplist_t *list)
180 for (e = list->next; e != list; e = e->next) {
190 print_var(char *name, eplist_t *list)
198 } else if ((p = get_var(name, list)) == NULL) {
206 print_vars(eplist_t *list)
211 for (e = list->next; e != list; e = e->next) {
247 set_var(char *name, char *val, eplist_t *list)
256 print_var(name, list);
259 if ((p = get_var(name, list)) != NULL) {
263 add_bent(list, NULL, "setprop", name, val);
267 print_var(name, list);
279 proc_var(char *name, eplist_t *list)
284 print_var(name, list);
288 return (set_var(name, val, list));
344 * Add a comment block to the benv list.
575 * Add a command to the benv list.
595 * list. List entries may be comment blocks or commands.
619 eplist_t *list, *e;
623 list = bd->elist;
625 if (list->next == list)
631 for (e = list->next; e != list; e = e->next) {