Home | History | Annotate | Download | only in libevent

Lines Matching defs:resolv

2372 /* resolv.conf. */
2451 /* when parsing resolv.conf we push elements in the wrong order */
2611 /* Parsing resolv.conf files */
2747 u8 *resolv;
2751 log(EVDNS_LOG_DEBUG, "Parsing resolv.conf file %s", filename);
2765 if (st.st_size > 65535) { err = 3; goto out1; } /* no resolv.conf should be any bigger */
2767 resolv = (u8 *) malloc((size_t)st.st_size + 1);
2768 if (!resolv) { err = 4; goto out1; }
2771 while ((r = read(fd, resolv+n, (size_t)st.st_size-n)) > 0) {
2778 resolv[n] = 0; /* we malloced an extra byte; this should be fine. */
2780 start = (char *) resolv;
2803 free(resolv);
3008 res = evdns_resolv_conf_parse(DNS_OPTIONS_ALL, "/etc/resolv.conf");
3155 evdns_resolv_conf_parse(DNS_OPTION_NAMESERVERS, "/etc/resolv.conf");