From root@strike.velocet.ca Sat May 22 19:13:47 1999
Return-Path: <root@strike.velocet.ca>
Received: from strike.velocet.ca (strike.velocet.ca [209.167.225.34])
	by hub.freebsd.org (Postfix) with ESMTP id B169B151C5
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 May 1999 19:13:46 -0700 (PDT)
	(envelope-from root@strike.velocet.ca)
Received: (from root@localhost)
	by strike.velocet.ca (8.9.2/8.9.2) id WAA00648;
	Sat, 22 May 1999 22:13:45 -0400 (EDT)
	(envelope-from root)
Message-Id: <199905230213.WAA00648@strike.velocet.ca>
Date: Sat, 22 May 1999 22:13:45 -0400 (EDT)
From: dgilbert@velocet.ca
Sender: root@strike.velocet.ca
Reply-To: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: ps(1) man page incorrectly references vadvise(2)
X-Send-Pr-Version: 3.2

>Number:         11856
>Category:       docs
>Synopsis:       references to vadvise(2) should probably be madvise(2)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kris
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 19:20:01 PDT 1999
>Closed-Date:    Wed Jun 30 04:52:15 PDT 1999
>Last-Modified:  Wed Jun 30 04:54:22 PDT 1999
>Originator:     David Gilbert
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Velocet Communications
>Environment:

	FreeBSD 3.1-RELEASE

>Description:

	ps(1) man page references vadvise(2) multiple times.  It would
appear that this reference should be madvise(2) --- there is no
vadvise(2) man page.

>How-To-Repeat:

	man ps --- then search for vadvise

>Fix:
	
*** ps.1	Sat May 22 22:12:47 1999
--- ps.1.old	Sat May 22 22:12:26 1999
***************
*** 273,279 ****
  the process has asked for random page replacement
  .Pf ( Dv VA_ANOM ,
  from
! .Xr madvise 2 ,
  for example,
  .Xr lisp 1
  in a garbage collect).
--- 273,279 ----
  the process has asked for random page replacement
  .Pf ( Dv VA_ANOM ,
  from
! .Xr vadvise 2 ,
  for example,
  .Xr lisp 1
  in a garbage collect).
***************
*** 293,299 ****
  page replacement
  .Pf ( Dv VA_SEQL ,
  from
! .Xr madvise 2 ,
  for example, a large image processing program using virtual memory to
  sequentially address voluminous data).
  .It s
--- 293,299 ----
  page replacement
  .Pf ( Dv VA_SEQL ,
  from
! .Xr vadvise 2 ,
  for example, a large image processing program using virtual memory to
  sequentially address voluminous data).
  .It s


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->kris 
Responsible-Changed-By: nik 
Responsible-Changed-When: Fri May 28 16:44:22 PDT 1999 
Responsible-Changed-Why:  
Kris was the last person to edit this manual page. 

Re this PR.  It's probably right.  In addition, the manual page 
also refs VA_ANOM and VA_SEQL.  A check through madvise(2) shows 
that MADV_SEQUENTIAL is probably one correct replacement, but 
I don't know what the MADV_* equivalent for VA_ANOM is. 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Wed Jun 30 04:52:15 PDT 1999 
State-Changed-Why:  
Update committed - thanks for pointing it out. In addition to changing 
vadvise() -> madvise(), the flags also needed to be changed (VA_SEQL -> 
MADV_SEQUENTIAL and VA_ANOM -> MADV_RANDOM). 
>Unformatted:
