Lines Matching refs:ah
872 struct hostsfile *ah; in cache_reload() local
909 for (i = 0, ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
911 if (i <= ah->index) in cache_reload()
912 i = ah->index + 1; in cache_reload()
914 if (ah->flags & AH_DIR) in cache_reload()
915 ah->flags |= AH_INACTIVE; in cache_reload()
917 ah->flags &= ~AH_INACTIVE; in cache_reload()
920 for (ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
921 if (!(ah->flags & AH_INACTIVE)) in cache_reload()
924 if (stat(ah->fname, &buf) != -1 && S_ISDIR(buf.st_mode)) in cache_reload()
930 ah->flags |= AH_INACTIVE; in cache_reload()
932 if (!(dir_stream = opendir(ah->fname))) in cache_reload()
934 ah->fname, strerror(errno)); in cache_reload()
939 size_t lendir = strlen(ah->fname); in cache_reload()
959 strstr(ah1->fname, ah->fname) == ah1->fname && in cache_reload()
980 strcpy(path, ah->fname); in cache_reload()
1000 for (ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
1001 if (!(ah->flags & AH_INACTIVE)) in cache_reload()
1002 total_size = read_hostsfile(ah->fname, ah->index, total_size); in cache_reload()
1215 struct hostsfile *ah; in record_source() local
1220 for (ah = daemon->addn_hosts; ah; ah = ah->next) in record_source()
1221 if (ah->index == index) in record_source()
1222 return ah->fname; in record_source()