This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rosslagerwall
Recipients giampaolo.rodola, loewis, pitrou, rosslagerwall
Date 2011-01-10.20:27:44
SpamBayes Score 4.321312e-07
Marked as misclassified No
Message-id <1294691268.76.0.727179568007.issue10882@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is a patch which implements os.sendfile for unix systems (linux, freebsd, apple, solaris, dragonfly).

It takes the iov initialization code and off_t parsing from i10812.

It encapsulates all the functionality from the various sendfiles which means a fair amount of #ifdefs but the basic case works for all of them.

Tested on Linux & FreeBSD - it should work on solaris but since it needs to link with the sendfile library and I have no idea how to link the posix module with the sendfile library only on Solaris, i couldn't test it. If someone could please contribute this...

I think it might be possible to get a Windows equivalent of this - i'll leave it for someone else to do ;-)
History
Date User Action Args
2011-01-10 20:27:49rosslagerwallsetrecipients: + rosslagerwall, loewis, pitrou, giampaolo.rodola
2011-01-10 20:27:48rosslagerwallsetmessageid: <1294691268.76.0.727179568007.issue10882@psf.upfronthosting.co.za>
2011-01-10 20:27:45rosslagerwalllinkissue10882 messages
2011-01-10 20:27:45rosslagerwallcreate