summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-03 14:36:36 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-03 14:36:36 +0200
commit8d039e35d59ee32c3ee0337cf0ab3d4c3ada18a4 (patch)
treeddb13414149b6e90f6a786d200ed047deffb0633 /Doc
parentbbc7b2e42bbb335b53d863592ffed23a237dd243 (diff)
downloadcpython-8d039e35d59ee32c3ee0337cf0ab3d4c3ada18a4.tar.gz
(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')
-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 125b34f3c7..f036a60ce0 100644
--- a/Doc/library/mmap.rst
+++ b/Doc/library/mmap.rst
@@ -94,6 +94,10 @@ memory but does not update the underlying file.
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