[Patches] [ python-Patches-1144555 ] allow UNIX mmap size to default to current file size (new)

SourceForge.net noreply at sourceforge.net
Sat Feb 19 23:47:17 CET 2005


Patches item #1144555, was opened at 2005-02-19 23:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1144555&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Reinhold Birkenfeld (birkenfeld)
Assigned to: Nobody/Anonymous (nobody)
Summary: allow UNIX mmap size to default to current file size (new)

Initial Comment:
see patch #749830:

"""
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.
"""

This new patch applies cleanly on current CVS HEAD.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1144555&group_id=5470


More information about the Patches mailing list