getprogname / setprogname

Robert Millan rmh@aybabtu.com
Fri Mar 17 15:51:00 GMT 2006


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



More information about the Libc-alpha mailing list