Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/filemon Set FILEMON_VERSION to 3
details: https://anonhg.NetBSD.org/src/rev/53e087501d9e
branches: trunk
changeset: 766955:53e087501d9e
user: sjg <sjg%NetBSD.org@localhost>
date: Mon Jul 04 23:37:30 2011 +0000
description:
Set FILEMON_VERSION to 3
diffstat:
sys/dev/filemon/filemon.c | 6 +++---
sys/dev/filemon/filemon.h | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r f4372435885c -r 53e087501d9e sys/dev/filemon/filemon.c
--- a/sys/dev/filemon/filemon.c Mon Jul 04 22:44:55 2011 +0000
+++ b/sys/dev/filemon/filemon.c Mon Jul 04 23:37:30 2011 +0000
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.2 2011/05/13 22:31:08 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.3 2011/07/04 23:37:30 sjg Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -126,8 +126,8 @@
int len;
len = snprintf(filemon->fm_msgbufr, sizeof(filemon->fm_msgbufr),
- "# filemon version 2\n# Target pid %d\nV 2\n",
- curproc->p_pid);
+ "# filemon version %d\n# Target pid %d\nV %d\n",
+ FILEMON_VERSION, curproc->p_pid, FILEMON_VERSION);
filemon_output(filemon, filemon->fm_msgbufr, len);
}
diff -r f4372435885c -r 53e087501d9e sys/dev/filemon/filemon.h
--- a/sys/dev/filemon/filemon.h Mon Jul 04 22:44:55 2011 +0000
+++ b/sys/dev/filemon/filemon.h Mon Jul 04 23:37:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filemon.h,v 1.1 2010/09/09 00:10:16 sjg Exp $ */
+/* $NetBSD: filemon.h,v 1.2 2011/07/04 23:37:30 sjg Exp $ */
/*
* Copyright (c) 2010, Juniper Networks, Inc.
*
@@ -31,6 +31,8 @@
#define FILEMON_SET_FD _IOWR('S', 1, int)
#define FILEMON_SET_PID _IOWR('S', 2, pid_t)
+#define FILEMON_VERSION 3
+
#ifdef _KERNEL
struct filemon {
pid_t fm_pid; /* The process ID being monitored. */
Home |
Main Index |
Thread Index |
Old Index