summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r292514:ume2015-12-271-1/+1
| | | | | | addrinfo.ai_family is an address family, not a protocol family. PR: 162434
* Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3).ume2015-12-251-1/+1
| | | | PR: 198092
* Replace __const by const in all non-contributed source code.ed2011-12-131-1/+1
| | | | | | As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well.
* Add capability to use a db version of services. It is enabled byume2010-04-041-0/+1
| | | | | | specifying `db' as source of service in /etc/nsswitch.conf. MFC after: 2 weeks
* Remove the Berkeley clause 3's.imp2010-02-161-5/+1
| | | | Add a few $FreeBSD$
* Hide numerous BSD extensions in the POSIX namespace.das2009-03-141-24/+30
|
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bitume2006-05-211-7/+0
| | | | | | arch. X-MFC after: never
* Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer isume2006-05-211-3/+4
| | | | | | too short. This conforms to RFC3493, POSIX and XPG6. Obtained from: NetBSD
* Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:ume2006-05-121-2/+9
| | | | | | | | | | 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-0/+26
| | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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)
* Remove padding for ABI compatibility of ai_addrlen memberume2005-07-221-19/+0
| | | | | from struct addrinfo. This change break ABI compatibility on 64 bit arch.
* - Remove padding for ABI compatibility of n_net member from structume2005-06-031-21/+0
| | | | | | | | | | | | | netent. - Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit arch as well to confirm to POSIX-2001. These changes break ABI compatibility on 64 bit arch. There is similar padding issue for ai_addrlen of struct addrinfo. However, it is leaved as is for now. Discussed on: arch@, standards@ and current@ X-MFC after: never
* disable defining NI_WITHSCOPEID. It was obsoleted, and was existume2005-05-271-1/+1
| | | | only for backward compatibility since 5.2-RELEASE.
* - The ai_addrlen of a struct addrinfo used to be a size_t, perume2005-05-151-5/+46
| | | | | | | | | | | | | | | | RFC 2553. In XNS5.2, and subsequently in POSIX-2001 and RFC 3493, it was changed to a socklen_t. And, the n_net of a struct netent used to be an unsigned long integer. In XNS5, and subsequently in POSIX-2001, it was changed to an uint32_t. To accomodate for this while preserving ABI compatibility with the old interface, we need to prepend or append 32 bits of padding, depending on the (LP64) architecture's endianness. - Correct 1st argument of getnetbyaddr() to uint32_t on 32 bit arch. Stay as is on 64 bit arch for ABI backward compatibility for now. Reviewed by: das, peter MFC after: 2 weeks
* hide implementation specific internal functions from netdb.h.ume2005-04-271-12/+0
| | | | it is needed to make get{host,net}by*() thread-safe.
* . Convert return type of gai_strerror() to 'const char *' as POSIX requires.phantom2005-02-141-1/+1
| | | | | . Convert ai_errlist[] to simple 'char *' array, and appropriately optimize gai_strerror()
* implement AI_NUMERICSERV (as defined in RFC3493).ume2005-01-271-3/+5
| | | | | Obtained from: KAME MFC after: 1 week
* Make the resolver(3) and many associated interfaces much more reentrant.green2004-02-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant. In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem. No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way. Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well.
* remove EAI_NODATA aliased to EAI_NONAME.ume2004-01-151-1/+0
| | | | PR: bin/61369
* style.ume2003-10-241-1/+1
| | | | Reported by: bde
* oops, EAI_NONAME is not EAINONAME.ume2003-10-241-1/+1
|
* workaround to have backward compatibility for EAI_NODATA.ume2003-10-231-0/+1
| | | | | | it will be removed on 23 Apr 2004. Submitted by: terry
* oops, I forget to diable EAI_ADDRFAMILY and EAI_NODATA.ume2003-10-231-0/+6
|
* stop use of NI_WITHSCOPEID. it was deprecated.ume2003-10-211-0/+2
| | | | Obtained from: KAME
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-211-7/+7
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* Minor libc internal-only interface change for mapv4v6.imp2002-06-261-1/+1
|
* Breath deep and take __P out of the system include files.imp2002-03-231-50/+49
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Fixed order of includes. <sys/cdefs.h> must be included beforebde2001-10-041-9/+6
| | | | | | | | | <machine/ansi.h> for the definition of __signed, unless the compiler is gcc. Moved the declaration of socklen_t up together with the declaration of size_t, and removed low-quality comment about this declaration. Declaring socklen_t in this file is normal in POSIX-1.200x, unlike declaring size_t.
* style(9) the structure definitions.obrien2001-09-051-4/+4
|
* Remove namespace pollution.mike2001-07-221-2/+2
| | | | | | | PR: 14327 Reviewed by: des Approved by: des MFC after: 7 days
* give the "netgrent" functions a home in netdb.halfred2001-03-271-0/+5
|
* Nuke non-standard EAI_RESNULL.ume2001-03-171-2/+1
|
* Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Someume2001-02-191-1/+2
| | | | | | applications specify AI_ADDRCONFIG and fail to run under FreeBSD. Latest mews is known. Now, getaddrinfo(3) behaves according to AI_ADDRCONFIG.
* Correct 2nd argument of getnameinfo(3) to socklen_t.ume2001-02-151-2/+15
| | | | Reviewed by: itojun
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-061-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Change IPv6 address scope delimeter from '@' to '%' as recent KAME change.shin2000-02-081-1/+1
| | | | | | | | '@' conflicts with existing notations such as user@host, so '%' is better. Approved by: jkh Obtained from: KAME project
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-281-0/+77
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)peter1998-06-111-4/+9
| | | | | | | | since it has far wider impact than hostname lookups (including passwords). Note that this has more ugly symbol hiding and binary compatability hacks that can go away the second we bump majors. Obtained from: Mostly from diff against ISC bind-8.1.2 sources
* Make this compile with the -traditional cc flag.steve1997-08-161-2/+2
| | | | | PR: misc/2189 Submitted by: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
* merge in bind-4.9.6 changes (only effect is __res_send #define reverted)peter1997-06-271-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-231-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.
* Update the resolver definitions from bind-4.9.4-P1 to 4.9.5-P1 level.peter1996-12-301-5/+5
| | | | (More commits to come)
* Hand merge in the bind-4.9.4-P1 resolver updates.peter1996-08-291-1/+31
|
* Fix a bunch of spelling errors in the comment fieldsmpp1996-01-301-3/+3
| | | | of a bunch of system include files.
* Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1)peter1995-08-201-2/+6
| | | | | | | Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way. Obtained from: Paul Vixie <paul@vix.com>
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+143
OpenPOWER on IntegriCloud