Subject: bin/293: P_NOSWAP and P_PHYSIO missing from
To: None <gnats-admin>
From: Jason R. Thorpe <thorpej@yuri.CS.ORST.EDU>
List: netbsd-bugs
Date: 06/18/1994 02:20:05
>Number:         293
>Category:       bin
>Synopsis:       P_NOSWAP and P_PHYSIO missing from <sys/proc.h>
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 18 02:20:02 1994
>Originator:     Jason R. Thorpe
>Organization:
Oregon State University - Department of Computer Science

>Release:        
>Environment:
	
System:
NetBSD 0.9B (FOUNDATION) #5: Fri Jun 17 19:26:28 MDT 1994
    thorpej@lager.fhf.novatel.ca:/home/src/sys/arch/hp300/compile/FOUNDATION


>Description:
  On sources sup'd 6/16/94 /bin/ps (specifically print.c) fails to compile
  due to P_NOSWAP and P_PHYSIO not being defined in version 1.27 of
  <sys/proc.h>

  P_NOSWAP and P_PHYSIO *are* defined in version 1.26 of <sys/proc.h>
>How-To-Repeat:
  Try to compile /bin/ps with version 1.27 of <sys/proc.h>
>Fix:
  Although it's probably not the right way to fix the problem, the following
  patch to <sys/proc.h> allows /bin/ps to compile...
  The macros are from version 1.26 of <sys/proc.h>

*** proc.h.orig Wed Jun 15 02:22:35 1994
--- proc.h      Wed Jun 15 02:23:38 1994
***************
*** 196,201 ****
--- 196,205 ----
  #define       P_WEXIT         0x02000 /* Working on exiting. */
  #define       P_EXEC          0x04000 /* Process called exec. */
  
+ /* Should probably be changed into a hold count. */
+ #define P_NOSWAP        0x08000 /* Another flag to prevent swap out. */
+ #define P_PHYSIO        0x10000 /* Doing physical I/O. */
+ 
  /* Should be moved to machine-dependent areas. */
  #define       P_OWEUPC        0x08000 /* Owe process an addupc() call at next 
  ast. */
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------