error.c and program name
John Kelly
jakelly at shtc.net
Fri Dec 9 21:53:04 UTC 2005
On Thu, 08 Dec 2005 23:50:59 -0500, John Kelly <jakelly at shtc.net>
wrote:
> If someone will guide me to the right place in uclibc initialization,
> I can hack this in for my own local needs.
Some adroit grepping discovered the uclibc initialization code, and
amazingly, __progname is already defined and captures argv[0].
So with a little hacking on error.c, uclibc now outputs the program
name just like glibc.
Since no one was forthcoming with their uclibc secrets, maybe I should
hoard mine too ...
--
Somebody has to do something, and it's just incredibly pathetic that
it has to be us.
More information about the uClibc
mailing list