• Home
  • Raw
  • Download

Lines Matching refs:cur

46 	sidtab_node_t *prev, *cur, *newnode;  in sepol_sidtab_insert()  local
53 cur = s->htable[hvalue]; in sepol_sidtab_insert()
54 while (cur != NULL && sid > cur->sid) { in sepol_sidtab_insert()
55 prev = cur; in sepol_sidtab_insert()
56 cur = cur->next; in sepol_sidtab_insert()
59 if (cur && sid == cur->sid) { in sepol_sidtab_insert()
90 sidtab_node_t *cur; in sepol_sidtab_search() local
96 cur = s->htable[hvalue]; in sepol_sidtab_search()
97 while (cur != NULL && sid > cur->sid) in sepol_sidtab_search()
98 cur = cur->next; in sepol_sidtab_search()
100 if (cur == NULL || sid != cur->sid) { in sepol_sidtab_search()
104 cur = s->htable[hvalue]; in sepol_sidtab_search()
105 while (cur != NULL && sid > cur->sid) in sepol_sidtab_search()
106 cur = cur->next; in sepol_sidtab_search()
107 if (!cur || sid != cur->sid) in sepol_sidtab_search()
111 return &cur->context; in sepol_sidtab_search()
120 sidtab_node_t *cur; in sepol_sidtab_map() local
126 cur = s->htable[i]; in sepol_sidtab_map()
127 while (cur != NULL) { in sepol_sidtab_map()
128 ret = apply(cur->sid, &cur->context, args); in sepol_sidtab_map()
131 cur = cur->next; in sepol_sidtab_map()
143 sidtab_node_t *last, *cur, *temp; in sepol_sidtab_map_remove_on_error() local
150 cur = s->htable[i]; in sepol_sidtab_map_remove_on_error()
151 while (cur != NULL) { in sepol_sidtab_map_remove_on_error()
152 ret = apply(cur->sid, &cur->context, args); in sepol_sidtab_map_remove_on_error()
155 last->next = cur->next; in sepol_sidtab_map_remove_on_error()
157 s->htable[i] = cur->next; in sepol_sidtab_map_remove_on_error()
160 temp = cur; in sepol_sidtab_map_remove_on_error()
161 cur = cur->next; in sepol_sidtab_map_remove_on_error()
166 last = cur; in sepol_sidtab_map_remove_on_error()
167 cur = cur->next; in sepol_sidtab_map_remove_on_error()
180 sidtab_node_t *cur; in sepol_sidtab_search_context() local
183 cur = s->htable[i]; in sepol_sidtab_search_context()
184 while (cur != NULL) { in sepol_sidtab_search_context()
185 if (context_cmp(&cur->context, context)) in sepol_sidtab_search_context()
186 return cur->sid; in sepol_sidtab_search_context()
187 cur = cur->next; in sepol_sidtab_search_context()
232 sidtab_node_t *cur; in sepol_sidtab_hash_eval() local
237 cur = h->htable[i]; in sepol_sidtab_hash_eval()
238 if (cur) { in sepol_sidtab_hash_eval()
241 while (cur) { in sepol_sidtab_hash_eval()
243 cur = cur->next; in sepol_sidtab_hash_eval()
259 sidtab_ptr_t cur, temp; in sepol_sidtab_destroy() local
265 cur = s->htable[i]; in sepol_sidtab_destroy()
266 while (cur != NULL) { in sepol_sidtab_destroy()
267 temp = cur; in sepol_sidtab_destroy()
268 cur = cur->next; in sepol_sidtab_destroy()