[Patches] [ python-Patches-749830 ] allow UNIX mmap size to default
to current file size
SourceForge.net
noreply at sourceforge.net
Wed Feb 23 19:31:30 CET 2005
Patches item #749830, was opened at 2003-06-06 00:02
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=749830&group_id=5470
Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Boedicker (mboedick)
Assigned to: Nobody/Anonymous (nobody)
Summary: allow UNIX mmap size to default to current file size
Initial Comment:
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.
----------------------------------------------------------------------
Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-02-23 19:31
Message:
Logged In: YES
user_id=1188172
see new patch #1144555 which applies cleanly on today's CVS
HEAD.
----------------------------------------------------------------------
Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2003-06-23 15:10
Message:
Logged In: YES
user_id=250749
Tested on FreeBSD 4.8 & 5.1 - updated test_mmap passes.
I don't have any mmap reliant code to check more thoroughly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=749830&group_id=5470
More information about the Patches
mailing list