Re: finding the full path of the program which ran.
- From: Joe Pfeiffer <pfeiffer@xxxxxxxxxxx>
- Date: 21 Dec 2006 14:21:08 -0700
John Reiser <jreiser@xxxxxxxxxxxx> writes:
I m building a library which requires the full path of the program to
which it is linked. How could I do it?
This is impossible if you require an answer that is always correct
regardless of circumstances.
The presence of hard links and symbolic links allows for many different
names for the "same" program. So "_the_ full path" might be ambiguous.
(snipped lots of good information)
Never mind that the full path at link time isn't likely to be the same
as the full path at run time.
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
.
- Follow-Ups:
- Re: finding the full path of the program which ran.
- From: Grant Edwards
- Re: finding the full path of the program which ran.
- References:
- finding the full path of the program which ran.
- From: Prasad
- Re: finding the full path of the program which ran.
- From: John Reiser
- finding the full path of the program which ran.
- Prev by Date: Re: finding the full path of the program which ran.
- Next by Date: PCI device driver question
- Previous by thread: Re: finding the full path of the program which ran.
- Next by thread: Re: finding the full path of the program which ran.
- Index(es):