(fd: BorrowedFd<'_>)
| 686 | #[doc(alias = "PR_SET_MM")] |
| 687 | #[doc(alias = "PR_SET_MM_EXE_FILE")] |
| 688 | pub fn set_executable_file(fd: BorrowedFd<'_>) -> io::Result<()> { |
| 689 | let fd = usize::try_from(fd.as_raw_fd()).map_err(|_r| io::Errno::RANGE)?; |
| 690 | unsafe { prctl_3args(PR_SET_MM, PR_SET_MM_EXE_FILE as *mut _, fd as *mut _) }.map(|_r| ()) |
| 691 | } |
| 692 | |
| 693 | /// Set a new auxiliary vector. |
| 694 | /// |
nothing calls this directly
no test coverage detected