(name: &CStr)
| 97 | /// [`prctl(PR_SET_NAME,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html |
| 98 | #[inline] |
| 99 | pub fn set_name(name: &CStr) -> io::Result<()> { |
| 100 | unsafe { prctl_2args(PR_SET_NAME, name.as_ptr() as *mut _) }.map(|_r| ()) |
| 101 | } |
| 102 | |
| 103 | // |
| 104 | // PR_GET_SECCOMP/PR_SET_SECCOMP |
nothing calls this directly
no test coverage detected