Subject: misc/3698: mmap(2) contains reference to MAP_WRITE
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bgrayson@ece.utexas.edu>
List: netbsd-bugs
Date: 06/02/1997 05:27:29
>Number: 3698
>Category: misc
>Synopsis: mmap(2) contains reference to MAP_WRITE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 2 03:35:02 1997
>Last-Modified:
>Originator: Brian Grayson
>Organization:
Parallel and Distributed Systems
Electrical and Computer Engineering
The University of Texas at Austin
>Release: May 31, 1997
>Environment:
NetBSD marvin 1.2D NetBSD 1.2D (MARVIN) #30: Mon May 5 16:06:31 CDT 1997 bgrayson@marvin:/a/orac/home/orac/src/sys/arch/i386/compile/MARVIN i386
>Description:
Under ERRORS and [EACCESS]:
The flags PROT_WRITE, MAP_SHARED and MAP_WRITE were
specified as part of the flags and prot parameters
and fd was not open for writing.
As far as I can tell, there is no MAP_WRITE flag.
>How-To-Repeat:
>Fix:
--- mmap.2 Mon Jun 2 05:15:27 1997
+++ mmap.2.fix Mon Jun 2 05:21:15 1997
@@ -168,10 +168,8 @@
.Fa fd
was not open for reading.
The flags
-.Dv PROT_WRITE ,
+.Dv PROT_WRITE and
.Dv MAP_SHARED
-and
-.Dv MAP_WRITE
were specified as part
of the
.Fa flags
>Audit-Trail:
>Unformatted: