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

From: H. Peter Anvin
Date: Tue Nov 18 2003 - 12:00:03 EST


Andi Kleen wrote:

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.


It would be consistent with the documented semantics for other file operations. Obviously, return zero only on EOF.

-hpa

-
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/