(handle: isize, flags: i32, vm: &VirtualMachine)
| 160 | |
| 161 | #[pyfunction] |
| 162 | fn open_osfhandle(handle: isize, flags: i32, vm: &VirtualMachine) -> PyResult<i32> { |
| 163 | let ret = unsafe { suppress_iph!(libc::open_osfhandle(handle, flags)) }; |
| 164 | if ret == -1 { |
| 165 | Err(vm.new_last_errno_error()) |
| 166 | } else { |
| 167 | Ok(ret) |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | #[pyfunction] |
| 172 | fn get_osfhandle(fd: crt_fd::Borrowed<'_>, vm: &VirtualMachine) -> PyResult<isize> { |
no test coverage detected