Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Build static netent and hostent structure in a nicer and hopefully not | 2012-08-19 | 1 | -95/+100 | |
| | | | | | broken way. Make it almost trivial to implement gethostby*_r() family of functions when needed. | ||||
* | When building dynamic hostent and netent, allocate a single linear buffer to | 2012-08-19 | 6 | -104/+88 | |
| | | | | | | hold both the structure and the data. The freehostent() and freenetent() API functions are not needed anymore. While there, ensure that the constructed addr and alias lists are really NULL terminated. | ||||
* | ensure that async_run() and async_run_sync() always preserve errno. | 2012-08-18 | 3 | -13/+27 | |
| | |||||
* | getrrsetyname() only uses ERRSET_* and is not supposed to set errno. | 2012-08-18 | 2 | -12/+12 | |
| | | | | make sure to save and restore errno properly. | ||||
* | Simplify error reporting in hostaddr_async(). Only use EAI_* error codes. | 2012-08-18 | 1 | -11/+2 | |
| | |||||
* | Improve error reporting in getnameinfo_async() and getaddrinfo_async(). | 2012-08-18 | 3 | -57/+46 | |
| | | | | | | | | | | They do not have to deal with h_errno at all. Also, errno is only kept for EAI_SYSTEM. Small code cleanup while there. Adapt getnameinfo() and getaddrinfo() wrappers to correctly save errno and overwrite it in the EAI_SYSTEM case. General errno handling issue reported by mikeb@. | ||||
* | must be zero'd (found by regress) | 2012-07-29 | 1 | -1/+2 | |
| | |||||
* | properly report EAI_SERVICE when the given servname is not defined for | 2012-07-13 | 1 | -2/+4 | |
| | | | | the given protocol. | ||||
* | unused variables | 2012-07-12 | 1 | -2/+2 | |
| | |||||
* | implement res_mkquery | 2012-07-11 | 1 | -1/+47 | |
| | |||||
* | same code update and fix as for gethostnamadr_async | 2012-07-10 | 1 | -55/+77 | |
| | |||||
* | simplify the code, improve error handling and plug a potential fd leak on error | 2012-07-10 | 1 | -71/+101 | |
| | |||||
* | use the value actually passed to the function | 2012-07-10 | 1 | -2/+2 | |
| | |||||
* | Better handling of servname in getaddrinfo_async. Do not necessarily | 2012-07-10 | 1 | -11/+16 | |
| | | | | | fail if there is no entry for a given protocol. Fix issue reported by early testers. | ||||
* | implement res_querydomain() required by sendmail | 2012-07-08 | 1 | -1/+30 | |
| | |||||
* | add stub function for gethostent(), and move things around a bit while here. | 2012-07-08 | 1 | -12/+19 | |
| | |||||
* | rename function to avoid symbol clash | 2012-07-07 | 3 | -12/+8 | |
| | |||||
* | remove bogus include of bsd.lib.mk | 2012-07-07 | 1 | -3/+1 | |
| | |||||
* | fix a few warnings | 2012-04-25 | 4 | -16/+22 | |
| | |||||
* | Create a new resolver for each thread. It will be done differently | 2012-04-15 | 1 | -14/+24 | |
| | | | | | eventually, but it's enough for now to make the blocking API fully thread-safe without locking. | ||||
* | calling getnameinfo here is a bad idea. use inet_ntop. | 2012-04-15 | 1 | -6/+9 | |
| | |||||
* | tweak previous; | 2012-04-15 | 1 | -16/+17 | |
| | |||||
* | only define DEBUG internally | 2012-04-14 | 3 | -9/+10 | |
| | |||||
* | Import asr, an experimental async resolver implementation. | 2012-04-14 | 16 | -0/+7184 | |
The idea is to eventually replace the existing resolver with something better. Time to start working on it in tree. ok deraadt@ |