[New-bugs-announce] [issue4681] mmap offset should be off_t instead of ssize_t
saa
report at bugs.python.org
Wed Dec 17 09:40:09 CET 2008
New submission from saa <p5thon at saaworld.com>:
In trying to use the mmap offset to allow me to work with a 12GB file, I
encountered the fact that the new offset parameter was a ssize_t, which
is only 32 bits on my platform (OS X). The mmap offset in C is defined
to be an off_t
(http://opengroup.org/onlinepubs/007908775/xsh/mmap.html), which is 64
bits on my platform. The attached patch attempts to fix the non-Windows
code to have an off_t offset parameter and allows my code to access all
12 GB of my file. As a warning, this is the first time I've even looked
at the Python source, and wouldn't even consider myself a Python coder;
I just use Python every few months. Review the patch carefully.
----------
components: Extension Modules
files: mmap_off_t.patch
keywords: patch
messages: 77957
nosy: saa
severity: normal
status: open
title: mmap offset should be off_t instead of ssize_t
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file12375/mmap_off_t.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4681>
_______________________________________
More information about the New-bugs-announce
mailing list