rw does not support copying sparse files, a feature found on some operating systems.
Can’t you seek to the end of the input file and then truncate the output to that length?
rw is not yet able to determine the size of block devices on Illumos, Minix, NetBSD, and OpenBSD.
Same question here: does lseek(fd, 0, SEEK_END) not work?
lseek(fd, 0, SEEK_END)
Can’t you seek to the end of the input file and then truncate the output to that length?
Same question here: does
lseek(fd, 0, SEEK_END)not work?