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_solaris.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_solaris.go')
-rw-r--r-- | src/runtime/defs_solaris.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/defs_solaris.go b/src/runtime/defs_solaris.go index b8ef12a145..f42adebee3 100644 --- a/src/runtime/defs_solaris.go +++ b/src/runtime/defs_solaris.go @@ -38,6 +38,7 @@ const ( EBADF = C.EBADF EFAULT = C.EFAULT EAGAIN = C.EAGAIN + EBUSY = C.EBUSY ETIME = C.ETIME ETIMEDOUT = C.ETIMEDOUT EWOULDBLOCK = C.EWOULDBLOCK @@ -129,7 +130,9 @@ const ( POLLHUP = C.POLLHUP POLLERR = C.POLLERR - PORT_SOURCE_FD = C.PORT_SOURCE_FD + PORT_SOURCE_FD = C.PORT_SOURCE_FD + PORT_SOURCE_ALERT = C.PORT_SOURCE_ALERT + PORT_ALERT_UPDATE = C.PORT_ALERT_UPDATE ) type SemT C.sem_t |