Module Name: src Committed By: sjg Date: Mon Jul 4 23:37:30 UTC 2011
Modified Files: src/sys/dev/filemon: filemon.c filemon.h Log Message: Set FILEMON_VERSION to 3 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/filemon/filemon.c cvs rdiff -u -r1.1 -r1.2 src/sys/dev/filemon/filemon.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/dev/filemon/filemon.c diff -u src/sys/dev/filemon/filemon.c:1.2 src/sys/dev/filemon/filemon.c:1.3 --- src/sys/dev/filemon/filemon.c:1.2 Fri May 13 22:31:08 2011 +++ src/sys/dev/filemon/filemon.c Mon Jul 4 23:37:30 2011 @@ -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); } Index: src/sys/dev/filemon/filemon.h diff -u src/sys/dev/filemon/filemon.h:1.1 src/sys/dev/filemon/filemon.h:1.2 --- src/sys/dev/filemon/filemon.h:1.1 Thu Sep 9 00:10:16 2010 +++ src/sys/dev/filemon/filemon.h Mon Jul 4 23:37:30 2011 @@ -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. */