summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-12-07 11:15:50 +0000
committermpi <mpi@openbsd.org>2020-12-07 11:15:50 +0000
commit18e888c6238d4d2767f9b9d181633c8a9b33b1a3 (patch)
tree7d8093803e7f16fa50c5c6e944029dbdc8d5c780 /sys/sys/event.h
parentDo not include the status line size when working out the character for (diff)
downloadwireguard-openbsd-18e888c6238d4d2767f9b9d181633c8a9b33b1a3.tar.xz
wireguard-openbsd-18e888c6238d4d2767f9b9d181633c8a9b33b1a3.zip
Refactor kqueue_scan() so it can be used by other syscalls.
Stop iterating in the function and instead copy the returned events to userland after every call. ok visa@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 0c7b8f6f7f9..9534b673836 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.h,v 1.47 2020/11/25 13:49:00 mpi Exp $ */
+/* $OpenBSD: event.h,v 1.48 2020/12/07 11:15:50 mpi Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -223,7 +223,7 @@ extern void knote_processexit(struct proc *);
extern int kqueue_register(struct kqueue *kq,
struct kevent *kev, struct proc *p);
extern int kqueue_scan(struct kqueue_scan_state *, int, struct kevent *,
- struct timespec *, struct kevent *, struct proc *, int *);
+ struct timespec *, struct proc *, int *);
extern void kqueue_scan_setup(struct kqueue_scan_state *, struct kqueue *);
extern void kqueue_scan_finish(struct kqueue_scan_state *);
extern int filt_seltrue(struct knote *kn, long hint);