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

Function get_errno

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

Source from the content-addressed store, hash-verified

54
55#[cfg(windows)]
56pub fn get_errno() -> i32 {
57 unsafe extern "C" {
58 fn _get_errno(pValue: *mut i32) -> i32;
59 }
60 let mut errno = 0;
61 unsafe { suppress_iph!(_get_errno(&mut errno)) };
62 errno
63}
64
65#[cfg(not(windows))]
66pub fn get_errno() -> i32 {

Callers 3

errno_io_errorFunction · 0.70
faulthandler_fatal_errorFunction · 0.50
faulthandler_user_signalFunction · 0.50

Calls 1

posix_errnoMethod · 0.80

Tested by

no test coverage detected