Merge "Sync upstream-openbsd."

This commit is contained in:
Elliott Hughes
2014-07-14 19:15:32 +00:00
committed by Gerrit Code Review
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.