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

David Howells (dwh@nexor.co.uk)
Fri, 26 Jun 1998 09:28:06 +0100


>It wouldn't be like that. It would be something like
>
> fd = open("file", O_RDONLY);
> /* maybe fseek(fd, ...); or something else here */
> do {
> sent = sendfile(outfd, fd, bytes, flags);
> if (sent <= 0)
> break;
> bytes -= sent;
> } while (bytes);

How would Ctrl-C, etc. work? Would you get an EINTR error? Would it be
interruptible?

David

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