24 lines
547 B
Go
24 lines
547 B
Go
//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
|
|
}
|