FIXED:
* Some IDState things on *NIX-likes that have no clue what they're doing
This commit is contained in:
brent saner
2026-01-30 06:37:44 -05:00
parent ed44eb6230
commit 002067d3ac
7 changed files with 89 additions and 7 deletions

23
funcs_nix_resuid.go Normal file
View File

@@ -0,0 +1,23 @@
//go:build !(windows || plan9 || wasip1 || js || ios) && !(aix || darwin || dragonfly || freebsd || illumos || netbsd || solaris)
package sysutils
import (
`golang.org/x/sys/unix`
)
// getresgid wraps unix.Getresgid, as this file targets platforms that fully support it.
func getresgid() (rgid, egid, sgid int) {
rgid, egid, sgid = unix.Getresgid()
return
}
// getresuid wraps unix.Getresuid, as this file targets platforms that fully support it.
func getresuid() (ruid, euid, suid int) {
ruid, euid, suid = unix.Getresuid()
return
}