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

Function getsid

crates/vm/src/stdlib/posix.rs:1399–1403  ·  view source on GitHub ↗
(pid: u32, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1397 #[cfg(not(target_os = "redox"))]
1398 #[pyfunction]
1399 fn getsid(pid: u32, vm: &VirtualMachine) -> PyResult {
1400 let sid =
1401 unistd::getsid(Some(Pid::from_raw(pid as i32))).map_err(|e| e.into_pyexception(vm))?;
1402 Ok(vm.new_pyobj(sid.as_raw()))
1403 }
1404
1405 #[pyfunction]
1406 fn getuid(vm: &VirtualMachine) -> PyObjectRef {

Callers 1

is_pty_childFunction · 0.85

Calls 4

new_pyobjMethod · 0.80
SomeClass · 0.50
into_pyexceptionMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected