mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 15:26:43 +01:00
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)
This commit is contained in:
parent
c8da68e917
commit
4a40c5e7ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45366
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user