[uClibc-cvs] uClibc/libc/misc/internals __uClibc_main.c,1.27,1.28

Erik Andersen andersen at uclibc.org
Mon Jun 30 21:47:32 UTC 2003


Update of /var/cvs/uClibc/libc/misc/internals
In directory winder:/tmp/cvs-serv20119/libc/misc/internals

Modified Files:
	__uClibc_main.c 
Log Message:
Yield to yet another glibc-ism and add __progname


Index: __uClibc_main.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/internals/__uClibc_main.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- __uClibc_main.c	23 Jan 2003 14:03:02 -0000	1.27
+++ __uClibc_main.c	30 Jun 2003 21:47:29 -0000	1.28
@@ -42,6 +42,7 @@
  */
 
 char **__environ = 0;
+const char *__progname = 0;
 weak_alias(__environ, environ);
 
 
@@ -122,6 +123,8 @@
      * may have already been completed by the shared lib loader.  We call 
      * __uClibc_init() regardless, to be sure the right thing happens. */
     __uClibc_init();
+
+    __progname = *argv;
 
 #ifdef __UCLIBC_CTOR_DTOR__
     /* Arrange for the application's dtors to run before we exit.  */




More information about the uClibc-cvs mailing list