Module Name:    src
Committed By:   christos
Date:           Sat Oct 31 14:55:53 UTC 2020

Modified Files:
        src/sys/sys: event.h

Log Message:
Add an array of filter names.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/sys/event.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/event.h
diff -u src/sys/sys/event.h:1.39 src/sys/sys/event.h:1.40
--- src/sys/sys/event.h:1.39	Fri Oct 30 21:08:32 2020
+++ src/sys/sys/event.h	Sat Oct 31 10:55:52 2020
@@ -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 <jle...@freebsd.org>
@@ -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 */

Reply via email to