openat_ct 0.1.21

A wrapper around openat, symlinkat, and similar system calls forked and improved from https://crates.io/crates/openat
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate libc;

fn main() {
    unsafe {
        let conf_tests = std::ffi::CString::new("/proc/self/fd/0").unwrap();
        if libc::open(conf_tests.as_ptr(), libc::O_RDONLY) != -1 {
            std::process::exit(0);
        } else {
            std::process::exit(1);
        }
    }
}