mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Although nix-rust/nix mentioned that this feature should be implemented based on opendirectoryd, CPython implemented it based on getgroups(2) for apple macOS. So I ported the code from nix-rust/nix and it works well. ref0:500036a206/src/unistd.rs (L1320)ref1:c4cacc8c5e/Modules/posixmodule.c (L6852)