hanchenye-llvm-project/libcxx
JF Bastien 57148cbcbd libc++: add NaCl and PNaCl support for std::random_device
Summary:
The NaCl sandbox doesn't allow opening files under /dev, but it offers an API which provides the same capabilities. This is the same random device emulation that nacl_io performs for POSIX support, but nacl_io is an optional library so libc++ can't assume that device emulation will be performed. Note that NaCl only supports /dev/urandom, not /dev/random.

This patch also cleans up some of the preprocessor #endif, and fixes the test for Win32 (it accepts any token, and would therefore never throw regardless of the token provided).

Test Plan: ninja check-libcxx

Reviewers: dschuff, mclow.lists, danalbert

Subscribers: jfb, cfe-commits

Differential Revision: http://reviews.llvm.org/D6442

llvm-svn: 223068
2014-12-01 19:19:55 +00:00
..
cmake Fix build regression caused by not defining ABI library macros 2014-11-15 17:25:23 +00:00
include libc++: add NaCl and PNaCl support for std::random_device 2014-12-01 19:19:55 +00:00
lib Fixes to get libc++ building on sun solaris. Patch from C Bergstrom. 2014-11-25 21:57:41 +00:00
src libc++: add NaCl and PNaCl support for std::random_device 2014-12-01 19:19:55 +00:00
test libc++: add NaCl and PNaCl support for std::random_device 2014-12-01 19:19:55 +00:00
www Implement N4280 - 'Non-member size() and more' 2014-11-19 19:43:23 +00:00
.arcconfig Update Arcanist config to point to reviews.llvm.org 2014-06-10 18:29:36 +00:00
CMakeLists.txt Add support for LLVM_USE_SANITIZER=Thread 2014-11-18 21:26:45 +00:00
CREDITS.TXT Add self to credits 2014-08-21 04:21:43 +00:00
LICENSE.TXT
Makefile Exclude .svn (and other "dot" directories) when installing headers. 2014-03-13 16:13:54 +00:00