Re: OT: why no file copy() libc/syscall ??

From: Chris Adams
Date: Tue Nov 18 2003 - 23:06:26 EST


Once upon a time, Andi Kleen <ak@xxxxxxx> wrote:
>"H. Peter Anvin" <hpa@xxxxxxxxx> writes:
>> s/EINTR/short count/, of course :)
>That would be buggy because existing users of sendfile don't know
>about this and would silently only copy part of the file when a signal
>happens.

Tru64 5.1B sendfile(2) page includes:

[EINTR]
A signal interrupted sendfile before any data was
transmitted. If some data was transmitted, the func-
tion returns the number of bytes sent before the
interrupt and does not set errno to [EINTR].

There are quite a few more documented return values under Tru64,
although TCP sockets are the only supported destination. See

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN2/0024____.HTM

--
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/