(
group_ids: crate::function::ArgIterable<Gid>,
vm: &VirtualMachine,
)
| 1625 | #[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))] |
| 1626 | #[pyfunction] |
| 1627 | fn setgroups( |
| 1628 | group_ids: crate::function::ArgIterable<Gid>, |
| 1629 | vm: &VirtualMachine, |
| 1630 | ) -> PyResult<()> { |
| 1631 | let gids = group_ids.iter(vm)?.collect::<Result<Vec<_>, _>>()?; |
| 1632 | unistd::setgroups(&gids).map_err(|err| err.into_pyexception(vm)) |
| 1633 | } |
| 1634 | |
| 1635 | #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))] |
| 1636 | fn envp_from_dict( |
no test coverage detected