summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyht.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: Make various internal file descriptors from fopen() close-on-exec.jilles2013-08-231-2/+2
|
* - When there is no room for returning the result, nss backendume2010-08-131-4/+12
| | | | | | | | | | have to return ERANGE and terminate with NS_RETURN. - When gethostbyname_r(3) and the friends end with an error, set errno to the value nss backend returns, and return errno value. PR: kern/131623 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.
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:ume2006-05-121-4/+5
| | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html gethostbyaddr_r() is changed as well. It breaks ABI backward compatibility on 64 bit arch. So, we fix it on 32 bit arch only for now. Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
* - make reentrant version of netdb functions glibc style API, andume2006-04-151-47/+115
| | | | | | | expose them to outside of libc. - make netdb functions NSS friendly. Reviewed by: arch@ and current@ (no objection)
* Update the resolver in libc to BIND9's one.ume2006-03-211-7/+12
| | | | | | | | | | | | | | | | | | | | | | Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc. Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them). Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe. Reviewed by: arch@ (no objection)
* oops, gethostbyaddr(3) must return h_addr as an IPv4-mappedume2005-04-301-1/+8
| | | | | IPv6 address when RES_USE_INET6 was set, according to RFC 2133 section 6.2.
* _ht_gethostbyaddr didn't handle RES_USE_INET6 correctly.ume2005-04-301-1/+1
|
* _ht_gethostbyname didn't handle RES_USE_INET6 correctly.ume2005-04-301-6/+18
|
* NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno.ume2005-04-291-1/+1
|
* make gethostby*() thread-safe.ume2005-04-281-62/+88
|
* hide implementation specific internal functions from netdb.h.ume2005-04-271-0/+1
| | | | it is needed to make get{host,net}by*() thread-safe.
* Don't ignore the last line of config file (/etc/hosts, /etc/services, etc)sobomax2005-01-031-3/+3
| | | | | | | | which doesn't end in \n, since it may be very confusing. Also this should increase consistency, since most other config files work just fine regardless of the presence of traling \n in the last line. MFC After: 2 weeks
* Fix the style of the SCM ID's.obrien2002-03-221-1/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove 'register' keyword.obrien2002-03-211-4/+4
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-061-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Ensure that host_addr (which is returned in struct hostent::h_addr_list[0])dt1999-06-071-2/+2
| | | | is aligned so that pointer to it can be safely casted to struct in_addr *.
* Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-271-9/+2
| | | | overflow problem differently.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thepeter1996-12-301-7/+6
| | | | | DNSSEC stuff, among other things. There are also some renamed functions, I've left out the res_stubs.c from this commit in case cvs bombs out..
* oops, brain-lapse caused undefined symbolpeter1996-08-301-3/+3
|
* Merge in bind-4.9.4-P1 resolver...peter1996-08-291-18/+39
|
* General -Wall warning cleanup, part I.jkh1996-07-121-5/+5
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* The last of the bind-4.9.3-REL resolver merges.peter1996-01-131-22/+29
|
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* get* rework and new bind codepst1994-09-251-0/+182
OpenPOWER on IntegriCloud