summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-02-20 16:56:51 +0000
committervisa <visa@openbsd.org>2020-02-20 16:56:51 +0000
commitb821368957f060d7b1e9eeaa4fbc563e892edb32 (patch)
treee229216622f7fd44cb4f4a093037e2375da5f54b /sys/sys/event.h
parentdocument no debug (diff)
downloadwireguard-openbsd-b821368957f060d7b1e9eeaa4fbc563e892edb32.tar.xz
wireguard-openbsd-b821368957f060d7b1e9eeaa4fbc563e892edb32.zip
Replace field f_isfd with field f_flags in struct filterops to allow
adding more filter properties without cluttering the struct. OK mpi@, anton@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 0597021c114..c54ee63e842 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.h,v 1.32 2019/12/31 13:48:32 visa Exp $ */
+/* $OpenBSD: event.h,v 1.33 2020/02/20 16:56:52 visa Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -146,8 +146,10 @@ SLIST_HEAD(klist, knote);
*/
#define NOTE_SIGNAL 0x08000000
+#define FILTEROP_ISFD 0x00000001 /* ident == filedescriptor */
+
struct filterops {
- int f_isfd; /* true if ident == filedescriptor */
+ int f_flags;
int (*f_attach)(struct knote *kn);
void (*f_detach)(struct knote *kn);
int (*f_event)(struct knote *kn, long hint);