rust/src/libstd/sys
Josh Stone 79fb5522bd std: clear errno before readdir, then check it (solaris)
A `NULL` from `readdir` could be the end of stream or an error.  The
only way to know is to check `errno`, so it must be set to a known value
first, like a 0 that POSIX will never use.

This patch adds `set_errno`, uses it to clear the value before calling
`readdir`, then checks it again after to see the reason for a `NULL`.
2016-07-11 21:43:53 -07:00
..
common std: Fix IPV6 imports for solaris 2016-07-11 21:35:54 -07:00
unix std: clear errno before readdir, then check it (solaris) 2016-07-11 21:43:53 -07:00
windows rustc: Update stage0 to beta-2016-07-06 2016-07-06 09:29:15 -07:00