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

Function set_errno

crates/common/src/os.rs:72–77  ·  view source on GitHub ↗
(value: i32)

Source from the content-addressed store, hash-verified

70/// Set errno to the specified value.
71#[cfg(windows)]
72pub fn set_errno(value: i32) {
73 unsafe extern "C" {
74 fn _set_errno(value: i32) -> i32;
75 }
76 unsafe { suppress_iph!(_set_errno(value)) };
77}
78
79#[cfg(unix)]
80pub fn set_errno(value: i32) {

Callers 4

if_nametoindexFunction · 0.50
if_indextonameFunction · 0.50
faulthandler_fatal_errorFunction · 0.50
faulthandler_user_signalFunction · 0.50

Calls 1

setMethod · 0.45

Tested by

no test coverage detected