[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.
- finding datadir from executable, Nicholas R. Markham, 2004/09/05
- Re: finding datadir from executable, Bob Friesenhahn, 2004/09/05
- Re: finding datadir from executable, Akim Demaille, 2004/09/06
- Re: finding datadir from executable, Bruce Korb, 2004/09/06
- Re: finding datadir from executable, Daniel Jacobowitz, 2004/09/11
- Re: finding datadir from executable, Bob Friesenhahn, 2004/09/11
- Re: finding datadir from executable, Bruce Korb, 2004/09/11
- Re: finding datadir from executable, Bob Friesenhahn, 2004/09/11
- Re: finding datadir from executable, Alexandre Duret-Lutz, 2004/09/12
- Re: finding datadir from executable,
Ralph Corderoy <=
- Re: finding datadir from executable, Bob Friesenhahn, 2004/09/11
- Re: finding datadir from executable, Andreas Schwab, 2004/09/11
- Re: finding datadir from executable, Ralph Corderoy, 2004/09/11
- Re: finding datadir from executable, Bob Friesenhahn, 2004/09/11
- Re: finding datadir from executable, Andreas Schwab, 2004/09/12