Lines Matching refs:cur
138 avtab_ptr_t prev, cur, newnode;
146 for (prev = NULL, cur = h->htable[hvalue];
147 cur; prev = cur, cur = cur->next) {
148 if (key->source_type == cur->key.source_type &&
149 key->target_type == cur->key.target_type &&
150 key->target_class == cur->key.target_class &&
151 (specified & cur->key.specified)) {
157 if (key->source_type < cur->key.source_type)
159 if (key->source_type == cur->key.source_type &&
160 key->target_type < cur->key.target_type)
162 if (key->source_type == cur->key.source_type &&
163 key->target_type == cur->key.target_type &&
164 key->target_class < cur->key.target_class)
183 avtab_ptr_t prev, cur, newnode;
190 for (prev = NULL, cur = h->htable[hvalue];
191 cur; prev = cur, cur = cur->next) {
192 if (key->source_type == cur->key.source_type &&
193 key->target_type == cur->key.target_type &&
194 key->target_class == cur->key.target_class &&
195 (specified & cur->key.specified))
197 if (key->source_type < cur->key.source_type)
199 if (key->source_type == cur->key.source_type &&
200 key->target_type < cur->key.target_type)
202 if (key->source_type == cur->key.source_type &&
203 key->target_type == cur->key.target_type &&
204 key->target_class < cur->key.target_class)
215 avtab_ptr_t cur;
223 for (cur = h->htable[hvalue]; cur; cur = cur->next) {
224 if (key->source_type == cur->key.source_type &&
225 key->target_type == cur->key.target_type &&
226 key->target_class == cur->key.target_class &&
227 (specified & cur->key.specified))
228 return &cur->datum;
230 if (key->source_type < cur->key.source_type)
232 if (key->source_type == cur->key.source_type &&
233 key->target_type < cur->key.target_type)
235 if (key->source_type == cur->key.source_type &&
236 key->target_type == cur->key.target_type &&
237 key->target_class < cur->key.target_class)
250 avtab_ptr_t cur;
258 for (cur = h->htable[hvalue]; cur; cur = cur->next) {
259 if (key->source_type == cur->key.source_type &&
260 key->target_type == cur->key.target_type &&
261 key->target_class == cur->key.target_class &&
262 (specified & cur->key.specified))
263 return cur;
265 if (key->source_type < cur->key.source_type)
267 if (key->source_type == cur->key.source_type &&
268 key->target_type < cur->key.target_type)
270 if (key->source_type == cur->key.source_type &&
271 key->target_type == cur->key.target_type &&
272 key->target_class < cur->key.target_class)
280 avtab_ptr_t cur;
286 for (cur = node->next; cur; cur = cur->next) {
287 if (node->key.source_type == cur->key.source_type &&
288 node->key.target_type == cur->key.target_type &&
289 node->key.target_class == cur->key.target_class &&
290 (specified & cur->key.specified))
291 return cur;
293 if (node->key.source_type < cur->key.source_type)
295 if (node->key.source_type == cur->key.source_type &&
296 node->key.target_type < cur->key.target_type)
298 if (node->key.source_type == cur->key.source_type &&
299 node->key.target_type == cur->key.target_type &&
300 node->key.target_class < cur->key.target_class)
309 avtab_ptr_t cur, temp;
315 cur = h->htable[i];
316 while (cur != NULL) {
317 if (cur->key.specified & AVTAB_XPERMS) {
318 free(cur->datum.xperms);
320 temp = cur;
321 cur = cur->next;
338 avtab_ptr_t cur;
344 cur = h->htable[i];
345 while (cur != NULL) {
346 ret = apply(&cur->key, &cur->datum, args);
349 cur = cur->next;
396 avtab_ptr_t cur;
401 cur = h->htable[i];
402 if (cur) {
405 while (cur) {
407 cur = cur->next;