[ python-Bugs-1089974 ] mmap missing offset parameter

SourceForge.net noreply at sourceforge.net
Wed Dec 29 00:51:41 CET 2004


Bugs item #1089974, was opened at 2004年12月22日 11:22
Message generated for change (Comment added) made by josiahcarlson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1089974&group_id=5470
Category: Python Library
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: James Y Knight (foom)
Assigned to: A.M. Kuchling (akuchling)
Summary: mmap missing offset parameter
Initial Comment:
For some reason, the author of the MMap module didn't see fit to 
expose the "offset" parameter of the mmap syscall to python. It 
would be really nice if it had that. Currently, it's always set to 0.
 m_obj->data = mmap(NULL, map_size,
 prot, flags,
 fd, 0);
----------------------------------------------------------------------
Comment By: Josiah Carlson (josiahcarlson)
Date: 2004年12月28日 15:51
Message:
Logged In: YES 
user_id=341410
I would, but I don't know the slightest about the C-level
mmap internals on any platform, and spending the last hour
looking through Python's mmap.c hasn't made me any more
informed.
James (or anyone else who reads this), are you able?
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2004年12月28日 12:34
Message:
Logged In: YES 
user_id=11375
Would either of you care to provide a patch adding the
parameter? I'll review it...
----------------------------------------------------------------------
Comment By: Josiah Carlson (josiahcarlson)
Date: 2004年12月23日 08:57
Message:
Logged In: YES 
user_id=341410
I agree. Having access to the offset parameter would be
quite convenient, at least to some who use mmap in a
nontrivial fashion.
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1089974&group_id=5470


More information about the Python-bugs-list mailing list

AltStyle によって変換されたページ (->オリジナル) /