Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add EVCNT_TYPE_ANY for sysctl. Fix EVCNT_STRING_MAX...
details: https://anonhg.NetBSD.org/src/rev/803ba9063235
branches: trunk
changeset: 761490:803ba9063235
user: matt <matt%NetBSD.org@localhost>
date: Sat Jan 29 18:21:22 2011 +0000
description:
Add EVCNT_TYPE_ANY for sysctl. Fix EVCNT_STRING_MAX fencepost error.
diffstat:
sys/sys/evcnt.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 569f954977b9 -r 803ba9063235 sys/sys/evcnt.h
--- a/sys/sys/evcnt.h Sat Jan 29 18:19:54 2011 +0000
+++ b/sys/sys/evcnt.h Sat Jan 29 18:21:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: evcnt.h,v 1.7 2010/12/11 22:30:55 matt Exp $ */
+/* $NetBSD: evcnt.h,v 1.8 2011/01/29 18:21:22 matt Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -96,9 +96,10 @@
TAILQ_HEAD(evcntlist, evcnt);
/* maximum group/name lengths, including trailing NUL */
-#define EVCNT_STRING_MAX 256
+#define EVCNT_STRING_MAX 255
/* ev_type values */
+#define EVCNT_TYPE_ANY -1 /* for sysctl */
#define EVCNT_TYPE_MISC 0 /* miscellaneous; catch all */
#define EVCNT_TYPE_INTR 1 /* interrupt; count with vmstat -i */
#define EVCNT_TYPE_TRAP 2 /* processor trap/execption */
Home |
Main Index |
Thread Index |
Old Index