Sync upstream-openbsd.

Change-Id: I5b9961a57e2ff05f63bd218c130bf8347850b9be
This commit is contained in:
Elliott Hughes
2014-07-14 11:22:59 -07:00
parent 83ce99d8b7
commit 4f0b67a8db
10 changed files with 18 additions and 70 deletions

View File

@@ -33,6 +33,16 @@
#include <stdlib.h>
#include <unistd.h>
#include "atexit.h"
#include "thread_private.h"
/*
* This variable is zero until a process has created a thread.
* It is used to avoid calling locking functions in libc when they
* are not required. By default, libc is intended to be(come)
* thread-safe, but without a (significant) penalty to non-threaded
* processes.
*/
int __isthreaded = 0;
/*
* Exit, flushing stdio buffers if necessary.