Support thread local storage

This commit is contained in:
Justine Tunney 2022-05-16 13:20:08 -07:00
parent 91ee2b19d4
commit 55de4ca6b5
197 changed files with 1483 additions and 874 deletions

View file

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "libc/rand/rand.h"
#include "third_party/libcxx/__config"
#if defined(_LIBCPP_USING_WIN32_RANDOM)
@ -24,15 +25,6 @@
#include "third_party/libcxx/stdio.h"
#include "third_party/libcxx/stdlib.h"
#if defined(_LIBCPP_USING_GETENTROPY)
#include "libc/isystem/sys/random.h"
#elif defined(_LIBCPP_USING_DEV_RANDOM)
#include "third_party/libcxx/fcntl.h"
#include "third_party/libcxx/unistd.h"
#elif defined(_LIBCPP_USING_NACL_RANDOM)
#include "third_party/libcxx/nacl/nacl_random.h"
#endif
_LIBCPP_BEGIN_NAMESPACE_STD
#if defined(_LIBCPP_USING_GETENTROPY)