aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/netpoll_kqueue.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/netpoll_kqueue.go
parent537fb06c5dabfc5329bd8535c63d6a0f1ccbb1b4 (diff)
downloadgo-72c29fc8cde7a02c760915e7b3e63de5502496bb.tar.xz
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/netpoll_kqueue.go')
-rw-r--r--src/runtime/netpoll_kqueue.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/netpoll_kqueue.go b/src/runtime/netpoll_kqueue.go
index 4d5d1a4ea8..0f73bf385e 100644
--- a/src/runtime/netpoll_kqueue.go
+++ b/src/runtime/netpoll_kqueue.go
@@ -10,12 +10,6 @@ package runtime
import "unsafe"
-func kqueue() int32
-
-//go:noescape
-func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
-func closeonexec(fd int32)
-
var (
kq int32 = -1
)