OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man2 / mmap.2
index 2fdc696..4d66efa 100644 (file)
@@ -37,7 +37,7 @@
 .\" 2007-07-10, mtk, Added an example program.
 .\" 2008-11-18, mtk, document MAP_STACK
 .\"
-.TH MMAP 2 2013-04-17 "Linux" "Linux Programmer's Manual"
+.TH MMAP 2 2014-04-06 "Linux" "Linux Programmer's Manual"
 .SH NAME
 mmap, munmap \- map or unmap files or devices into memory
 .SH SYNOPSIS
@@ -393,9 +393,7 @@ is set (probably to
 .TP
 .B EACCES
 A file descriptor refers to a non-regular file.
-Or
-.B MAP_PRIVATE
-was requested, but
+Or a file mapping was requested, but
 .I fd
 is not open for reading.
 Or
@@ -567,7 +565,7 @@ is defined.
 .BR _GNU_SOURCE
 also suffices,
 and requiring that macro specifically would have been more logical,
-since these flags are all Linux specific.)
+since these flags are all Linux-specific.)
 The relevant flags are:
 .BR MAP_32BIT ,
 .BR MAP_ANONYMOUS
@@ -639,8 +637,8 @@ The program creates a memory mapping of the required
 pages of the file and then uses
 .BR write (2)
 to output the desired bytes.
+.SS Program source
 .nf
-
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -734,3 +732,11 @@ B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128-129 and 389-391.
 .\"
 .\" Repeat after me: private read-only mappings are 100% equivalent to
 .\" shared read-only mappings. No ifs, buts, or maybes. -- Linus
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.