MCPcopy Index your code
hub / github.com/RustPython/RustPython / wopen

Function wopen

crates/common/src/crt_fd.rs:317–319  ·  view source on GitHub ↗
(path: &widestring::WideCStr, flags: i32, mode: i32)

Source from the content-addressed store, hash-verified

315
316#[cfg(windows)]
317pub 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")))]
322pub fn openat(dir: Borrowed<'_>, path: &ffi::CStr, flags: i32, mode: i32) -> io::Result<Owned> {

Callers 2

initMethod · 0.85
os_openFunction · 0.85

Calls 1

cvt_fdFunction · 0.85

Tested by

no test coverage detected