Lines Matching refs:dir
409 rec_dirsearch (const_nis_name name, directory_obj *dir, nis_error *status) in rec_dirsearch() argument
414 switch (nis_dir_cmp (name, dir->do_name)) in rec_dirsearch()
418 return dir; in rec_dirsearch()
424 const char *ndomain = __nis_domain_of (dir->do_name); in rec_dirsearch()
429 fd_res = __nis_finddirectory (dir, ndomain); in rec_dirsearch()
432 nis_free_directory (dir); in rec_dirsearch()
441 return dir; in rec_dirsearch()
443 nis_free_directory (dir); in rec_dirsearch()
477 nis_free_directory (dir); in rec_dirsearch()
484 while (nis_dir_cmp (domain, dir->do_name) != SAME_NAME); in rec_dirsearch()
490 fd_res = __nis_finddirectory (dir, leaf); in rec_dirsearch()
493 nis_free_directory (dir); in rec_dirsearch()
502 return dir; in rec_dirsearch()
504 nis_free_directory (dir); in rec_dirsearch()
523 nis_free_directory (dir); in rec_dirsearch()
527 nis_free_directory (dir); in rec_dirsearch()
535 first_shoot (const_nis_name name, directory_obj *dir) in first_shoot() argument
541 if (nis_dir_cmp (name, dir->do_name) == SAME_NAME) in first_shoot()
542 return dir; in first_shoot()
544 fd_res = __nis_finddirectory (dir, name); in first_shoot()
555 if (strcmp (dir->do_name, obj->do_name) != 0) in first_shoot()
565 nis_free_directory (dir); in first_shoot()
643 directory_obj *dir, unsigned int server_used, in nis_server_cache_add() argument
654 if (dir == NULL) in nis_server_cache_add()
657 size = xdr_sizeof ((xdrproc_t) _xdr_directory_obj, (char *) dir); in nis_server_cache_add()
663 new->expires = now->tv_sec + dir->do_ttl; in nis_server_cache_add()
671 if (!_xdr_directory_obj (&xdrs, dir)) in nis_server_cache_add()
705 directory_obj **dir, dir_binding *dbp, unsigned int flags) in __nisfind_server() argument
717 if (*dir != NULL) in __nisfind_server()
723 *dir = nis_server_cache_search (name, search_parent, &server_used, in __nisfind_server()
725 if (*dir != NULL) in __nisfind_server()
727 unsigned int server_len = (*dir)->do_servers.do_servers_len; in __nisfind_server()
737 result = __nisbind_create (dbp, (*dir)->do_servers.do_servers_val, in __nisfind_server()
741 nis_free_directory (*dir); in __nisfind_server()
742 *dir = NULL; in __nisfind_server()
748 *dir = readColdStartFile (); in __nisfind_server()
750 if (*dir == NULL) in __nisfind_server()
758 obj = first_shoot (search_name, *dir); in __nisfind_server()
761 obj = rec_dirsearch (search_name, *dir, &status); in __nisfind_server()
792 *dir = obj; in __nisfind_server()
829 directory_obj *dir = NULL; in libnsl_hidden_nolink_def() local
832 nis_error retcode = __prepare_niscall (name, &dir, &bptr, flags); in libnsl_hidden_nolink_def()
839 nis_free_directory (dir); in libnsl_hidden_nolink_def()