zig/lib/std/os/linux
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
..
bpf Update zig files for opaque type syntax 2020-10-06 22:08:25 -06:00
arm-eabi.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
arm64.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
bpf.zig added helper definitions 2020-09-12 23:45:35 -07:00
i386.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
io_uring.zig Merge pull request #7369 from jorangreef/io_uring_timeout 2020-12-10 15:45:38 -05:00
mips.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
powerpc64.zig std/*: add missing MIT license headers 2020-10-26 17:41:29 +01:00
riscv64.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
sparc64.zig Add a comment to explain the fork return values on sparc64 2020-11-28 13:24:24 +07:00
start_pie.zig Minor code cleanup in start_pie.zig 2020-11-23 12:36:40 +01:00
test.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
tls.zig std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
vdso.zig std.meta: add assumeSentinel 2020-11-29 10:36:02 -08:00
x86_64.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00