(rgid: Gid, egid: Gid)
| 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"))] |
no test coverage detected