rust/tests
bors c0934e1eca Auto merge of #1152 - divergentdave:shim-directory, r=RalfJung
Add directory-related shims

This PR adds support for `mkdir`, `rmdir`, `opendir`, `closedir`, and `readdir64_r`.

Open directory streams are tracked through a HashMap indexed by pointer locations, which holds directory iterators. Since `DIR` is an opaque type in glibc, I represent them with 1-byte allocations, and then just use their pointers in HashMap lookups.

Tests are included to exercise the new functionality.
2020-02-26 14:15:55 +00:00
..
compile-fail add an option to disable Stacked Borrows 2020-02-24 16:22:02 +01:00
run-pass Auto merge of #1152 - divergentdave:shim-directory, r=RalfJung 2020-02-26 14:15:55 +00:00
compiletest.rs compile-fail tests work with optimizations now 2019-12-29 12:38:40 +01:00