| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Notes:
svn path=/head/; revision=342383
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Error messages in gai_strerror(3) vary largely among OSs.
For new software we largely replaced the obsoleted EAI_NONAME and
with EAI_NODATA but we never updated the corresponding message to better
match the intended use. We also have references to ai_flags and ai_family
which are not very descriptive for non-developer end users.
Bring new new error messages based on informational RFC 3493, which has
obsoleted RFC 2553, and make them consistent among the header adn
manpage.
MFC after: 1 month
Differentical Revision: D18630
Notes:
svn path=/head/; revision=342379
|
|
|
|
| |
Notes:
svn path=/head/; revision=326695
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
Notes:
svn path=/head/; revision=326024
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
POSIX also declares NI_NUMERICSCOPE, which makes getnameinfo() return a
numerical scope identifier. The interesting thing is that support for
this is already present in code, but #ifdef disabled. Expose this
functionality by placing a definition for it in <netdb.h>.
While there, remove references to NI_WITHSCOPEID, as that got removed 11
years ago.
Notes:
svn path=/head/; revision=303428
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This support appears to have been documented in nsswitch.conf(5) for some
time. The implementation adds two NSS netgroup providers to libc. The
default, compat, provides the behaviour documented in netgroup(5), so this
change does not make any user-visible behaviour changes. A files provider
is also implemented.
innetgr(3) is implemented as an optional NSS method so that providers such
as NIS which are able to implement efficient reverse lookup can do so.
A fallback implementation is used otherwise. getnetgrent_r(3) is added for
convenience and to provide compatibility with glibc and Solaris.
With a small patch to net/nss_ldap, it's possible to specify an ldap
netgroup provider, allowing one to query nisNetgroupTriple entries.
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=301711
|
|
|
|
|
|
|
|
|
| |
According to POSIX, the netdb.h header must also provide in_addr_t and
in_port_t. It should also provide IPPORT_RESERVED. Copy over the
necessary bits from <netinet/in.h> to achieve that.
Notes:
svn path=/head/; revision=300996
|
|
|
|
|
|
|
|
| |
PR: 162434
MFC after: 1 week
Notes:
svn path=/head/; revision=292514
|
|
|
|
|
|
|
|
|
|
| |
We need to change netdb.h to make it actually enabled.
PR: 198092
MFC after: 1 week
Notes:
svn path=/head/; revision=292446
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=228468
|
|
|
|
|
|
|
|
|
| |
specifying `db' as source of service in /etc/nsswitch.conf.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=206155
|
|
|
|
|
|
|
| |
Add a few $FreeBSD$
Notes:
svn path=/head/; revision=203964
|
|
|
|
| |
Notes:
svn path=/head/; revision=189826
|
|
|
|
|
|
|
|
|
| |
arch.
X-MFC after: never
Notes:
svn path=/head/; revision=158791
|
|
|
|
|
|
|
|
|
| |
too short. This conforms to RFC3493, POSIX and XPG6.
Obtained from: NetBSD
Notes:
svn path=/head/; revision=158790
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
Notes:
svn path=/head/; revision=158477
|
|
|
|
|
|
|
|
|
|
| |
expose them to outside of libc.
- make netdb functions NSS friendly.
Reviewed by: arch@ and current@ (no objection)
Notes:
svn path=/head/; revision=157779
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
Notes:
svn path=/head/; revision=156960
|
|
|
|
|
|
|
|
| |
from struct addrinfo. This change break ABI compatibility
on 64 bit arch.
Notes:
svn path=/head/; revision=148308
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=146904
|
|
|
|
|
|
|
| |
only for backward compatibility since 5.2-RELEASE.
Notes:
svn path=/head/; revision=146690
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=146244
|
|
|
|
|
|
|
| |
it is needed to make get{host,net}by*() thread-safe.
Notes:
svn path=/head/; revision=145602
|
|
|
|
|
|
|
|
| |
. Convert ai_errlist[] to simple 'char *' array, and appropriately
optimize gai_strerror()
Notes:
svn path=/head/; revision=141908
|
|
|
|
|
|
|
|
| |
Obtained from: KAME
MFC after: 1 week
Notes:
svn path=/head/; revision=140908
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=126243
|
|
|
|
|
|
|
| |
PR: bin/61369
Notes:
svn path=/head/; revision=124558
|
|
|
|
|
|
|
| |
Reported by: bde
Notes:
svn path=/head/; revision=121458
|
|
|
|
| |
Notes:
svn path=/head/; revision=121451
|
|
|
|
|
|
|
|
|
| |
it will be removed on 23 Apr 2004.
Submitted by: terry
Notes:
svn path=/head/; revision=121439
|
|
|
|
| |
Notes:
svn path=/head/; revision=121430
|
|
|
|
|
|
|
| |
Obtained from: KAME
Notes:
svn path=/head/; revision=121316
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=102227
|
|
|
|
| |
Notes:
svn path=/head/; revision=98866
|
|
|
|
|
|
|
|
|
| |
# 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.
Notes:
svn path=/head/; revision=93032
|
|
|
|
|
|
|
|
|
|
|
|
| |
<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.
Notes:
svn path=/head/; revision=84463
|
|
|
|
| |
Notes:
svn path=/head/; revision=83047
|
|
|
|
|
|
|
|
|
|
| |
PR: 14327
Reviewed by: des
Approved by: des
MFC after: 7 days
Notes:
svn path=/head/; revision=80153
|
|
|
|
| |
Notes:
svn path=/head/; revision=74844
|
|
|
|
| |
Notes:
svn path=/head/; revision=74393
|
|
|
|
|
|
|
|
|
| |
applications specify AI_ADDRCONFIG and fail to run under FreeBSD.
Latest mews is known. Now, getaddrinfo(3) behaves according to
AI_ADDRCONFIG.
Notes:
svn path=/head/; revision=72693
|
|
|
|
|
|
|
| |
Reviewed by: itojun
Notes:
svn path=/head/; revision=72510
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=65532
|
|
|
|
|
|
|
|
|
|
|
| |
'@' conflicts with existing notations such as user@host, so '%' is better.
Approved by: jkh
Obtained from: KAME project
Notes:
svn path=/head/; revision=57033
|
|
|
|
|
|
|
|
|
|
| |
Several udp and raw apps IPv6 support.
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
Notes:
svn path=/head/; revision=55163
|
|
|
|
| |
Notes:
svn path=/head/; revision=50473
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=36888
|
|
|
|
|
|
|
|
| |
PR: misc/2189
Submitted by: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
Notes:
svn path=/head/; revision=28271
|
|
|
|
| |
Notes:
svn path=/head/; revision=26975
|
|
|
|
| |
Notes:
svn path=/head/; revision=23037
|