diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-04-05 15:53:12 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-10-21 16:37:45 +0000 |
commit | 50f4896b72d16b6538178c8ca851b20655075b7f (patch) | |
tree | ac9868bddb566d8895e541450bf7059f7f006098 /src/runtime/defs_openbsd_amd64.go | |
parent | 33425ab8dbb03c355b2263b8250a1829e260d66f (diff) | |
download | go-50f4896b72d16b6538178c8ca851b20655075b7f.tar.gz go-50f4896b72d16b6538178c8ca851b20655075b7f.zip |
runtime: add netpollBreak
The new netpollBreak function can be used to interrupt a blocking netpoll.
This function is not currently used; it will be used by later CLs.
Updates #27707
Change-Id: I5cb936609ba13c3c127ea1368a49194fc58c9f4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/171824
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/defs_openbsd_amd64.go')
-rw-r--r-- | src/runtime/defs_openbsd_amd64.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/defs_openbsd_amd64.go b/src/runtime/defs_openbsd_amd64.go index 8d3523bf98..c187a98ae0 100644 --- a/src/runtime/defs_openbsd_amd64.go +++ b/src/runtime/defs_openbsd_amd64.go @@ -8,6 +8,7 @@ import "unsafe" const ( _EINTR = 0x4 _EFAULT = 0xe + _EAGAIN = 0x23 _ENOSYS = 0x4e _O_NONBLOCK = 0x4 |