summaryrefslogtreecommitdiffstats
path: root/lib/libc/resolv/res_init.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow users override `DEBUG` on the command line via DEBUG_FLAGS="-DDEBUG" withngie2015-12-151-1/+3
| | | | | | | | lib/libc/resolv by conditionalizing its definition MFC after: 3 days Reviewed by: ume, vangyzen Differential Revision: https://reviews.freebsd.org/D4519
* resolver: preserve binary compatibility; reduce header pollutionvangyzen2015-12-141-15/+11
| | | | | | | | | | | | | | In r289315, I added new fields to res_state. This broke binary backward compatibility. It also broke some ports (and possibly other code) by requiring the definition of time_t and struct timespec. Fix these problems by moving the new fields into __res_state_ext. Suggested by: ume Reviewed by: ume MFC after: 3 days Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4472
* resolver: automatically reload /etc/resolv.confvangyzen2015-10-141-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | On each resolver query, use stat(2) to see if the modification time of /etc/resolv.conf has changed. If so, reload the file and reinitialize the resolver library. However, only call stat(2) if at least two seconds have passed since the last call to stat(2), since calling it on every query could kill performance. This new behavior is enabled by default. Add a "reload-period" option to disable it or change the period of the test. Document this behavior and option in resolv.conf(5). Polish the man page just enough to appease igor. https://lists.freebsd.org/pipermail/freebsd-arch/2015-October/017342.html Reviewed by: kp, wblock Discussed with: jilles, imp, alfred MFC after: 1 month Relnotes: yes Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D3867
* Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.rodrigc2015-09-221-2/+1
|
* Update our stub resolver to final version of libbind.ume2014-08-121-6/+63
| | | | Obtained from: ISC
* libc: Make various internal file descriptors from fopen() close-on-exec.jilles2013-08-231-1/+1
|
* Merge BIND 9.4.2 into main chunk.ume2007-12-031-17/+24
|
* Merge BIND 9.4.1 into main chunk.ume2007-06-031-12/+14
| | | | MFC after: 2 weeks
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Merge BIND9 9.3.3 into main chunk.ume2006-12-151-12/+5
| | | | | Obtained from: ISC MFC after: 1 week
* _close() should be called instead of close() here.ume2006-08-041-2/+6
|
* - Merge our local changes.ume2006-03-211-8/+79
| | | | - Exclude unnecessary functions for us.
* Vendor import of BIND 9.3.2ume2006-03-211-0/+799
OpenPOWER on IntegriCloud