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

Category: Modules
Group: None
>Status: Closed
>Resolution: Accepted
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: Martin v. L�wis (loewis)
Date: 2005-03-03 12:24

Message:
Logged In: YES 
user_id=21627

Thanks for the patches, I have applied #1144555 as

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

I'm not backporting it to 2.4 as this is a new feature.

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

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
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to