rust/src/libstd/sys
Jonathan Turner 5c9fc99520 Rollup merge of #36754 - tmiasko:getaddrinfo-errors, r=alexcrichton
When getaddrinfo returns EAI_SYSTEM retrieve actual error from errno.

Fixes issue #36546. This change also updates libc to earliest version
that includes EAI_SYSTEM constant.

Previously, in cases where `EAI_SYSTEM` has been returned from getaddrinfo, the
resulting `io::Error` would be broadly described as "System error":

    Error { repr: Custom(Custom { kind: Other, error: StringError("failed to lookup address information: System error") }) }

After change a more detailed error is crated based on particular value of
errno, for example:

    Error { repr: Os { code: 64, message: "Machine is not on the network" } }

The only downside is that the prefix "failed to lookup address information" is
no longer included in the error message.
2016-09-26 17:29:49 -07:00
..
common Add support for the Haiku operating system on x86 and x86_64 machines 2016-09-25 11:12:23 -05:00
unix Rollup merge of #36754 - tmiasko:getaddrinfo-errors, r=alexcrichton 2016-09-26 17:29:49 -07:00
windows Replace _, _, _ with .. 2016-09-04 12:27:01 +03:00