(path: &widestring::WideCStr, flags: i32, mode: i32)
| 315 | |
| 316 | #[cfg(windows)] |
| 317 | pub fn wopen(path: &widestring::WideCStr, flags: i32, mode: i32) -> io::Result<Owned> { |
| 318 | cvt_fd(unsafe { suppress_iph!(c::wopen(path.as_ptr(), flags, mode)) }) |
| 319 | } |
| 320 | |
| 321 | #[cfg(all(any(unix, target_os = "wasi"), not(target_os = "redox")))] |
| 322 | pub fn openat(dir: Borrowed<'_>, path: &ffi::CStr, flags: i32, mode: i32) -> io::Result<Owned> { |