error.c and program name

John Kelly jakelly at shtc.net
Fri Dec 9 04:50:59 UTC 2005


On Thu, 08 Dec 2005 20:29:00 -0800 (PST), Kenneth Crudup
<kenny at panix.com> wrote:


>> uClibc does not support program_invocation_name or
>> program_invocation_short_name which gnulib utilizes for error printing

>I remember getting bitten by this. I forget what I did, but isn't it
>possible to simply define and set those to some form of argv[0]?

I see that in glibc, ./misc/init-misc.c sets two pointers which look
at argv[0].  And that's all the function does.  Very simple.

If someone will guide me to the right place in uclibc initialization,
I can hack this in for my own local needs.





More information about the uClibc mailing list