AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2000

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2000.04.28 13:17 "Opening from fd", by Arnar Mar Hrafnkelsson
2000.04.28 14:25 "Re: Opening from fd", by Frank Warmerdam
2000.04.28 14:33 "Re: Opening from fd", by Dirk Haun

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

Arnar Mar Hrafnkelsson wrote:
> 
> 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