Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add an array of filter names.



details:   https://anonhg.NetBSD.org/src/rev/ed8506d8f5e5
branches:  trunk
changeset: 956495:ed8506d8f5e5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 31 14:55:52 2020 +0000

description:
Add an array of filter names.

diffstat:

 sys/sys/event.h |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 8a03ea83859f -r ed8506d8f5e5 sys/sys/event.h
--- a/sys/sys/event.h   Sat Oct 31 14:55:33 2020 +0000
+++ b/sys/sys/event.h   Sat Oct 31 14:55:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: event.h,v 1.39 2020/10/31 01:08:32 christos Exp $      */
+/*     $NetBSD: event.h,v 1.40 2020/10/31 14:55:52 christos Exp $      */
 
 /*-
  * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon%FreeBSD.org@localhost>
@@ -47,6 +47,20 @@
 #define        EVFILT_USER             8U      /* user events */
 #define        EVFILT_SYSCOUNT         9U      /* number of filters */
 
+#ifdef EVFILT_NAMES
+static const char *evfiltnames[] = {
+       "EVFILT_READ",
+       "EVFILT_WRITE",
+       "EVFILT_AIO",
+       "EVFILT_VNODE",
+       "EVFILT_PROC",
+       "EVFILT_SIGNAL",
+       "EVFILT_TIMER",
+       "EVFILT_FS",
+       "EVFILT_USER",
+};
+#endif
+
 struct kevent {
        uintptr_t       ident;          /* identifier for this event */
        uint32_t        filter;         /* filter for event */



Home | Main Index | Thread Index | Old Index