[GRASS5] Re: [GRASS-CVS] markus: grass/src/imagery/i.ortho.photo/photo.rectify write.c,1.2,1.3

Glynn Clements glynn.clements at virgin.net
Fri Aug 23 20:06:59 EDT 2002


Bernhard Reiter wrote:

> Certainly there can be more reasons why writing wouldn't work.
> Like nfs down or wrong permission?
> 
> To help diagnosing this it might be helpful to give the filename
> in the error message where writing was attempted.
> I would replace the "(disk full?)" comment by
> ". You might want to check available disk space and write permissions."

I would just print the error message corresponding to the OS error,
using perror() or strerror(). E.g. an error of ENOSPC would result in
something like "No space left on device" (the exact message depends
upon your libc).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list