]> git.saurik.com Git - apple/libc.git/blame - stdlib/FreeBSD/exit.c.patch
Libc-320.tar.gz
[apple/libc.git] / stdlib / FreeBSD / exit.c.patch
CommitLineData
9385eb3d
A
1--- exit.c.orig Mon Apr 28 16:37:26 2003
2+++ exit.c Sat May 3 14:28:31 2003
3@@ -46,15 +46,6 @@
4 void (*__cleanup)();
5
6 /*
7- * This variable is zero until a process has created a thread.
8- * It is used to avoid calling locking functions in libc when they
9- * are not required. By default, libc is intended to be(come)
10- * thread-safe, but without a (significant) penalty to non-threaded
11- * processes.
12- */
13-int __isthreaded = 0;
14-
15-/*
16 * Exit, flushing stdio buffers if necessary.
17 */
18 void
19@@ -63,11 +54,6 @@
20 {
21 struct atexit *p;
22 int n;
23-
24- /* Ensure that the auto-initialization routine is linked in: */
25- extern int _thread_autoinit_dummy_decl;
26-
27- _thread_autoinit_dummy_decl = 1;
28
29 for (p = __atexit; p; p = p->next)
30 for (n = p->ind; --n >= 0;)