aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-01-04 13:10:38 -0800
committerIan Lance Taylor <iant@golang.org>2021-01-05 13:53:13 -0800
commitf47c00cf95d7dbbe7147c61a4a6bc20921c3da2c (patch)
tree48efb16774958e2af75b951d871a03b442d44c0a /libgo
parenta9f76d03bbc791cb55e4e0658f23efd0103ea9b0 (diff)
downloadgcc-f47c00cf95d7dbbe7147c61a4a6bc20921c3da2c.zip
gcc-f47c00cf95d7dbbe7147c61a4a6bc20921c3da2c.tar.gz
gcc-f47c00cf95d7dbbe7147c61a4a6bc20921c3da2c.tar.bz2
syscall: don't define sys_SETREUID and friends
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
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/syscall/setuidgid_32_linux.go6
-rw-r--r--libgo/go/syscall/setuidgid_linux.go6
2 files changed, 0 insertions, 12 deletions
diff --git a/libgo/go/syscall/setuidgid_32_linux.go b/libgo/go/syscall/setuidgid_32_linux.go
index b0b7f61..1fe7120 100644
--- a/libgo/go/syscall/setuidgid_32_linux.go
+++ b/libgo/go/syscall/setuidgid_32_linux.go
@@ -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
)
diff --git a/libgo/go/syscall/setuidgid_linux.go b/libgo/go/syscall/setuidgid_linux.go
index 38c83c9..22fa334 100644
--- a/libgo/go/syscall/setuidgid_linux.go
+++ b/libgo/go/syscall/setuidgid_linux.go
@@ -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
)