#
5342d17f |
| 21-Mar-2006 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Update the resolver in libc to BIND9's one.
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
Update the resolver in libc to BIND9's one.
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)
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
ad0fab44 |
| 03-Jun-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
- Remove padding for ABI compatibility of n_net member from struct netent. - Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit arch as well to confirm to POSIX-2001.
These changes b
- Remove padding for ABI compatibility of n_net member from struct 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
show more ...
|
#
036ae3dd |
| 15-May-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
- The ai_addrlen of a struct addrinfo used to be a size_t, per 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 nete
- The ai_addrlen of a struct addrinfo used to be a size_t, per 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
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
a2a77501 |
| 28-Apr-2005 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
make getnetby*() thread-safe.
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1 |
|
#
50a51e39 |
| 07-Feb-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Unbreak world.
|
#
a54c3906 |
| 07-Feb-2004 |
Diomidis Spinellis <dds@FreeBSD.org> |
getnetbyname fixes: Do not choke on malformed network addresses. Return n_name in static space, not on the function's stack.
MFC after: 1 week
|
Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
a52b6b83 |
| 03-Oct-2002 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Allocate 64K recieve buffer for DNS responses. Though res_query.c also defines and refers MAXPACKET, it is not related to ansbuf. So, I didn't touch res_query.c.
|
#
7922d4cf |
| 19-Sep-2002 |
Jacques Vidrine <nectar@FreeBSD.org> |
Add forgotten newlines in debug messages.
|
#
54384cf3 |
| 15-Sep-2002 |
Jacques Vidrine <nectar@FreeBSD.org> |
Check for truncation in calls to res_send/res_query/res_search. Fail when it is detected.
|
#
7deb8a7d |
| 15-Sep-2002 |
Jacques Vidrine <nectar@FreeBSD.org> |
Backout the increase of MAXPACKET from 1024 to 65536: it broke pthreads.
Reported by: mbr, tjr
|
#
2e4dbbaa |
| 13-Sep-2002 |
Jacques Vidrine <nectar@FreeBSD.org> |
When using res_send/res_query/res_search, the caller must either insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary.
Do the conservative th
When using res_send/res_query/res_search, the caller must either insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary.
Do the conservative thing and make sure enough space is available.
Reviewed by: silence on freebsd-audit
show more ...
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
145ec106 |
| 26-Jun-2002 |
Warner Losh <imp@FreeBSD.org> |
Remove two stray lines that snuck in the cvs merge
|
#
9a370b24 |
| 26-Jun-2002 |
Jacques Vidrine <nectar@FreeBSD.org> |
Initialize a pointer that was left uninitialized with the previous commit.
|
#
d6af58f5 |
| 26-Jun-2002 |
Warner Losh <imp@FreeBSD.org> |
Include more robust checking of end of buffer that more completely plugs the hole.
|
#
4cbd2472 |
| 26-Jun-2002 |
Warner Losh <imp@FreeBSD.org> |
Don't allow buffer overflow here either.
|
#
333fc21e |
| 22-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
#
8fb3f3f6 |
| 21-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Remove 'register' keyword.
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs, release/4.3.0_cvs, release/4.3.0 |
|
#
d201fe46 |
| 24-Jan-2001 |
Daniel Eischen <deischen@FreeBSD.org> |
Remove _THREAD_SAFE and make libc thread-safe by default by adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will
Remove _THREAD_SAFE and make libc thread-safe by default by 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
show more ...
|
Revision tags: release/4.2.0, release/4.1.1_cvs |
|
#
248aee62 |
| 06-Sep-2000 |
Jacques Vidrine <nectar@FreeBSD.org> |
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod.
= Hesio
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 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
show more ...
|
Revision tags: release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs |
|
#
7f3dea24 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6 |
|
#
3c8e19e1 |
| 07-Jan-1998 |
Warner Losh <imp@FreeBSD.org> |
handle long usernames more carefully Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt)
|
Revision tags: release/2.2.5_cvs |
|
#
6c5aff80 |
| 27-Jun-1997 |
Peter Wemm <peter@FreeBSD.org> |
Merge in bind-4.9.6 resolver changes. Note that they resolve the overflow problem differently.
|
Revision tags: release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs |
|
#
7e546392 |
| 22-Feb-1997 |
Peter Wemm <peter@FreeBSD.org> |
Revert $FreeBSD$ to $Id$
|
Revision tags: release/2.1.6_cvs, release/2.1.6.1 |
|
#
1130b656 |
| 14-Jan-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Make the long-awaited change from $Id$ to $FreeBSD$
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
Make the long-awaited change from $Id$ to $FreeBSD$
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.
show more ...
|
#
ca785773 |
| 30-Dec-1996 |
Peter Wemm <peter@FreeBSD.org> |
Here goes.. Bring the 4.9.5-P1 resolver into -current. This has the DNSSEC stuff, among other things. There are also some renamed functions, I've left out the res_stubs.c from this commit in case
Here goes.. Bring the 4.9.5-P1 resolver into -current. This has the 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..
show more ...
|