rustix 0.33.7

Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls
Documentation
1
2
3
4
5
6
7
8
use io_lifetimes::raw::AsRawFilelike;

#[test]
fn test_proc_self() {
    // Verify that this API works at all
    let fd = rustix::io::proc_self_fd().unwrap();
    assert_ne!(fd.as_raw_filelike(), 0);
}