(auxv: &[*const c_void])
| 705 | #[doc(alias = "PR_SET_MM")] |
| 706 | #[doc(alias = "PR_SET_MM_AUXV")] |
| 707 | pub unsafe fn set_auxiliary_vector(auxv: &[*const c_void]) -> io::Result<()> { |
| 708 | syscalls::prctl( |
| 709 | PR_SET_MM, |
| 710 | PR_SET_MM_AUXV as *mut _, |
| 711 | auxv.as_ptr() as *mut _, |
| 712 | auxv.len() as *mut _, |
| 713 | null_mut(), |
| 714 | ) |
| 715 | .map(|_r| ()) |
| 716 | } |
| 717 | |
| 718 | /// Get the size of the [`PrctlMmMap`] the kernel expects. |
| 719 | /// |