NetBSD Problem Report #293

From gnats  Sat Jun 18 02:06:26 1994
Received: from yuri.CS.ORST.EDU ([email protected] [128.193.164.204]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id CAA11604 for <[email protected]>; Sat, 18 Jun 1994 02:06:23 -0700
Message-Id: <[email protected]>
Date: Sat, 18 Jun 1994 02:13:43 -0700
From: "Jason R. Thorpe" <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: P_NOSWAP and P_PHYSIO missing from <sys/proc.h>
X-Send-Pr-Version: 3.2

>Number:         293
>Category:       bin
>Synopsis:       P_NOSWAP and P_PHYSIO missing from <sys/proc.h>
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 18 02:20:02 +0000 1994
>Closed-Date:    Sat Jun 18 09:27:08 +0000 1994
>Last-Modified:  
>Originator:     Jason R. Thorpe
>Release:        
>Organization:
Oregon State University - Department of Computer Science

>Environment:

System:
NetBSD 0.9B (FOUNDATION) #5: Fri Jun 17 19:26:28 MDT 1994
    [email protected]:/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. */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cgd 
State-Changed-When: Sat Jun 18 02:27:08 PDT 1994 
State-Changed-Why:  
(1) not a bug; their removal was intentional. 
(2) this bug was fixed 2 days ago in ps.  i.e. a fixed version 
is available for anon-ftp/sup already. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.