Patch: relative pathnames, take 2

Tom Tromey tromey@cygnus.com
Tue Nov 30 23:59:00 GMT 1999


>>>>> "Jan" == Jan Vroonhof <vroonhof@math.ethz.ch> writes:

Jan> The idea is that argv[0] is often not a good indication of where
Jan> the tree is, it can be a symlink (say from /usr/local/bin) into
Jan> the real tree.

Jan> progname = symlink_value(progname) and restart.

I'm not sure what you mean by symlink_value.  In the past I used to
use realpath() in my location-independence code.  Is that what you
mean?

This might be a good thing to do.  I don't plan to do it, I'm afraid.
Feel free to send a patch!

Tom



More information about the Gcc-patches mailing list