Lines Matching refs:list
170 /* Find a conditional (the needle) within a list of existing ones (the
192 cond_node_t *cond_node_search(policydb_t * p, cond_node_t * list,
196 cond_node_t *result = cond_node_find(p, cn, list, &was_created);
198 /* add conditional node to policy list */
306 * list appropriately. If the result of the expression is undefined
382 /* free the "not" node in the list */
463 void cond_av_list_destroy(cond_av_list_t * list)
466 for (cur = list; cur != NULL; cur = next) {
498 void cond_list_destroy(cond_list_t * list)
502 if (list == NULL)
505 for (cur = list; cur != NULL; cur = next) {
625 cond_av_list_t *other = data->other, *list, *cur;
640 * If we are reading the false list other will be a pointer to
641 * the true list. We can have duplicate entries if there is only
642 * 1 other entry and it is in our true list.
644 * If we are reading the true list (other == NULL) there shouldn't
682 list = malloc(sizeof(cond_av_list_t));
683 if (!list)
685 memset(list, 0, sizeof(cond_av_list_t));
687 list->node = node_ptr;
689 data->head = list;
691 data->tail->next = list;
692 data->tail = list;
821 int cond_read_list(policydb_t * p, cond_list_t ** list, void *fp)
847 *list = node;