Differential D20332 Diff 57683 lang/rust/files/patch-src_stdsimd_crates_std__detect_src_detect_os_freebsd_auxvec.rs
Changeset View
Changeset View
Standalone View
Standalone View
lang/rust/files/patch-src_stdsimd_crates_std__detect_src_detect_os_freebsd_auxvec.rs
Show All 39 Lines | |||||
+ } | + } | ||||
+ } | + } | ||||
+ } | + } | ||||
+ Err(()) | + Err(()) | ||||
+} | +} | ||||
+ | + | ||||
+/// Tries to read the `key` from the auxiliary vector. | +/// Tries to read the `key` from the auxiliary vector. | ||||
+fn archauxv(key: usize) -> Result<usize, ()> { | +fn archauxv(key: usize) -> Result<usize, ()> { | ||||
+ use mem; | + use crate::mem; | ||||
+ | + | ||||
+ #[derive (Copy, Clone)] | + #[derive (Copy, Clone)] | ||||
+ #[repr(C)] | + #[repr(C)] | ||||
+ pub struct Elf_Auxinfo { | + pub struct Elf_Auxinfo { | ||||
+ pub a_type: usize, | + pub a_type: usize, | ||||
+ pub a_un: unnamed, | + pub a_un: unnamed, | ||||
+ } | + } | ||||
+ #[derive (Copy, Clone)] | + #[derive (Copy, Clone)] | ||||
Show All 33 Lines |