zig/lib/std/c
Andrew Kelley 53987c932c std.crypto.random: introduce fork safety
Everybody gets what they want!

 * AT_RANDOM is completely ignored.
 * On Linux, MADV_WIPEONFORK is used to provide fork safety.
 * On pthread systems, `pthread_atfork` is used to provide fork safety.
 * For systems that do not have the capability to provide fork safety,
   the implementation falls back to calling getrandom() every time.
 * If madvise is unavailable or returns an error, or pthread_atfork
   fails for whatever reason, it falls back to calling getrandom() every
   time.
 * Applications may choose to opt-out of fork safety.
 * Applications may choose to opt-in to unconditionally calling
   getrandom() for every call to std.crypto.random.fillFn.
 * Added `std.meta.globalOption`.
 * Added `std.os.madvise` and related bits.
 * Bumped up the size of the main thread TLS buffer. See the comment
   there for justification.
 * Simpler hot path in TLS initialization.
2020-12-18 15:54:01 -07:00
..
ast.zig move std.SegmentedList to the std-lib-orphanage 2020-11-30 13:04:26 -07:00
darwin.zig Merge pull request #6385 from LemonBoy/callocator 2020-11-18 20:16:57 -08:00
dragonfly.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00
emscripten.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
freebsd.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00
fuchsia.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
haiku.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
hermit.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
linux.zig std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
minix.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
netbsd.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00
openbsd.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
parse.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
solaris.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
tokenizer.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
windows.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00