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

Function geteuid

crates/vm/src/stdlib/posix.rs:1412–1415  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1410
1411 #[pyfunction]
1412 fn geteuid(vm: &VirtualMachine) -> PyObjectRef {
1413 let euid = unistd::geteuid().as_raw();
1414 vm.ctx.new_int(euid).into()
1415 }
1416
1417 #[cfg(not(any(target_os = "wasi", target_os = "android")))]
1418 #[pyfunction]

Callers

nothing calls this directly

Calls 2

as_rawMethod · 0.45
new_intMethod · 0.45

Tested by

no test coverage detected