6f65e66895
Fix typos.
2013-08-29 09:11:45 +02:00
fb431262c1
Clean up _res declaration to use __thread unconditionally.
2013-08-27 11:04:46 -07:00
c4e42566cf
Don't try to use ioctl unless [FIONREAD].
2013-08-27 10:50:06 -07:00
f890a59b10
Mild decrufting in resolv code.
2013-08-27 10:49:36 -07:00
c0c3f78afb
Fix typos.
2013-08-21 19:48:48 +02:00
60d2f8f3c7
Use (void) in no-arguments function definitions.
2013-06-08 00:22:23 +00:00
2e09a79ada
Avoid use of "register" as optimization hint.
2013-06-07 22:24:35 +00:00
350635a59a
Fix leading whitespaces.
2013-06-06 20:36:07 +02:00
9c84384cc1
Remove trailing whitespace.
2013-06-05 20:44:03 +00:00
fab7ce3f5b
Link extra-libs consistently with libc and ld.so.
2013-05-31 16:16:33 +00:00
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
c3ed8088e4
BZ#15084: Apparent typos in strings in res_debug.c
...
[BZ #15084 ]
* resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
and RES_USEVC.
2013-04-29 21:17:30 +02:00
f1a24198af
BZ#15085: Fix comments/strings for RES_NOCHECKNAME
...
[BZ #15085 ]
* resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
* resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
unimplemented.
2013-04-29 21:11:13 +02:00
b1a36ceb3b
BZ#15086: Fix res_debug printing of options
...
[BZ# 15086]
* resolv/res_debug.c (p_option): Handle RES_NOALIASES,
RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
RES_SNGLKUPREOP.
2013-04-29 21:00:57 +02:00
f238fd190b
Sort Versions files
2013-02-17 16:34:04 +01:00
f1d70dad53
Remove lots of inline keywords.
2013-02-07 14:44:18 -08:00
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
f4cf5f2d8b
Add script to update copyright notices and reformat some to facilitate its use.
2013-01-01 16:29:10 +00:00
cc8bb21c8a
Fix assertion failures in resolver (BZ #13013 ).
...
[BZ #13013 ]
* resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
depending n and resplen2 to catch cases where answer
equals answerp2.
2012-11-30 15:04:27 -05:00
123be9deda
Add recvmmsg and sendmmsg to the generic glibc API.
2012-11-20 19:26:04 +01:00
cfde9b463d
Return EAI_SYSTEM if we're out of file descriptors
...
Resolves BZ #14719 .
2012-11-19 13:02:48 +05:30
8ca8931812
Define IPPORT_RESERVED in netdb.h for XPG4 and UNIX98 (bug 14838).
2012-11-13 18:11:49 +00:00
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
7b6e99be77
Avoid duplicate DNS requests if answer is longer than a implementation
...
limit
[BZ #14307 ]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
the temporary buffer used to invoke __gethostbyname2_r,
__gethostbyaddr_r and gethostbyname4_r to make room for struct
host_data / struct gaih_addrtuple.
* resolv/nss_dns/dns-host.c (global scope): Move definition of
implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
header file nss/nsswitch.h.
* nss/nsswitch.h (global scope): Add definition of implementation
constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
resolv/nss_dns/dns-host.c).
2012-07-12 11:31:48 +05:30
6cd0a5eaf0
Merge copyright years in resolv/nss_dns/dns-host.c
2012-03-31 10:01:43 +05:30
48c41d04ee
Consider TTL of CNAME record and return minimum TTL in the chain
...
[BZ #13928 ] A DNS request consists of multiple resources combined into
a single hostent, including multiple CNAME records that may have been
assigned different TTL values. In such a case, nscd should take the
least TTL among all of the resources as the timeout for the hostent
before it is reloaded in its cache so that the hostent remains stale
in the database for the least amount of time.
2012-03-30 21:30:01 +05:30
2f5a5ed02c
* resolv/nss_dns/dns-host.c: Update copyright year.
2012-03-30 09:54:21 -06:00
966977f1b7
Better error handling for sendmmsg use in res_send
2012-03-30 08:38:58 -04:00
8e6d108343
Correct check for DNS request send success
...
This predates the sendmmsg use. The two requests can use different
request sizes but the check for successful transfer always only used
buflen.
2012-03-30 08:27:11 -04:00
c030f70c87
Speed up DNS by avoiding a system call if possible
2012-03-30 07:42:29 -04:00
86ae07a8c9
[BZ #13760 ]
...
* resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
in the right place. Discard and retry query if response is
larger than input buffer size.
2012-03-28 10:09:29 -06:00
3ff4252677
2012-03-23 Daniel Jacobowitz <dmj@google.com>
...
Paul Pluzhnikov <ppluzhnikov@google.com >
[BZ #6528 ]
* grp/Makefile (otherlibs): Don't set it.
* inet/Makefile (otherlibs): Likewise.
* login/Makefile (otherlibs): Likewise.
* nscd/Makefile (otherlibs): Likewise.
* posix/Makefile (otherlibs): Likewise.
* pwd/Makefile (otherlibs): Likewise.
* rt/Makefile (otherlibs): Likewise.
* sunrpc/Makefile (otherlibs): Likewise.
* nss/Makefile (otherlibs): Likewise.
Add libnss_files to routines and static-only-routines.
($(objpfx)getent): Remove rule.
* resolv/Makefile: Add libnss_dns and libresolv to routines and
static-only-routines.
2012-03-23 09:47:03 -07:00
82d86f2844
Fix struct timespec normalization (as used in many other places).
2012-03-08 11:49:43 +01:00
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
8fdceb2efd
[network] Avoid out ouf bounds read in __libc_res_nquerydomain
...
2012-02-28 Jeff Law <law@redhat.com >
* resolv/res_query.c (__libc_res_nquerydomain): Avoid
out of bounds read.
2012-02-29 11:51:27 -05:00
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
0269750ca6
Remove non-ELF support
2012-01-07 20:30:26 -05:00
ad8ac1bd6a
Open /etc/resolv.conf with FD_CLOEXEC
2011-12-17 14:43:40 -05:00
312be3f9f5
Clean up internal fopen uses
...
No need to ever not use c and e.
2011-11-15 04:24:42 -05:00
9694fc4479
Avoid unused warning in getaddrinfo_a
2011-11-12 02:30:01 -05:00
e057a1b593
Link libresolv.so with ld.so for __stack_chk_guard.
2011-09-21 13:27:50 -07:00
d063d16433
Remove support for !USE___THREAD
2011-09-10 16:50:28 -04:00
3ce1f29594
Cleanup of configuration options
...
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
44f0a71e58
Add rules to build libresolv with SSP flags
2011-08-17 21:36:23 -04:00
9be9bfcc9d
Properly tokenize nameserver line for servers with IPv6 address
2011-08-04 15:50:48 -04:00
28b59fca7a
Use size_t for strlen results
2011-07-20 11:40:37 -04:00
c75fa153a9
Fix warnings in resolver code
2011-07-06 22:29:45 -04:00
57912a71cc
Fix typo in recent resolver change which causes segvs
2011-06-15 22:43:58 -04:00