Re: Is sendfile all that sexy?

Peter Samuelson (peter@cadcamlab.org)
Thu, 18 Jan 2001 06:17:37 -0600


[Rogier Wolff]
> I'd prefer an interface that says "copy this fd to that one, and
> optimize that if you can".

So do exactly that in libc.

sendfile () {
if (sys_sendfile() == -1)
return (errno == EINVAL) ? do_slow_sendfile() : -1;
return 0;
}

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/