mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #11277: 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.
This commit is contained in:
parent
10116d40d8
commit
a6cd0cf0f5
4 changed files with 17 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue