c-scape 0.22.3

A libc bottom-half implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod dirfd;
mod opendir;
#[cfg(not(target_os = "wasi"))]
mod readdir;

use rustix::fd::RawFd;

union LibcDirStorage {
    dirent: libc::dirent,
    dirent64: libc::dirent64,
}

struct CScapeDir {
    dir: rustix::fs::Dir,
    storage: LibcDirStorage,
    fd: RawFd,
}