aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/netpoll_kqueue.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-08-29 16:00:31 -0400
committerRuss Cox <rsc@golang.org>2014-08-29 16:00:31 -0400
commit9a75c748367c2ff84de355b136c33760a6b6928a (patch)
tree0ec3266254b42c228fb02878440c2fa9645fd54d /src/pkg/runtime/netpoll_kqueue.c
parent7f2e68e9822ce8736d66035d0a3ed3677c2db459 (diff)
downloadgo-9a75c748367c2ff84de355b136c33760a6b6928a.tar.xz
runtime: include constants and defs_*_*.h types in generated Go defs
I had to rename Kevent and Sigaction to avoid the functions of the same (lowercase) name. LGTM=iant, r R=golang-codereviews, r, iant, aram.h CC=dvyukov, golang-codereviews, khr https://golang.org/cl/140740043
Diffstat (limited to 'src/pkg/runtime/netpoll_kqueue.c')
-rw-r--r--src/pkg/runtime/netpoll_kqueue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/runtime/netpoll_kqueue.c b/src/pkg/runtime/netpoll_kqueue.c
index 171346cce2..6b7fc869d3 100644
--- a/src/pkg/runtime/netpoll_kqueue.c
+++ b/src/pkg/runtime/netpoll_kqueue.c
@@ -11,7 +11,7 @@
// Integrated network poller (kqueue-based implementation).
int32 runtime·kqueue(void);
-int32 runtime·kevent(int32, Kevent*, int32, Kevent*, int32, Timespec*);
+int32 runtime·kevent(int32, KeventT*, int32, KeventT*, int32, Timespec*);
void runtime·closeonexec(int32);
static int32 kq = -1;
@@ -30,7 +30,7 @@ runtime·netpollinit(void)
int32
runtime·netpollopen(uintptr fd, PollDesc *pd)
{
- Kevent ev[2];
+ KeventT ev[2];
int32 n;
// Arm both EVFILT_READ and EVFILT_WRITE in edge-triggered mode (EV_CLEAR)
@@ -72,7 +72,7 @@ G*
runtime·netpoll(bool block)
{
static int32 lasterr;
- Kevent events[64], *ev;
+ KeventT events[64], *ev;
Timespec ts, *tp;
int32 n, i, mode;
G *gp;