Messages in this thread | | | Date | Tue, 18 Nov 2003 22:04:02 -0600 | From | Chris Adams <> | Subject | Re: OT: why no file copy() libc/syscall ?? |
| |
Once upon a time, Andi Kleen <ak@suse.de> wrote: >"H. Peter Anvin" <hpa@zytor.com> 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@hiwaay.net> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |