AWARE [SYSTEMS]
AWare Systems, Home TIFF and LibTiff Mail List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
November 2018

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2018.11.10 19:39 "[Tiff] Libtiff 4.0.10 is now available", by Bob Friesenhahn
2018.11.10 21:24 "Re: [Tiff] Libtiff 4.0.10 is now available", by
2018.11.15 23:37 "[Tiff] vcpkg port for 4.0.10", by Roger Leigh
2018.12.08 20:43 "[Tiff] Zlib inflate recovery action required?", by Bob Friesenhahn
2018.12.11 18:54 "Re: [Tiff] SeekOK and WriteOK", by Bob Friesenhahn
2018.12.11 14:24 "Re: [Tiff] SeekOK and WriteOK", by Emmanuel Cosnard
2018.12.12 08:53 "Re: [Tiff] SeekOK and WriteOK", by Emmanuel Cosnard
[...]

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 :)
> http://bugzilla.maptools.org/show_bug.cgi?id=2726
>
> lseek() returns -1 in both cases:
> - lseek(-1, SEEK_SET)
> - An error occurred
>

> 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.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt