diff --git a/src/header/mod.rs b/src/header/mod.rs index 901238bfa6b98eddb28d2cddcc8f5a742aee127b..34a1eae14634e3c10afb5520694f478c51376041 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -30,6 +30,7 @@ pub mod stdio; pub mod stdlib; pub mod string; pub mod strings; +pub mod sys_auxv; pub mod sys_file; pub mod sys_ioctl; pub mod sys_mman; diff --git a/src/header/sys_auxv/cbindgen.toml b/src/header/sys_auxv/cbindgen.toml new file mode 100644 index 0000000000000000000000000000000000000000..08b9683cb9e1e3716ba23c6ee64cc0514ca9a4f8 --- /dev/null +++ b/src/header/sys_auxv/cbindgen.toml @@ -0,0 +1,6 @@ +include_guard = "_SYS_AUXV_H" +language = "C" +style = "Tag" + +[enum] +prefix_with_name = true diff --git a/src/header/sys_auxv/mod.rs b/src/header/sys_auxv/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..eeabca08ff3df5c5e2ff0ed70164dd7f2ca9123c --- /dev/null +++ b/src/header/sys_auxv/mod.rs @@ -0,0 +1,11 @@ +//! sys/auxv.h implementation + +use platform::types::*; +use platform::{Pal, Sys}; + +pub const AT_HWCAP: usize = 16; + +#[no_mangle] +pub extern "C" fn getauxval(_t: c_ulong) -> c_ulong { + 0 +}