diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-01 23:14:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-01 23:14:55 (GMT) |
commit | fadeeffe5b7184c5406ee64e46550bc90395e8f7 (patch) | |
tree | b7620443dd89163ec692797ecc6406ff6b808651 /Doc | |
parent | 47583fa9b4113accd43efc8c205586cd956405a6 (diff) | |
parent | 8108e96bc811eeb61594e398848d25cbe9efbffe (diff) | |
download | cpython-fadeeffe5b7184c5406ee64e46550bc90395e8f7.zip cpython-fadeeffe5b7184c5406ee64e46550bc90395e8f7.tar.gz cpython-fadeeffe5b7184c5406ee64e46550bc90395e8f7.tar.bz2 |
(Merge 3.2) 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.rst | 4 |
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 |