autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding datadir from executable


From: Ralph Corderoy
Subject: Re: finding datadir from executable
Date: Sat, 11 Sep 2004 17:48:50 +0100

Hi Daniel,

> You give it argv[0], BINDIR, and OTHERDIR; it computes the relative
> path between bindir and otherdir, finds your application in $PATH or
> similar, and works out the likely location of otherdir.

Does argv[0] always contain a path on all Unixes?  IIRC, some old ones
put just `ls' there despite execve(2) being given "/bin/ls".

Cheers,


Ralph.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]