gEDA-dev: New MinGW patches for gEDA/gaf
Peter Clifton
pcjc2 at cam.ac.uk
Fri Nov 16 09:26:36 EST 2007
On Fri, 2007-11-16 at 12:06 -0200, Cesar Strauss wrote:
> There is still some work in progress in the following areas:
>
> * MinGW does not have realpath.
For PCB, we included an implementation "lrealpath()", from libiberty. It
is intended to provide that functionality in a platform independent way.
http://pcb.cvs.sourceforge.net/pcb/pcb/src/lrealpath.c?view=log
http://pcb.cvs.sourceforge.net/pcb/pcb/src/lrealpath.h?view=log
http://pcb.cvs.sourceforge.net/pcb/pcb/configure.ac?r1=1.68&r2=1.69
Its behaviour does change slightly depending on which platform method it
ends up using - but it performs a "best effort" conversion, falling back
to just returning the passed in file name.
GNU libc has canonicalize_file_name(), which is one of the methods
lrealpath might use on some platforms.
Hope this helps in some way,
Best wishes,
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
More information about the geda-dev
mailing list