()
| 24 | |
| 25 | #[cfg(not(target_os = "wasi"))] |
| 26 | pub(crate) fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { |
| 27 | unsafe { |
| 28 | let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); |
| 29 | ret(c::pipe(result.as_mut_ptr().cast::<i32>()))?; |
| 30 | let [p0, p1] = result.assume_init(); |
| 31 | Ok((p0, p1)) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | #[cfg(not(any( |
| 36 | apple, |
nothing calls this directly
no test coverage detected