[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected
Ross Lagerwall
report at bugs.python.org
Thu Feb 10 05:38:01 CET 2011
Ross Lagerwall <rosslagerwall at gmail.com> added the comment:
> will this patch support off_t for "mmap.resize" as well?
> ftruncate uses off_t for the length of a file as well.
No, it doesn't because resize() resizes the amount mmapped in memory which can't be more than ssize_t anyway. However, resizing does work on a 12GiB file with a large offset, e.g. 6GiB.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4681>
_______________________________________
More information about the Python-bugs-list
mailing list