|
|
Log in / Subscribe / Register

the realities of splice

the realities of splice

Posted Jan 20, 2005 14:29 UTC (Thu) by alangley (guest, #23266)
In reply to: the realities of splice by bronson
Parent article: The evolution of pipe buffers

Actually, you have to wonder why it's a new syscall at all. The interface is almost exactly the same as sendfile, so why has Linus added another syscall at all?

(and the outfd, infd arguments are round the wrong way at the moment)

AGL


to post comments

the realities of splice

Posted Oct 11, 2006 15:19 UTC (Wed) by Niam (guest, #41009) [Link]

So I don't understand qhat is this new syscall for!!
Sendfile is seems much better, 'cos it can manipulate with any fd...

Only a "plus" - it's faster[but it works with pipes!!!].
It seems to me that better to modify sendfile call for pipes mode.

Now, if I write new progrom I should write
#ifdef __splice
splice(..)
#elif __tee
tee(...)
#else
sendfile(..)
#endif

I can't see what are them really for...


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds