summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-06 03:17:57 +0000
committerpeter <peter@FreeBSD.org>1999-04-06 03:17:57 +0000
commit00ac022f647437c1c36730dffe71445c43e58cc4 (patch)
tree01b9d29d05b5d4ef16ab1f9bede3cec22debb67e /bin/ps/print.c
parent100f4abd46741d3abc48ca9483fe54c12fd1a45d (diff)
downloadFreeBSD-src-00ac022f647437c1c36730dffe71445c43e58cc4.zip
FreeBSD-src-00ac022f647437c1c36730dffe71445c43e58cc4.tar.gz
Look at p_lock instead of P_NOSWAP etc as an indicator of unswappability.
(While here, put a #ifndef pgtok around the macro that gets a redefinition warning)
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 9317c7b..19560ce 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#endif
static const char rcsid[] =
- "$Id: print.c,v 1.32 1998/09/14 08:32:20 dfr Exp $";
+ "$Id: print.c,v 1.33 1998/11/25 09:34:00 dfr Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -216,7 +216,7 @@ state(k, ve)
*cp++ = 'E';
if (flag & P_PPWAIT)
*cp++ = 'V';
- if (flag & (P_SYSTEM | P_NOSWAP | P_PHYSIO))
+ if ((flag & P_SYSTEM) || p->p_lock > 0)
*cp++ = 'L';
if (KI_EPROC(k)->e_flag & EPROC_SLEADER)
*cp++ = 's';
@@ -406,7 +406,9 @@ wchan(k, ve)
(void)printf("%-*s", v->width, "-");
}
+#ifndef pgtok
#define pgtok(a) (((a)*getpagesize())/1024)
+#endif
void
vsize(k, ve)
OpenPOWER on IntegriCloud