Re: finding datadir from executable

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

 



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.



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux