From k-horik@yk.rim.or.jp  Sun May 10 08:40:49 1998
Received: from mail.yk.rim.or.jp (root@mail.yk.rim.or.jp [202.247.130.37])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA02476
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 May 1998 08:40:47 -0700 (PDT)
          (envelope-from k-horik@yk.rim.or.jp)
Received: from localhost (ppp064.yk.rim.or.jp [202.247.134.64]) by mail.yk.rim.or.jp (8.8.5/3.4Wbeta6-rim1.1) with ESMTP id AAA10353; Mon, 11 May 1998 00:40:47 +0900 (JST)
Message-Id: <19980511004027F.k-horik@yk.rim.or.jp>
Date: Mon, 11 May 1998 00:40:27 +0900
From: horikawa@jp.freebsd.org
Sender: Kazuo Horikawa <k-horik@yk.rim.or.jp>
Reply-To: horikawa@jp.freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: While core(5) says NBPG gives page size, NBPG does not exist.
X-Send-Pr-Version: 3.2

>Number:         6573
>Category:       docs
>Synopsis:       While core(5) says NBPG gives page size, NBPG does not exist.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 10 08:40:01 PDT 1998
>Closed-Date:    Sun May 10 20:46:05 PDT 1998
>Last-Modified:  Sun May 10 20:46:24 PDT 1998
>Originator:     Kazuo Horikawa
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
personal user
>Environment:

	Both -stable
	.\"     $Id: core.5,v 1.2.2.1 1996/12/31 22:50:39 mpp Exp $
	and -current
	.\"	$Id: core.5,v 1.5 1997/02/22 13:25:57 peter Exp $
 
>Description:

	The command `man 5 core' shows:

                                               The size of a ``page'' is given
     by the constant NBPG (also from <sys/param.h>).

	But I cannot find `NBPG' definition via `find /usr/include |
	xargs grep NBPG'.

	I saw <machine/param.h> which is included by <sys/param.h>,
	and I found pagesize definition is `PAGE_SIZE'.  So, I think
	that `NBPG' should be replaced with `PAGE_SIZE' on FreeBSD.

>How-To-Repeat:

	% man 5 core

>Fix:

	Apply following patch to src/share/man/man5/core.5
	(rev.1.2.2.1 and rev.1.5).
	
--- core.5.orig	Mon May 11 00:04:35 1998
+++ core.5	Mon May 11 00:14:52 1998
@@ -95,7 +95,7 @@
 .Ar u .
 area.
 The size of a ``page'' is given by the constant
-.Dv NBPG
+.Dv PAGE_SIZE
 (also from
 .Aq Pa sys/param.h ) .
 .Sh SEE ALSO
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 10 20:46:05 PDT 1998 
State-Changed-Why:  
Patch committed, thanks! 
>Unformatted:
