summaryrefslogtreecommitdiffstats
path: root/Doc/library/mmap.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-01 23:11:33 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-01 23:11:33 (GMT)
commit8108e96bc811eeb61594e398848d25cbe9efbffe (patch)
tree31ca95d076488661f741776f28d7d1b4ebd711c4 /Doc/library/mmap.rst
parentcee01bf18faa9eb95b93c24711cbebbe36d91336 (diff)
parenta6cd0cf0f5530f1e96114927b2824f6dc61f1bbd (diff)
downloadcpython-8108e96bc811eeb61594e398848d25cbe9efbffe.zip
cpython-8108e96bc811eeb61594e398848d25cbe9efbffe.tar.gz
cpython-8108e96bc811eeb61594e398848d25cbe9efbffe.tar.bz2
(Merge 3.1) Issue #11277: mmap.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 128bc90..7a901c9 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