This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
getprogname / setprogname
- From: Robert Millan <rmh at aybabtu dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 17 Mar 2006 15:35:28 +0100
- Subject: getprogname / setprogname
- Organisation: free as in freedom
Hi!
How would you feel about adding getprogname / setprogname ?
They're very simple: setprogname writes to a char pointer and getprogname
reads from it. Optionaly, startup routines might call "setprogname (argv[0])".
The idea is that programs can find their own name outside of main(), see:
http://www.freebsd.org/cgi/man.cgi?query=getprogname
--
Robert Millan