[issue12556] Disable size checks in mmap.mmap()
Sergei Lebedev
report at bugs.python.org
Fri Jul 22 07:16:17 CEST 2011
Sergei Lebedev <superbobry at gmail.com> added the comment:
> Passing mmap(2) a 0 length doesn't make much sense anyway - for
example, Linux returns EINVAL.
Yup, but passing mmap(2) a zero-sized file and a non-zero length works just fine.
> Why do you want a mmap? Why not using a file?
Because Xen requires me to mmap it. Anyway, you're right, the use-case is too uncommon.
----------
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12556>
_______________________________________
More information about the Python-bugs-list
mailing list