Index: usr.bin/fstat/fstat.1
===================================================================
RCS file: /cvsroot/src/usr.bin/fstat/fstat.1,v
retrieving revision 1.30
diff -u -r1.30 fstat.1
--- usr.bin/fstat/fstat.1 8 Oct 2011 22:16:03 -0000 1.30
+++ usr.bin/fstat/fstat.1 3 Oct 2012 07:55:35 -0000
@@ -37,7 +37,7 @@
.Nd display status of open files
.Sh SYNOPSIS
.Nm
-.Op Fl fnv
+.Op Fl fnAv
.Op Fl M Ar core
.Op Fl N Ar system
.Op Fl p Ar pid
@@ -87,6 +87,11 @@
Report all files open by the specified process.
.It Fl u
Report all files open by the specified user.
+.It Fl A
+Add an output column with the address of the kernel object (vnode or file),
+that can be matched with
+.Xr pstat 8
+output.
.It Fl v
Verbose mode.
Print error messages upon failures to locate particular
Index: usr.bin/fstat/fstat.c
===================================================================
RCS file: /cvsroot/src/usr.bin/fstat/fstat.c,v
retrieving revision 1.97
diff -u -r1.97 fstat.c
--- usr.bin/fstat/fstat.c 26 Sep 2012 23:01:04 -0000 1.97
+++ usr.bin/fstat/fstat.c 3 Oct 2012 07:55:35 -0000
@@ -132,6 +132,7 @@
uflg; /* show files open by a particular (effective) user */
static int checkfile; /* true if restricting to particular files or filesystems */
static int nflg; /* (numerical) display f.s. and rdev as dev_t */
+static int Aflg; /* prefix with address of file structure */
int vflg; /* display errors in locating kernel data objects etc... */