From 26dade365a47eefe8ee15e3514fb49da0a4db003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 11 Feb 2003 19:51:49 +0000 Subject: [PATCH] Added the _single_threaded global variable as it is needed by the std I/O implementation in BeOS. (spawn_thread() will change the value later, but that will come with the whole stdio implemenation (as it would now print out a warning)) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2691 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/libroot_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel/libroot/libroot_init.c b/src/kernel/libroot/libroot_init.c index fae0c1ec03..f2e8ae7cdf 100644 --- a/src/kernel/libroot/libroot_init.c +++ b/src/kernel/libroot/libroot_init.c @@ -15,9 +15,11 @@ void initialize_before(image_id imageID, struct uspace_program_args const *args) char *__progname = NULL; +char _single_threaded = true; + // determines if I/O locking needed; needed for BeOS compatibility thread_id __main_thread_id; char **argv_save; - // needed for BeOS compatibility - they get set in the original + // needed for BeOS compatibility - they are set in the original // BeOS startup code, but they won't be initialized when the // OpenBeOS startup code is used.