2000.04.28 13:17 "Opening from fd", by Arnar Mar Hrafnkelsson

2000.04.28 14:25 "Re: Opening from fd", by Frank Warmerdam

I'm using v3.5.4 of libtiff. The manpage for TIFFFdOpen says that I have to give the function the correct filename and mode the file is opened in. I can understand the mode is needed but I do not see why the filename is needed.

TIFF* TIFFFdOpen(const int fd, const char* filename, const char* mode)

It's similar for the clientopen function. It's even possible in those cases that no file exists on disk and never has or will. What happens if I just give it some nonexistant filename?

Arnar,

A quick scan of the code suggests the name is just used for warning and error messages. For virtual files, just supply some helpful text for the user.

Later,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerda@home.com
light and sound - activate the windows | http://members.home.com/warmerda
and watch the world go round - Rush    | Geospatial Programmer for Rent