[Patches] [ python-Patches-749830 ] allow UNIX mmap size to default to current file size

SourceForge.net noreply@sourceforge.net
Mon, 23 Jun 2003 06:10:23 -0700


Patches item #749830, was opened at 2003-06-06 08:02
Message generated for change (Comment added) made by aimacintyre
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: Andrew I MacIntyre (aimacintyre)
Date: 2003-06-23 23: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