Where is program_name?

2008-09-09 Thread Gisle Vanem
'program_name' is used in lib/error.c, but it is not allocated anywhere. Should it be added to main.c and initialised to exec_name? --gv

Re: Where is program_name?

2008-09-09 Thread Saint Xavier
Hi, * Gisle Vanem ([EMAIL PROTECTED]) wrote: 'program_name' is used in lib/error.c, but it is not allocated anywhere. Should it be added to main.c and initialised to exec_name? $cd wget-mainline $find . -name '*.[ch]' -exec fgrep -H -n 'program_name' '{}' \; ./lib/error.c:63:# define

Re: Where is program_name?

2008-09-09 Thread Gisle Vanem
Google for that and you will find the corresponding man page. Like it's written here http://www.tin.org/bin/man.cgi?section=3topic=PROGRAM_INVOCATION_NAME These variables are automatically initialised by the glibc run-time startup code. I'm on Windows. So glibc is of no help here. --gv

Re: Where is program_name?

2008-09-09 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saint Xavier wrote: Hi, * Gisle Vanem ([EMAIL PROTECTED]) wrote: 'program_name' is used in lib/error.c, but it is not allocated anywhere. Should it be added to main.c and initialised to exec_name? $cd wget-mainline $find . -name '*.[ch]'