summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2017-05-31 14:52:05 +0000
committermikeb <mikeb@openbsd.org>2017-05-31 14:52:05 +0000
commit83c05d2a2887a46641fa7558826384e3bc121877 (patch)
tree5e5d5bfe4c31da6df68585ad43a01b49735bfdd2 /sys/sys/event.h
parentanother place to use ieee80211_min_basic_rate() to select the minimum tx rate (diff)
downloadwireguard-openbsd-83c05d2a2887a46641fa7558826384e3bc121877.tar.xz
wireguard-openbsd-83c05d2a2887a46641fa7558826384e3bc121877.zip
Add support for EV_RECEIPT and EV_DISPATCH flags
From FreeBSD via Jan Schreiber <jes at posteo ! de>, thanks! OK tedu, bluhm
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 13b370b4c40..c359092be51 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.h,v 1.24 2017/05/31 07:12:28 tedu Exp $ */
+/* $OpenBSD: event.h,v 1.25 2017/05/31 14:52:05 mikeb Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -69,6 +69,8 @@ struct kevent {
/* flags */
#define EV_ONESHOT 0x0010 /* only report one occurrence */
#define EV_CLEAR 0x0020 /* clear event state after reporting */
+#define EV_RECEIPT 0x0040 /* force EV_ERROR on success, data=0 */
+#define EV_DISPATCH 0x0080 /* disable event after reporting */
#define EV_SYSFLAGS 0xF000 /* reserved by system */
#define EV_FLAG1 0x2000 /* filter-specific flag */