>>>>> "Christoph" == Christoph Hellwig <hch@infradead.org> writes:
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 peterc@gelato.unsw.edu.au 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:29 EST