aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_netbsd.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2018-06-13 08:20:23 -0700
committerKeith Randall <khr@golang.org>2018-06-13 18:27:15 +0000
commit72c29fc8cde7a02c760915e7b3e63de5502496bb (patch)
tree417206434615eaaec3701f3ca255440ecc416026 /src/runtime/os_netbsd.go
parent537fb06c5dabfc5329bd8535c63d6a0f1ccbb1b4 (diff)
downloadgo-72c29fc8cde7a02c760915e7b3e63de5502496bb.tar.gz
go-72c29fc8cde7a02c760915e7b3e63de5502496bb.zip
runtime: move darwin kevent calls to libc
kqueue, kevent, closeonexec, setitimer, with sysctl and fcntl helpers. TODO:arm,arm64 Change-Id: I9386f377186d6ac7cb99064c524a67e0c8282eba Reviewed-on: https://go-review.googlesource.com/118561 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/os_netbsd.go')
-rw-r--r--src/runtime/os_netbsd.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/os_netbsd.go b/src/runtime/os_netbsd.go
index 1a92619354..a9bf407a36 100644
--- a/src/runtime/os_netbsd.go
+++ b/src/runtime/os_netbsd.go
@@ -68,6 +68,12 @@ func lwp_self() int32
func osyield()
+func kqueue() int32
+
+//go:noescape
+func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
+func closeonexec(fd int32)
+
const (
_ESRCH = 3
_ETIMEDOUT = 60