Re: Is sendfile all that sexy?

Anton Blanchard (anton@linuxcare.com.au)
Sat, 27 Jan 2001 01:12:51 +1100


Hi Dave,

How are the VB withdrawal symptoms going? :)

> Anton, why are you always returning -1 (which means error for the
> smb_message[] array functions) when using sendfile?

Returning -1 tells the higher level code that we actually sent the bytes
out ourselves and not to bother doing it.

> Aren't you supposed to return the number of bytes output or
> something like this?

Only if you want the code to do a send() on outbuf which we dont here.

Cheers,
Anton
-
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/