How does a program get its path name?
Doug Gwyn
gwyn at brl-smoke.ARPA
Sun Feb 21 21:33:50 AEST 1988
In article <11923 at brl-adm.ARPA> Leisner.Henr at xerox.com (marty) writes:
>How does an exec program get the pathname it was execed from if it wants to find
>out this information?
That information is not generally available to the process.
>(I'm specifically asking how cc knows to looks at ../lib for the compiler
>passes).
I don't know of any "cc"s that work like that. Usually the pathnames
of the slave programs are hard-wired into the "cc" code, although
they're sometimes configurable via the makefile for cc when it's built.
More information about the Comp.unix.questions
mailing list