rust/src/libstd/sys/unix
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
..
backtrace std: Stabilize APIs for the 1.10 release 2016-05-24 09:00:39 -07:00
ext std: Fix up stabilization discrepancies 2016-06-23 14:08:11 -07:00
android.rs std: Add compatibility with android-9 2016-04-27 09:28:48 -07:00
condvar.rs std: Add Instant and SystemTime to std::time 2015-11-19 09:32:38 -08:00
fd.rs Bubble up the errors in set_nonblocking and set_cloexec 2016-06-24 11:31:58 +02:00
fs.rs std: clear errno before readdir, then check it (solaris) 2016-07-11 21:43:53 -07:00
mod.rs std: Stabilize APIs for the 1.11.0 release 2016-07-03 10:49:01 -07:00
mutex.rs Fix undefined behavior when re-locking a mutex from the same thread 2016-06-02 13:31:01 +01:00
net.rs Bubble up the errors in set_nonblocking and set_cloexec 2016-06-24 11:31:58 +02:00
os.rs std: clear errno before readdir, then check it (solaris) 2016-07-11 21:43:53 -07:00
os_str.rs Add Capacity/length methods for OsString. 2016-02-20 11:37:58 -05:00
pipe.rs Bubble up the errors in set_nonblocking and set_cloexec 2016-06-24 11:31:58 +02:00
process.rs std: Clean out old unstable + deprecated APIs 2016-05-30 20:46:32 -07:00
rand.rs rand: add comments about getrandom() fallback 2016-04-20 20:21:01 -05:00
rwlock.rs Fix rwlock successfully acquiring a write lock after a read lock 2016-06-02 14:34:00 +01:00
stack_overflow.rs Fix stack overflow detection on FreeBSD 2016-04-04 14:18:44 +00:00
stdio.rs std: Funnel read_to_end through to one location 2016-03-08 17:45:44 -08:00
thread.rs std: Fix Thread::set_name() for newlib and solaris 2016-07-11 21:35:47 -07:00
thread_local.rs std: Migrate to the new libc 2015-11-09 22:55:50 -08:00
time.rs std: Stabilize APIs for the 1.10 release 2016-05-24 09:00:39 -07:00
weak.rs std: Fix linking against signal on Android 2016-04-04 21:54:59 -07:00