Lines Matching refs:ah1
941 struct hostsfile *ah1; in cache_reload() local
956 for (ah1 = daemon->addn_hosts; ah1; ah1 = ah1->next) in cache_reload()
958 if (lendir < strlen(ah1->fname) && in cache_reload()
959 strstr(ah1->fname, ah->fname) == ah1->fname && in cache_reload()
960 ah1->fname[lendir] == '/' && in cache_reload()
961 strcmp(ah1->fname + lendir + 1, ent->d_name) == 0) in cache_reload()
963 ah1->flags &= ~AH_INACTIVE; in cache_reload()
969 if (!ah1) in cache_reload()
971 if (!(ah1 = whine_malloc(sizeof(struct hostsfile)))) in cache_reload()
976 free(ah1); in cache_reload()
983 ah1->fname = path; in cache_reload()
984 ah1->index = i++; in cache_reload()
985 ah1->flags = AH_DIR; in cache_reload()
986 ah1->next = daemon->addn_hosts; in cache_reload()
987 daemon->addn_hosts = ah1; in cache_reload()
991 if ((ah1->flags & AH_DIR) && stat(ah1->fname, &buf) != -1 && !S_ISREG(buf.st_mode)) in cache_reload()
992 ah1->flags |= AH_INACTIVE; in cache_reload()