(name: &str)
| 137 | } |
| 138 | |
| 139 | unsafe fn fetch(name: &str) -> *mut c_void { |
| 140 | let name = match CStr::from_bytes_with_nul(name.as_bytes()) { |
| 141 | Ok(c_str) => c_str, |
| 142 | Err(..) => return null_mut(), |
| 143 | }; |
| 144 | libc::dlsym(libc::RTLD_DEFAULT, name.as_ptr().cast()) |
| 145 | } |
| 146 | |
| 147 | #[cfg(not(linux_kernel))] |
| 148 | macro_rules! syscall { |
no test coverage detected