Got the separation between start_dyn.o and libroot.so wrong:
__libc_argc and __libc_argv are initialized in libroot's startup code. That fix now makes BApplication::ArgvReceived() work as it should. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11198 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2004, Axel Dörfler, [email protected].
|
||||
* Copyright 2003-2005, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
void initialize_before(image_id imageID, struct uspace_program_args const *args);
|
||||
|
||||
char *__progname = NULL;
|
||||
int __libc_argc;
|
||||
char **__libc_argv;
|
||||
|
||||
char _single_threaded = true;
|
||||
// determines if I/O locking needed; needed for BeOS compatibility
|
||||
|
||||
int __libc_argc;
|
||||
char **__libc_argv;
|
||||
thread_id __main_thread_id;
|
||||
char **argv_save;
|
||||
// needed for BeOS compatibility - they are set in the startup code
|
||||
@@ -37,6 +37,9 @@ initialize_before(image_id imageID, struct uspace_program_args const *args)
|
||||
__progname++;
|
||||
}
|
||||
|
||||
__libc_argc = args->argc;
|
||||
__libc_argv = args->argv;
|
||||
|
||||
__init_time();
|
||||
__init_image(args);
|
||||
__init_dlfcn(args);
|
||||
|
||||
Reference in New Issue
Block a user