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

Function errno_io_error

crates/common/src/os.rs:44–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42/// CRT functions set errno, not GetLastError(), so we need to read errno directly.
43#[cfg(windows)]
44pub fn errno_io_error() -> io::Error {
45 let errno: i32 = get_errno();
46 let winerror = errno_to_winerror(errno);
47 io::Error::from_raw_os_error(winerror)
48}
49
50#[cfg(not(windows))]
51pub fn errno_io_error() -> io::Error {

Callers 11

getsockoptMethod · 0.85
setsockoptMethod · 0.85
shm_openFunction · 0.85
shm_unlinkFunction · 0.85
fstatFunction · 0.85
cvtFunction · 0.85
as_handleFunction · 0.85
removeFunction · 0.85
mkdirFunction · 0.85
rmdirFunction · 0.85
new_last_errno_errorMethod · 0.85

Calls 2

errno_to_winerrorFunction · 0.85
get_errnoFunction · 0.70

Tested by

no test coverage detected