auxv 0.3.3

Access the ELF auxiliary vector (aka auxv or auxval).
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate auxv;

fn main() {
    #[cfg(not(target_os="windows"))]
    unsafe {
        match auxv::stack::iterate_stack_auxv().filter(|p| p.key == auxv::AT_HWCAP).next() {
            Some(p) => println!("Got HWCAP 0x{:016X}", p.value),
            None => println!("No HWCAP")
        }
    }
}