summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Build static netent and hostent structure in a nicer and hopefully noteric2012-08-191-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 toeric2012-08-196-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.eric2012-08-183-13/+27
|
* getrrsetyname() only uses ERRSET_* and is not supposed to set errno.eric2012-08-182-12/+12
| | | | make sure to save and restore errno properly.
* Simplify error reporting in hostaddr_async(). Only use EAI_* error codes.eric2012-08-181-11/+2
|
* Improve error reporting in getnameinfo_async() and getaddrinfo_async().eric2012-08-183-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)eric2012-07-291-1/+2
|
* properly report EAI_SERVICE when the given servname is not defined foreric2012-07-131-2/+4
| | | | the given protocol.
* unused variableseric2012-07-121-2/+2
|
* implement res_mkqueryeric2012-07-111-1/+47
|
* same code update and fix as for gethostnamadr_asynceric2012-07-101-55/+77
|
* simplify the code, improve error handling and plug a potential fd leak on erroreric2012-07-101-71/+101
|
* use the value actually passed to the functioneric2012-07-101-2/+2
|
* Better handling of servname in getaddrinfo_async. Do not necessarilyeric2012-07-101-11/+16
| | | | | fail if there is no entry for a given protocol. Fix issue reported by early testers.
* implement res_querydomain() required by sendmaileric2012-07-081-1/+30
|
* add stub function for gethostent(), and move things around a bit while here.eric2012-07-081-12/+19
|
* rename function to avoid symbol clasheric2012-07-073-12/+8
|
* remove bogus include of bsd.lib.mkeric2012-07-071-3/+1
|
* fix a few warningseric2012-04-254-16/+22
|
* Create a new resolver for each thread. It will be done differentlyeric2012-04-151-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.eric2012-04-151-6/+9
|
* tweak previous;jmc2012-04-151-16/+17
|
* only define DEBUG internallyeric2012-04-143-9/+10
|
* Import asr, an experimental async resolver implementation.eric2012-04-1416-0/+7184
The idea is to eventually replace the existing resolver with something better. Time to start working on it in tree. ok deraadt@