summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-03 11:22:44 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-03 11:22:44 (GMT)
commit7fe60c0a0ae2fe4586491867c902bb13df403285 (patch)
treef014cc1f0b4dfb19588dc5144ff343f11e48c352 /Doc/lib
parentdf37c8c1ad51b6f8527e2cd398788e49cd686654 (diff)
downloadcpython-7fe60c0a0ae2fe4586491867c902bb13df403285.zip
cpython-7fe60c0a0ae2fe4586491867c902bb13df403285.tar.gz
cpython-7fe60c0a0ae2fe4586491867c902bb13df403285.tar.bz2
Patches #749830, #1144555: allow UNIX mmap size to default to current
file size.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libmmap.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libmmap.tex b/Doc/lib/libmmap.tex
index d0fbf88..0d7baa1 100644
--- a/Doc/lib/libmmap.tex
+++ b/Doc/lib/libmmap.tex
@@ -62,8 +62,10 @@ the underlying file.
prot\optional{, access}}}}
\strong{(\UNIX{} version)} Maps \var{length} bytes from the file
specified by the file descriptor \var{fileno}, and returns a mmap
- object.
-
+ object. If \var{length} is \code{0}, the maximum length of the map
+ will be the current size of the file when \function{mmap(} is
+ called.
+
\var{flags} specifies the nature of the mapping.
\constant{MAP_PRIVATE} creates a private copy-on-write mapping, so
changes to the contents of the mmap object will be private to this