|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: Re: When argv[0] == NULL ...
From: Daniel Jacobowitz (dmj+
andrew.cmu.edu)Date: Tue Sep 12 2000 - 19:28:17 CDT
- Next message: Miquel van Smoorenburg: "Re: SysVinit audit: mesg and wall"
- Previous message: Miquel van Smoorenburg: "Re: SysVinit audit: mesg and wall"
- In reply to: Tim Robbins: "When argv[0] == NULL ..."
- Next in thread: Joseph S D Yao: "Re: When argv[0] == NULL ..."
- Reply: Daniel Jacobowitz: "Re: When argv[0] == NULL ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Sep 13, 2000 at 11:19:39AM +1100, Tim Robbins wrote:
> Not all programs die while trying to manipulate argv[0], some just do very
> strange things (atd, ftpd). BSD has a `progname' global variable that
> always contans the name of the current program, snd I think something
> similar would be good for Linux, too.
I think there is, now - it's undocumented, and doesn't appear in any of
the header files, but glibc 2.1 export __progname and __progname_full.
I don't know if these are set in any reliable way, though.
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dan
debian.org | | dmj+
andrew.cmu.edu |
\--------------------------------/ \--------------------------------/
- Next message: Miquel van Smoorenburg: "Re: SysVinit audit: mesg and wall"
- Previous message: Miquel van Smoorenburg: "Re: SysVinit audit: mesg and wall"
- In reply to: Tim Robbins: "When argv[0] == NULL ..."
- Next in thread: Joseph S D Yao: "Re: When argv[0] == NULL ..."
- Reply: Daniel Jacobowitz: "Re: When argv[0] == NULL ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]