summaryrefslogtreecommitdiff
path: root/sys/kern/kern_event.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-06-11 09:18:44 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-06-11 09:18:44 +0000
commit0529ec376803903373863e5ba657eb3c18425ac0 (patch)
treea58573688238999430f21280a433b7b4d606c68a /sys/kern/kern_event.c
parentd79c538e70162087ab4c639328ca213db58e69ac (diff)
Rename poll-compatibility flag to better reflect what it is.
While here prefix kernel-only EV flags with two underbars. Suggested by kettenis@, ok visa@
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r--sys/kern/kern_event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 6808d90dc4b..936237fd0bd 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_event.c,v 1.134 2020/05/30 14:10:17 mpi Exp $ */
+/* $OpenBSD: kern_event.c,v 1.135 2020/06/11 09:18:43 mpi Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -268,10 +268,10 @@ filt_procattach(struct knote *kn)
/*
* internal flag indicating registration done by kernel
*/
- if (kn->kn_flags & EV_FLAG1) {
+ if (kn->kn_flags & __EV_FLAG1) {
kn->kn_data = kn->kn_sdata; /* ppid */
kn->kn_fflags = NOTE_CHILD;
- kn->kn_flags &= ~EV_FLAG1;
+ kn->kn_flags &= ~__EV_FLAG1;
}
/* XXX lock the proc here while adding to the list? */
@@ -348,7 +348,7 @@ filt_proc(struct knote *kn, long hint)
memset(&kev, 0, sizeof(kev));
kev.ident = hint & NOTE_PDATAMASK; /* pid */
kev.filter = kn->kn_filter;
- kev.flags = kn->kn_flags | EV_ADD | EV_ENABLE | EV_FLAG1;
+ kev.flags = kn->kn_flags | EV_ADD | EV_ENABLE | __EV_FLAG1;
kev.fflags = kn->kn_sfflags;
kev.data = kn->kn_id; /* parent */
kev.udata = kn->kn_kevent.udata; /* preserve udata */