aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/types_linux.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-10-05 13:44:36 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2019-10-08 10:45:48 +0000
commitcedb561617ea40c72dc018b38c4d5f0862595fe8 (patch)
treee83b4eb87b0578a882c7aeab4b6a105f42b0c636 /src/syscall/types_linux.go
parent6ec4c71eef730d56169255515fea3490c8a32650 (diff)
downloadgo-cedb561617ea40c72dc018b38c4d5f0862595fe8.tar.xz
syscall: don't use deprecated syscalls on linux/arm64
Reimplement syscall wrappers for linux/arm64 in terms of supported syscalls (or in case of Ustat make it return ENOSYS) and remove the manually added SYS_* consts for the deprecated syscalls. Adapted from golang.org/x/sys/unix where this is already done since CL 119655. Change-Id: I94ab48a4645924df3822497d0575f1a1573d509f Reviewed-on: https://go-review.googlesource.com/c/go/+/199140 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall/types_linux.go')
-rw-r--r--src/syscall/types_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syscall/types_linux.go b/src/syscall/types_linux.go
index ccc5c54f0b..fd8ad94c88 100644
--- a/src/syscall/types_linux.go
+++ b/src/syscall/types_linux.go
@@ -416,6 +416,8 @@ const (
_AT_EACCESS = C.AT_EACCESS
)
+type pollFd C.struct_pollfd
+
// Terminal handling
type Termios C.struct_termios