summaryrefslogtreecommitdiff
path: root/src/sys/signal.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-09-04 00:07:47 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-09-04 00:07:47 +0000
commit11dad1672b8a70a140d2329b2732abe19334a054 (patch)
tree85fd74027d129c4a46aa9af247a9fb130cccd141 /src/sys/signal.rs
parent82b51a2b5dd9b5567d4cf15f4bf931d9e39528d1 (diff)
parentf9ebcb7c00faf1290565630f14c93a9c7ab51e51 (diff)
downloadnix-11dad1672b8a70a140d2329b2732abe19334a054.zip
Merge #916
916: new dir module r=Susurrus a=scottlamb Fixes #915 This is a lower-level interface than `std::fs::ReadDir`. Notable differences: * can be opened from a file descriptor (as returned by `openat`, perhaps before knowing if the path represents a file or directory). Uses `fdopendir` for this, available on all Unix platforms as of rust-lang/libc#1018. * implements `AsRawFd`, so it can be passed to `fstat`, `openat`, etc. * can be iterated through multiple times without closing and reopening the file descriptor. Each iteration rewinds when finished. * returns entries for `.` (current directory) and `..` (parent directory). * returns entries' names as a `CStr` (no allocation or conversion beyond whatever libc does). Co-authored-by: Scott Lamb <slamb@slamb.org>
Diffstat (limited to 'src/sys/signal.rs')
0 files changed, 0 insertions, 0 deletions