]> granicus.if.org Git - python/commit
Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the same
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 5 Feb 2006 05:45:43 +0000 (05:45 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 5 Feb 2006 05:45:43 +0000 (05:45 +0000)
commit0e6bc8c260f640ceee515e9873353778472e0a00
treef567d2bbbde27ae16288e1e94edc4ff0acf13441
parentd1cfc8ade1f661f02286f2b81123d4d436c6d9d0
Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the same
on both Unix (SVR4 and BSD) and Windows.  Restores behaviour of passing -1
for anonymous memory on Unix.  Use MAP_ANONYMOUS instead of _ANON since
the latter is deprecated according to Linux (gentoo) man pages.

Should we continue to allow mmap.mmap(0, length) to work on Windows?
0 is a valid fd.

Will backport bugfix portions.
Doc/lib/libmmap.tex
Lib/test/output/test_mmap
Lib/test/test_mmap.py
Misc/NEWS
Modules/mmapmodule.c