Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel/kqueue Add EVFILT_FS
details: https://anonhg.NetBSD.org/src/rev/b4cf2723d727
branches: trunk
changeset: 358608:b4cf2723d727
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 09 17:35:29 2018 +0000
description:
Add EVFILT_FS
diffstat:
tests/kernel/kqueue/t_ioctl.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r 5a2e476892fb -r b4cf2723d727 tests/kernel/kqueue/t_ioctl.c
--- a/tests/kernel/kqueue/t_ioctl.c Tue Jan 09 16:19:39 2018 +0000
+++ b/tests/kernel/kqueue/t_ioctl.c Tue Jan 09 17:35:29 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ioctl.c,v 1.3 2017/01/13 21:30:41 christos Exp $ */
+/* $NetBSD: t_ioctl.c,v 1.4 2018/01/09 17:35:29 martin Exp $ */
/*-
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_ioctl.c,v 1.3 2017/01/13 21:30:41 christos Exp $");
+__RCSID("$NetBSD: t_ioctl.c,v 1.4 2018/01/09 17:35:29 martin Exp $");
#include <sys/event.h>
#include <sys/ioctl.h>
@@ -61,13 +61,13 @@
km.name = buf;
km.len = sizeof(buf) - 1;
- for (i = 0; i < 7; ++i) {
+ for (i = 0; i < 8; ++i) {
km.filter = i;
RL(ioctl(kq, KFILTER_BYFILTER, &km));
(void)printf(" map %d -> %s\n", km.filter, km.name);
}
- km.filter = 7;
+ km.filter = 8;
ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYFILTER, &km), -1);
}
@@ -86,6 +86,7 @@
"EVFILT_PROC",
"EVFILT_SIGNAL",
"EVFILT_TIMER",
+ "EVFILT_FS",
NULL
};
char buf[32];
Home |
Main Index |
Thread Index |
Old Index