|TIFF and LibTiff Mail List Archive|
LibTiff Mailing List
2018.12.11 18:54 "Re: [Tiff] SeekOK and WriteOK", by Bob Friesenhahn
On Tue, 11 Dec 2018, Nicolas RUFF wrote:
> This might be by design of the API :)
> You have to clear then check errno to distinguish between cases.
One approach is to call 'lseek(fd,SEEK_CUR)' and verify that the return value is the expected offset.