Subject: lib/20803: Error in description of MAP_ANON in man mmap
To: None <gnats-bugs@gnats.netbsd.org>
From: None <erik.anggard@packetfront.com>
List: netbsd-bugs
Date: 03/19/2003 10:39:36
>Number: 20803
>Category: lib
>Synopsis: Error in description of MAP_ANON in man mmap
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 19 01:40:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Erik Anggard
>Release: NetBSD 1.6D
>Organization:
>Environment:
System: NetBSD kiwi.int.packetfront.com 1.6D NetBSD 1.6D (KIWI-$Revision: 1.138 $) #2: Thu Nov 28 11:01:15 CET 2002 eriang@kiwi.int.packetfront.com:/usr/src/sys/arch/macppc/compile/KIWI macppc
Architecture: powerpc
Machine: macppc
>Description:
The man page for mmap indicates that the file descriptor when
using MAP_ANON may have some other value than -1. This is not
true.
>How-To-Repeat:
man mmap
>Fix:
Diff for rev 1.27 of src/lib/libc/sys/mmap.2:
--- mmap.2.orig Wed Mar 19 10:27:46 2003
+++ mmap.2 Wed Mar 19 10:30:25 2003
@@ -127,9 +127,7 @@
Map anonymous memory not associated with any specific file.
The file descriptor used for creating
.Dv MAP_ANON
-regions is used only for
-naming, and may be specified as \-1 if no name is associated with the
-region.
+must be \-1.
.It Dv MAP_FILE
Mapped from a regular file or character-special device memory.
.It Dv MAP_FIXED
>Release-Note:
>Audit-Trail:
>Unformatted: