Re: sendfile(2) idea (was: Thread implementations)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 26 Jun 1998 18:58:57 +0100 (BST)


> > sent = sendfile(outfd, fd, bytes, flags);
> > if (sent <= 0)
>
> How would Ctrl-C, etc. work? Would you get an EINTR error? Would it be
> interruptible?

If it works like send/write etc (I think it should) then we should follow
the POSIX conventions extrapolated

That is

1. If there are pending errors they are reported
2. Once we have transferred data bytes we return the number
completely sent on an error case not an error

Posix also has rules about the order of error/signal/other checks that
we can extrapolate quite sanely

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu