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

Function setregid

crates/vm/src/stdlib/posix.rs:1611–1614  ·  view source on GitHub ↗
(rgid: Gid, egid: Gid)

Source from the content-addressed store, hash-verified

1609 #[cfg(not(any(target_os = "wasi", target_os = "android", target_os = "redox")))]
1610 #[pyfunction]
1611 fn setregid(rgid: Gid, egid: Gid) -> nix::Result<()> {
1612 let ret = unsafe { libc::setregid(rgid.as_raw(), egid.as_raw()) };
1613 nix::Error::result(ret).map(drop)
1614 }
1615
1616 // cfg from nix
1617 #[cfg(any(target_os = "freebsd", target_os = "linux", target_os = "openbsd"))]

Callers 1

exec_innerFunction · 0.85

Calls 2

as_rawMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected