summaryrefslogtreecommitdiff
path: root/Doc/library/mmap.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-02 01:05:37 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-02 01:05:37 +0200
commita6cd0cf0f5530f1e96114927b2824f6dc61f1bbd (patch)
treeccd842682a0b4893d38d5b4e3ac44fa06a17c6ae /Doc/library/mmap.rst
parent10116d40d8794825c42b2440524411cd406d1f93 (diff)
downloadcpython-git-a6cd0cf0f5530f1e96114927b2824f6dc61f1bbd.tar.gz
Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a
mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
Diffstat (limited to 'Doc/library/mmap.rst')
-rw-r--r--Doc/library/mmap.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst
index 5001d4f55e..e061088a69 100644
--- a/Doc/library/mmap.rst
+++ b/Doc/library/mmap.rst
@@ -86,6 +86,10 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
defaults to 0. *offset* must be a multiple of the PAGESIZE or
ALLOCATIONGRANULARITY.
+ To ensure validity of the created memory mapping the file specified
+ by the descriptor *fileno* is internally automatically synchronized
+ with physical backing store on Mac OS X and OpenVMS.
+
This example shows a simple way of using :class:`mmap`::
import mmap