1 2 3 4 5 6 7
use libc::gid_t; #[no_mangle] unsafe extern "C" fn getegid() -> gid_t { libc!(libc::getegid()); rustix::process::getegid().as_raw() }