diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-03 14:36:36 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-03 14:36:36 +0200 |
commit | 8d039e35d59ee32c3ee0337cf0ab3d4c3ada18a4 (patch) | |
tree | ddb13414149b6e90f6a786d200ed047deffb0633 /Doc/library/mmap.rst | |
parent | bbc7b2e42bbb335b53d863592ffed23a237dd243 (diff) | |
download | cpython-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/library/mmap.rst')
-rw-r--r-- | Doc/library/mmap.rst | 4 |
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 |