Re: [AD] [4.3] get_executable_name |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wednesday 30 August 2006 1:14 am, Evert Glebbeek wrote:
> On Wednesday 30 August 2006 05:18, Thomas Fjellstrom wrote:
> > Are there really unix systems where you cant use getcwd (relative paths
>
> in
>
> > argv) and argv[0] ?
>
> You have it backward: there are UNIX systems where you need to use argv[0].
> In cases where it's not needed, it's better to use available library
> functions or other methods.
> Within those bounds, I'm all for simplifying.
For an absolute path in argv[0], I'll default to that, then look up procfs and
then if needed, ps. I don't like calling ps like that though.
> Evert
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx