diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-04-03 16:31:13 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-10-20 21:15:55 +0000 |
commit | 3b0aa546d289390027ee1bf1a5e41f37f6131fa7 (patch) | |
tree | 631fafe6c7e524f3c27b5c58581bad68b0334390 /src/runtime/defs_linux_arm64.go | |
parent | 504fce98ba3052135ec1f9564e06819f42cdbc86 (diff) | |
download | go-3b0aa546d289390027ee1bf1a5e41f37f6131fa7.tar.gz go-3b0aa546d289390027ee1bf1a5e41f37f6131fa7.zip |
runtime: define nonblockingPipe
This requires defining pipe, pipe2, and setNonblock for various platforms.
The new function is currently only used on AIX. It will be used by
later CLs in this series.
Updates #27707
Change-Id: Id2f987b66b4c66a3ef40c22484ff1d14f58e9b31
Reviewed-on: https://go-review.googlesource.com/c/go/+/171822
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/defs_linux_arm64.go')
-rw-r--r-- | src/runtime/defs_linux_arm64.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/defs_linux_arm64.go b/src/runtime/defs_linux_arm64.go index b325a229a1..182887d8d5 100644 --- a/src/runtime/defs_linux_arm64.go +++ b/src/runtime/defs_linux_arm64.go @@ -7,6 +7,7 @@ const ( _EINTR = 0x4 _EAGAIN = 0xb _ENOMEM = 0xc + _ENOSYS = 0x26 _PROT_NONE = 0x0 _PROT_READ = 0x1 @@ -144,8 +145,9 @@ type epollevent struct { // ../cmd/cgo/cgo -cdefs defs_linux.go defs1_linux.go defs2_linux.go const ( - _O_RDONLY = 0x0 - _O_CLOEXEC = 0x80000 + _O_RDONLY = 0x0 + _O_NONBLOCK = 0x800 + _O_CLOEXEC = 0x80000 ) type usigset struct { |