syscall: don't define sys_SETREUID and friends
authorIan Lance Taylor <iant@golang.org>
Mon, 4 Jan 2021 21:10:38 +0000 (13:10 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Jan 2021 21:53:13 +0000 (13:53 -0800)
We don't use them, since we always call the C library functions which do
the right thing anyhow.  And they aren't defined on all GNU/Linux variants.

Fixes PR go/98510

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/281473

gcc/go/gofrontend/MERGE
libgo/go/syscall/setuidgid_32_linux.go
libgo/go/syscall/setuidgid_linux.go

index c80f1cc1425b33519ae6cbd90d986521383ee18b..094b8fad48312e0a986ff96c1e53e433e9c05f54 100644 (file)
@@ -1,4 +1,4 @@
-5b075d039a20f32b9c2711ca67a3e52fba74f957
+a2578eb3983514641f0baf44d27d6474d3a96758
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index b0b7f61d221e86ca9f53233599b6c326a0eec84c..1fe7120d1c6abb802971c912f319ce79939eed66 100644 (file)
@@ -12,10 +12,4 @@ const (
 
        sys_SETGID = SYS_SETGID32
        sys_SETUID = SYS_SETUID32
-
-       sys_SETREGID = SYS_SETREGID32
-       sys_SETREUID = SYS_SETREUID32
-
-       sys_SETRESGID = SYS_SETRESGID32
-       sys_SETRESUID = SYS_SETRESUID32
 )
index 38c83c92f9748ecedf6520f84f6385a209cc30c4..22fa334bfa5e7c163e85ab648a5a87cadab255a5 100644 (file)
@@ -12,10 +12,4 @@ const (
 
        sys_SETGID = SYS_SETGID
        sys_SETUID = SYS_SETUID
-
-       sys_SETREGID = SYS_SETREGID
-       sys_SETREUID = SYS_SETREUID
-
-       sys_SETRESGID = SYS_SETRESGID
-       sys_SETRESUID = SYS_SETRESUID
 )