Christoph> What's the behaviour of other unix
Christoph> systems when seeking beyond the end of block devices?
The seek succeeds;
On a disc-like device, attempts to write at that offset return -1 EFBIG;
the first attempt to read at that offset returns 0; subequent ones
return -1 and ENXIO.
After the seek, lseek(fd, 0, SEEK_CURRENT) returns the (after end of
file) current offset.
At least for the ones I've been able to test on (UNIXWare, Solaris).
-- Dr Peter Chubb firstname.lastname@example.org You are lost in a maze of BitKeeper repositories, all almost the same. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/