Closed
Description
The x/sys/unix
package can set the suid (saved UID) through setresuid, but there is no way to retrieve it (the getresuid(2) is missing).
I propose adding Getresuid to the x/sys/unix package (also probably Getresgid) with following signature:
func Getresuid(ruid *int, euid *int, suid *int) (err error)
func Getresgid(rgid *int, egid *int, sgid *int) (err error)