2015.09.15 10:41 "[Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Andreas Romeyke

2015.09.15 10:41 "[Tiff] "bad file descriptor" if operating with lseek on filedescriptor given by TIFFFileno (Windows only)", by Andreas Romeyke

Hello,

I am using the filedescriptor returned by TIFFFileno() to make additional checks on a given TIFF. Under Linux the code works as expected.

But if I crosscompile the Libtiff and my program with MinGw using:

Libtiff:
  ./configure --host=i686-w64-mingw32

(also CFLAGS=-DO_BINARY does not help)

the lseek() or the read() comes with errno "Bad file descriptor".

Could you point me how to fix that?

Thanks in advance

Mit freundlichen Grüßen
With best regards,

Andreas Romeyke
--
project member "long-term preservation"

Saxon State- and University Library Dresden (SLUB)
Department 2 (IT), Division 2.3 (network and data security)
Zellescher Weg 18 | 01069 Dresden
phone: +49 351 4677 216
E-Mail: Andreas.Romeyke@slub-dresden.de
http://www.slub-dresden.de/ | @slubdresden