]> git.lizzy.rs Git - rust.git/commit
Switch Fuchsia to readdir (instead of readdir_r)
authorRaph Levien <raph@google.com>
Tue, 21 Feb 2017 22:41:28 +0000 (14:41 -0800)
committerRaph Levien <raph@google.com>
Tue, 21 Feb 2017 23:55:47 +0000 (15:55 -0800)
commit163698c45ff050a6a6e81f79d4f978d66fea8c9b
treeadaa04e4145b02ae754d09bd3f988ce352a359b2
parent668864d9edd4f28d48005b57e5b177228cb974c5
Switch Fuchsia to readdir (instead of readdir_r)

The readdir_r function is deprecated on newer Posix systems because of
various problems, and not implemented at all for Fuchsia. There are
already implementations using both, and this patch switches Fuchsia
over to the readdir-based one.

Fixes #40021 for Fuchsia, but that issue also contains discussion of
what should happen for other Posix systems.
src/libstd/sys/unix/fs.rs
src/libstd/sys/unix/os.rs