Issue1144555
Created on 2005-02-19 22:47 by georg.brandl, last changed 2005-03-03 11:24 by loewis.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
py-mmap.diff
|
georg.brandl,
2005-02-19 22:47
|
patch to allow UNIX mmap to be called with 0 to set mmap size to current file size |
|
|
|
msg47821 - (view) |
Author: Georg Brandl (georg.brandl) |
Date: 2005-02-19 22:47 |
|
see patch #749830:
"""
This patch makes the UNIX mmap behave like the Windows
mmap in that if you pass 0 as the mmap size, the map
size will default to the current length of the file
being mmapped.
This allows avoids a call to os.stat if you want to map
the entire file. It also makes code using this feature
of the Windows mmap to be portable to UNIX.
"""
This new patch applies cleanly on current CVS HEAD.
|
|
msg47822 - (view) |
Author: Martin v. Löwis (loewis) |
Date: 2005-03-03 11:24 |
|
Logged In: YES
user_id=21627
Thanks for the patches, committed as
libmmap.tex 1.11
test_mmap.py 1.31
test_mmap 1.10
NEWS 1.1257
mmapmodule.c 2.49
|
|
| Date |
User |
Action |
Args |
| 2005-02-19 22:47:17 | birkenfeld | create | |
|