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

Function open

crates/common/src/crt_fd.rs:312–314  ·  view source on GitHub ↗
(path: &ffi::CStr, flags: i32, mode: i32)

Source from the content-addressed store, hash-verified

310}
311
312pub fn open(path: &ffi::CStr, flags: i32, mode: i32) -> io::Result<Owned> {
313 cvt_fd(unsafe { c::open(path.as_ptr(), flags, mode) })
314}
315
316#[cfg(windows)]
317pub fn wopen(path: &widestring::WideCStr, flags: i32, mode: i32) -> io::Result<Owned> {

Callers 8

fopenFunction · 0.70
generate_tests.pyFile · 0.50
load_client_ca_listFunction · 0.50
enum_certificatesFunction · 0.50
close_dir_fdsFunction · 0.50
close_filetable_fdsFunction · 0.50
initialize_dbMethod · 0.50
enum_certificatesFunction · 0.50

Calls 2

cvt_fdFunction · 0.85
as_ptrMethod · 0.45

Tested by

no test coverage detected