zig/lib/std/os
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
..
bits std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
linux std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
uefi Update zig files for opaque type syntax 2020-10-06 22:08:25 -06:00
windows small fixes and zig fmt 2020-12-09 13:54:26 +02:00
bits.zig Merge branch 'master' into openbsd-minimal 2020-10-17 17:38:23 +02:00
darwin.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
dragonfly.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
freebsd.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
netbsd.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
openbsd.zig add minimal openbsd support 2020-10-11 08:23:36 +00:00
test.zig Disable sigaction test on i386 because of #7427 2020-12-13 19:35:40 +01:00
uefi.zig Update zig files for opaque type syntax 2020-10-06 22:08:25 -06:00
wasi.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
windows.zig MoveFileEx can return ACCESS_DENIED 2020-12-09 15:03:17 -07:00