diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-04-06 03:17:57 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-04-06 03:17:57 +0000 |
commit | 4a40c5e7ee98144410683384eb035c84a7913c24 (patch) | |
tree | 1b46dabacb060407c79ce4454215e37eb98f310e /bin/ps | |
parent | c8da68e9173b0e94bbae1a32954f73e2eca1712f (diff) | |
download | src-4a40c5e7ee98144410683384eb035c84a7913c24.tar.gz src-4a40c5e7ee98144410683384eb035c84a7913c24.zip |
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)
Notes
Notes:
svn path=/head/; revision=45366
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 9317c7be1ffc..19560ce2c25b 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) |