Lines Matching defs:nl
502 __nis_hash_item_mt *nl, **pp;
510 while ((nl = *(pp = __find_item_mt(name, table, (int *)0))) != 0) {
513 if (nl->readers == 0 && nl->writer == 0)
515 if (nl->writer != 0 && nl->writer_id == mtid)
517 (void) pthread_cond_wait(&nl->lock, &table->lock);
520 if (nl == 0) {
525 /* Remove nl from the hash chain */
526 *pp = nl->next;
527 nl->next = 0;
529 /* Remove nl from the linked list of all names */
530 if (nl->prv_item)
531 nl->prv_item->nxt_item = nl->nxt_item;
533 table->first = nl->nxt_item;
535 if (nl->nxt_item)
536 nl->nxt_item->prv_item = nl->prv_item;
537 nl->prv_item = 0;
538 nl->nxt_item = 0;
541 nl->keychain = -1;
548 (nl->writer > 0 || nl->readers > 0)) {
555 (void) pthread_cond_signal(&nl->lock);
556 (void) pthread_cond_destroy(&nl->lock);
564 if (nl->readers == 0 && nl->writer == 0 && table->destroyItem != 0) {
565 (*table->destroyItem)(nl);
566 nl = 0;
571 return (nl);