autoconf
[Top][All Lists]
Advanced

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

Re: finding datadir from executable


From: Bob Friesenhahn
Subject: Re: finding datadir from executable
Date: Sat, 11 Sep 2004 21:14:25 -0500 (CDT)

On Sat, 11 Sep 2004, Ralph Corderoy wrote:
normally whatever's passed to execve(2).  I was just trying to point out
that some old Unixes, Xenix? -- I can't remember, effectively strip any
path, absolute or relative, from execve's argument before it turns up in
argv[0], i.e. execve("./ls", ...) and execve("/bin/ls", ...) both
deliver an argv[0] of "ls".  Horrible, I know, but I remember getting
bit by it.

Must be because it was a Microsoft product. Luckily it is very difficult to find a Xenix system now.

Unless you are writing very important software that everyone needs in order to get anything done, I wouldn't worry about portability to Xenix or any other relic OS.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

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