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

SourceForge.net noreply at sourceforge.net
Thu Mar 3 12:24:26 CET 2005


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

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
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.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2005-03-03 12:24

Message:
Logged In: YES 
user_id=21627

Thanks for the patches, committed as

libmmap.tex 1.11
test_mmap.py 1.31
test_mmap 1.10
NEWS 1.1257
mmapmodule.c 2.49


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

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