Subject: lib/371: MAP_FILE is still referenced in mmap(2) and mman.h
To: None <gnats-admin>
From: Mark Weaver <mhw@cs.brown.edu>
List: netbsd-bugs
Date: 07/31/1994 01:05:03
>Number:         371
>Category:       lib
>Synopsis:       MAP_FILE is still referenced in mmap(2) and mman.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   mhw
>Arrival-Date:   Sun Jul 31 01:05:02 1994
>Originator:     Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science
>Release:        NetBSD 1.0-BETA (27-July-1994)
>Environment:

System: NetBSD cis-ts3-slip4.cis.brown.edu 1.0_BETA NetBSD 1.0_BETA (EXCELSIOR) #1: Sat Jul 30 13:36:57 EDT 1994 mhw@cis-ts3-slip4.cis.brown.edu:/usr/src/sys/arch/i386/compile/EXCELSIOR i386


>Description:
	MAP_FILE is still referenced in the mmap(2) man page and
	in a comment within mman.h
>How-To-Repeat:
>Fix:
diff -c  src/lib/libc/sys/mmap.2.mhw1 src/lib/libc/sys/mmap.2
*** src/lib/libc/sys/mmap.2.mhw1	Fri Dec 17 01:28:58 1993
--- src/lib/libc/sys/mmap.2	Sun Jul 31 03:52:39 1994
***************
*** 106,113 ****
  The file descriptor used for creating MAP_ANON regions is used only for
  naming, and may be specified as \-1 if no name is associated with the
  region.
- .It Dv MAP_FILE
- Mapped from a regular file or character-special device memory.
  .It Dv MAP_FIXED
  Do not permit the system to select a different address than the one
  specified.
--- 106,111 ----
***************
*** 171,179 ****
  .Fa Fd
  is not a valid open file descriptor.
  .It Bq Er EINVAL
- One of MAP_ANON or MAP_FILE was not specified as part of the
- .Fa flags
- parameter.
  MAP_FIXED was specified and the
  .I addr
  parameter was not page aligned.
--- 169,174 ----
diff -c  src/sys/sys/mman.h.mhw1 src/sys/sys/mman.h
*** src/sys/sys/mman.h.mhw1	Wed Jun 29 06:33:01 1994
--- src/sys/sys/mman.h	Sun Jul 31 03:46:44 1994
***************
*** 57,63 ****
  #define	MAP_RENAME	 0x0020	/* Sun: rename private pages to file */
  #define	MAP_NORESERVE	 0x0040	/* Sun: don't reserve needed swap area */
  #define	MAP_INHERIT	 0x0080	/* region is retained after exec */
! #define	MAP_NOEXTEND	 0x0100	/* for MAP_FILE, don't change file size */
  #define	MAP_HASSEMAPHORE 0x0200	/* region may contain semaphores */
  
  /*
--- 57,63 ----
  #define	MAP_RENAME	 0x0020	/* Sun: rename private pages to file */
  #define	MAP_NORESERVE	 0x0040	/* Sun: don't reserve needed swap area */
  #define	MAP_INHERIT	 0x0080	/* region is retained after exec */
! #define	MAP_NOEXTEND	 0x0100	/* when flags == 0, don't change file size */
  #define	MAP_HASSEMAPHORE 0x0200	/* region may contain semaphores */
  
  /*
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------