[Python-Dev] Add sendfile() to core?
James Y Knight
foom at fuhm.net
Mon Jan 10 01:01:28 CET 2011
If you're gonna wrap sendfile, it might be nice to also wrap the splice, tee, and vmsplice syscalls on linux, since they're a lot more flexible.
Also note that sendfile on BSD has a completely different signature to sendfile on linux. The BSD one has the rather odd functionality of a built-in writev() before and after the sending of the file itself, with an extra struct argument to specify that, while on linux, if you want to write some other buffers, you're just expected to call writev yourself.
More information about the Python-Dev