An implementation of cat that uses
sendfile to write to
stdout. In situations where stdout is piped,
splice is used; in all other
sendfile is used. The combination of these calls avoids unnecessary
copying to userspace.
One unfortunate side effect is that
altcat FILE >> OUT
is not supported as neither
sendfile support appending to files.