From 5d84de74a586a02030ea4bc1c45d5b7a3949e442 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 17 May 2012 17:53:23 +0000 Subject: show the f_iflags; ok guenther --- usr.sbin/pstat/pstat.8 | 10 ++++++++-- usr.sbin/pstat/pstat.c | 10 +++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pstat/pstat.8 b/usr.sbin/pstat/pstat.8 index 7dd71a43eec..a066c979718 100644 --- a/usr.sbin/pstat/pstat.8 +++ b/usr.sbin/pstat/pstat.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pstat.8,v 1.43 2010/09/19 21:59:23 jmc Exp $ +.\" $OpenBSD: pstat.8,v 1.44 2012/05/17 17:53:22 deraadt Exp $ .\" $NetBSD: pstat.8,v 1.9.4.1 1996/06/02 09:08:17 mrg Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" from: @(#)pstat.8 8.4 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: September 19 2010 $ +.Dd $Mdocdate: May 17 2012 $ .Dt PSTAT 8 .Os .Sh NAME @@ -94,6 +94,12 @@ open for appending exclusive or shared lock present .It I signal pgrp when data ready +.It d +deferred for next AF_UNIX garbage collection pass +.It l +file descriptor slot is larval +.It m +marked during AF_UNIX garbage collection pass .El .It CNT Number of processes that know this open file. diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index e4ee7d2751b..5d72ac92bba 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pstat.c,v 1.78 2011/06/28 06:55:30 guenther Exp $ */ +/* $OpenBSD: pstat.c,v 1.79 2012/05/17 17:53:22 deraadt Exp $ */ /* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */ /*- @@ -1041,6 +1041,14 @@ filemode(void) *fbp++ = 'L'; if (kf->f_flag & FASYNC) *fbp++ = 'I'; + + if (kf->f_iflags & FIF_LARVAL) + *fbp++ = 'l'; + if (kf->f_iflags & FIF_MARK) + *fbp++ = 'm'; + if (kf->f_iflags & FIF_DEFER) + *fbp++ = 'd'; + *fbp = '\0'; (void)printf("%6s %3ld", flagbuf, kf->f_count); (void)printf(" %3ld", kf->f_msgcount); -- cgit v1.2.3