From 8d039e35d59ee32c3ee0337cf0ab3d4c3ada18a4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 3 May 2011 14:36:36 +0200 Subject: (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. --- Doc/library/mmap.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Doc') 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 -- cgit v1.2.1