Commit graph

9 commits

Author SHA1 Message Date
Rich Felker
d104c1f7e2 fix broken dns response parsing code that made most ipv6 lookups fail 2011-04-08 08:49:28 -04:00
Rich Felker
e2cc0bee11 return the requested string as the "canonical name" for numeric addresses
previously NULL was returned in ai_canonname, resulting in crashes in
some callers. this behavior was incorrect. note however that the new
behavior differs from glibc, which performs reverse dns lookups. POSIX
is very clear that a reverse DNS lookup must not be performed for
numeric addresses.
2011-04-08 08:14:28 -04:00
Rich Felker
d4fbebe18d fix uninitialized variables in dns lookup code 2011-04-07 23:18:12 -04:00
Rich Felker
97d0988fd8 add _res (__res_state()) dummy 2011-04-06 15:47:26 -04:00
Rich Felker
92b2eb8d03 implement if_indextoname and if_nametoindex functions 2011-04-05 13:20:08 -04:00
Rich Felker
9ae8d5fc71 fix all implicit conversion between signed/unsigned pointers
sadly the C language does not specify any such implicit conversion, so
this is not a matter of just fixing warnings (as gcc treats it) but
actual errors. i would like to revisit a number of these changes and
possibly revise the types used to reduce the number of casts required.
2011-03-25 16:34:03 -04:00
Rich Felker
03a2f3e48c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
Rich Felker
6fbf8bfd75 another pointer signedness fix 2011-02-14 19:40:20 -05:00
Rich Felker
0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00