9 // Setuid sets the uid of the calling thread to the specified uid.
10 func Setuid(uid int) (err error) {
11 _, _, e1 := syscall.RawSyscall(syscall.SYS_SETUID32, uintptr(uid), 0, 0)
18 // Setgid sets the gid of the calling thread to the specified gid.
19 func Setgid(gid int) (err error) {
20 _, _, e1 := syscall.RawSyscall(syscall.SYS_SETGID32, uintptr(gid), 0, 0)