Even better, what about:
ssize_t copy (int from_fd, int to_fd, size_t nbytes);
A first cut implementation of this is really trivial -
just a loop in the kernel. Later, ambitious hackers
could optimize various things like from_fd == file,
to_fd == socket (becomes TransmitFile equivalent,
and perhaps does I2O or DMA hackery); and from_fd == file
on NFS, to_fd == file on NFS is optimized to send a
COPYFILE primitive to the server.
It's simple, the semantics are obvious, non-blocking
works like you expect and so on.
Rich.
-- Richard Jones rjones@orchestream.com Tel: +44 171 598 7557 Fax: 460 4461 Orchestream Ltd. 125 Old Brompton Rd. London SW7 3RP PGP: www.four11.com "boredom ... one of the most overrated emotions ... the sky is made of bubbles ..." Original message content Copyright © 1998- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu