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/defs1_solaris_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/defs1_solaris_amd64.go')
-rw-r--r-- | src/runtime/defs1_solaris_amd64.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/defs1_solaris_amd64.go b/src/runtime/defs1_solaris_amd64.go index 14b5c7949e..ee6c45e524 100644 --- a/src/runtime/defs1_solaris_amd64.go +++ b/src/runtime/defs1_solaris_amd64.go @@ -8,6 +8,7 @@ const ( _EBADF = 0x9 _EFAULT = 0xe _EAGAIN = 0xb + _EBUSY = 0x10 _ETIME = 0x3e _ETIMEDOUT = 0x91 _EWOULDBLOCK = 0xb @@ -100,7 +101,9 @@ const ( _POLLHUP = 0x10 _POLLERR = 0x8 - _PORT_SOURCE_FD = 0x4 + _PORT_SOURCE_FD = 0x4 + _PORT_SOURCE_ALERT = 0x5 + _PORT_ALERT_UPDATE = 0x2 ) type semt struct { |