summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/getnetnamadr_async.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* To allow us to get rid of /etc/networks, make getnetby*(3)schwarze2018-04-281-420/+8
| | | | | | wrappers around gethostby*_async(3). If you had anything of importance in /etc/networks, specify it in /etc/hosts instead. Feedback and OK eric@, OK deraadt@
* Put a common subq pointer in the query struct, rather than one in eacheric2017-02-231-6/+6
| | | | | | element of the union. ok gilles@ millert@ krw@
* missing breakseric2017-02-211-1/+2
| | | | ok jca@ krw@ gilles@
* remove bogus includes of err.heric2015-09-201-2/+1
|
* Wrap <asr.h> so internal calls go direct and all the symbols are weakguenther2015-09-141-1/+3
|
* Hide all unnecessary asr / resolver related API with _ prefixes.deraadt2015-09-091-22/+22
| | | | direction & ok guenther
* fix a possible off-by-one when reading /etc/hosts if it doesn't enderic2015-05-291-3/+3
| | | | | | with a newline. ok jca@
* Fix a NULL deref when getting an actual result for an invalid hostnameeric2014-11-021-5/+5
| | | | | | in gethostbyname(). Similar fix for getnetbyname(). ok deraadt@ daniel@ jca@
* When fopen()ing internal to libc (the API doesn't support the useguenther2014-09-151-2/+2
| | | | | | | of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@
* Use _PATH_NETWORKS for "/etc/networks"guenther2014-09-151-2/+2
| | | | ok miod@
* Make queries using the search list for hostname lookups fail witheric2014-07-231-1/+8
| | | | | | | | | | NO_DATA/EAI_NODATA when the hostname param is an empty string. So far, they were using the entries in the search list with no additional component, which is not really expected. reported by jsing@ and a few others ok deraadt@, "makes sense" jsing@
* skip incomplete entries in /etc/hosts and /etc/networkseric2014-05-131-1/+5
| | | | | | fix null deref spotted by Seth Hanford, pinpointed by dtucker@ ok florian@
* Make the asr API public. Install asr.h to /usr/include.h and manpages.eric2014-03-261-2/+3
| | | | | | Include tweaks suggested by mpi@ ok deraadt@
* Cleanup and simplify the API to be exposed. Use better names foreric2014-03-251-12/+12
| | | | | | structures, functions and defines. discussed with and ok deraadt@ guenther@
* prefix structure names to avoid ambiguity and possible collisions wheneric2014-03-141-5/+5
| | | | | | the API gets public. ok deraadt@
* Do not restrict chars in dname during label expansion, but validate resultingeric2014-02-261-1/+6
| | | | | | hostnames before returning them to the caller. ok deraadt@
* Make some symbols static and prefix all visible symbols with asr_eric2013-07-121-13/+11
| | | | | | to prevent collisions with third-party programs. suggested by sthen@, ok theo@
* Do not take external buffers for storing DNS responses in the internaleric2013-04-301-3/+3
| | | | | async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
* space cleanup; ok ericderaadt2013-04-011-4/+4
|
* Saner implementation for self-contained hostent and netent, and alsoeric2012-11-241-69/+77
| | | | a couple of fixes.
* knferic2012-11-241-10/+10
|
* make separate structures for pack and unpackeric2012-11-241-3/+3
|
* unused variableseric2012-09-071-2/+2
|
* When building dynamic hostent and netent, allocate a single linear buffer toeric2012-08-191-35/+32
| | | | | | 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.
* same code update and fix as for gethostnamadr_asynceric2012-07-101-55/+77
|
* Import asr, an experimental async resolver implementation.eric2012-04-141-0/+418
The idea is to eventually replace the existing resolver with something better. Time to start working on it in tree. ok deraadt@