1. 26 11月, 2013 1 次提交
  2. 25 7月, 2013 1 次提交
  3. 02 2月, 2013 1 次提交
  4. 23 9月, 2012 1 次提交
    • R
      fix getaddrinfo to accept port 0 (zero) · 4b49060d
      Rich Felker 提交于
      new behavior can be summarized as:
      inputs that parse completely as a decimal number are treated as one,
      and rejected only if the result is out of 16-bit range.
      inputs that do not parse as a decimal number (where strtoul leaves
      anything left over in the input) are searched in /etc/services.
      4b49060d
  5. 07 9月, 2012 1 次提交
    • R
      use restrict everywhere it's required by c99 and/or posix 2008 · 400c5e5c
      Rich Felker 提交于
      to deal with the fact that the public headers may be used with pre-c99
      compilers, __restrict is used in place of restrict, and defined
      appropriately for any supported compiler. we also avoid the form
      [restrict] since older versions of gcc rejected it due to a bug in the
      original c99 standard, and instead use the form *restrict.
      400c5e5c
  6. 23 7月, 2012 2 次提交
  7. 02 4月, 2012 1 次提交
    • R
      improve name lookup performance in corner cases · 4f346b08
      Rich Felker 提交于
      the buffer in getaddrinfo really only matters when /etc/hosts is huge,
      but in that case, the huge number of syscalls resulting from a tiny
      buffer would seriously impact the performance of every name lookup.
      
      the buffer in __dns.c has also been enlarged a bit so that typical
      resolv.conf files will fit fully in the buffer. there's no need to
      make it so large as to dominate the syscall overhead for large files,
      because resolv.conf should never be large.
      4f346b08
  8. 01 8月, 2011 1 次提交
    • R
      port numbers should always be interpreted as decimal · f4e8e64b
      Rich Felker 提交于
      per POSIX and RFC 3493:
      
      If the specified address family is AF_INET, AF_INET6, or AF_UNSPEC,
      the service can be specified as a string specifying a decimal port
      number.
      
      021 is a valid decimal number, therefore, interpreting it as octal
      seems to be non-conformant.
      f4e8e64b
  9. 21 4月, 2011 1 次提交
  10. 08 4月, 2011 1 次提交
    • R
      return the requested string as the "canonical name" for numeric addresses · e2cc0bee
      Rich Felker 提交于
      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.
      e2cc0bee
  11. 26 3月, 2011 1 次提交
    • R
      fix all implicit conversion between signed/unsigned pointers · 9ae8d5fc
      Rich Felker 提交于
      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.
      9ae8d5fc
  12. 12 2月, 2011 1 次提交