zig/lib/std/os/bits
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
..
linux Add process_madvise to Linux syscalls (#7450) 2020-12-17 18:58:09 +02:00
darwin.zig std: Fixes for siginfo test on macos 2020-12-13 19:17:04 +01:00
dragonfly.zig std: Further siginfo refinements 2020-12-12 16:44:10 +01:00
freebsd.zig Fix compilation error on FreeBSD 2020-12-13 20:36:34 +01:00
linux.zig std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
netbsd.zig std: Update more siginfo bits for BSDs 2020-12-13 19:28:38 +01:00
openbsd.zig openbsd: correct few structs 2020-12-15 14:49:42 -05:00
wasi.zig Label WASI stat as kernel_stat 2020-11-05 12:44:43 +01:00
windows.zig std: Add basic smoke test for net functionality 2020-10-27 21:52:47 +01:00