]> git.proxmox.com Git - wasi-libc.git/commit - expected/wasm32-wasi/posix/defined-symbols.txt
Declare getentropy in <sys/random.h>
authorDan Gohman <sunfish@mozilla.com>
Tue, 30 Apr 2019 22:05:10 +0000 (15:05 -0700)
committerDan Gohman <sunfish@mozilla.com>
Tue, 30 Apr 2019 23:07:49 +0000 (16:07 -0700)
commit401012952d13f966f7cd04d41725619a9c8caf02
tree5e8f77e2004f82ce6cd6ca99ad894ce480682dbd
parent9bb4cc5c411af8453cbef69c137a4c2337714d89
Declare getentropy in <sys/random.h>

Some systems, such as Darwin, only declare getentropy in <sys/random.h>,
so declare it there on WASI too for compatibility.

Also, give getentropy the underscore-prefix/weak-symbol treatment, as
it's not a standard-reserved identifier.
expected/wasm32-wasi/defined-symbols.txt
expected/wasm32-wasi/predefined-macros.txt
libc-bottom-half/sources/getentropy.c
libc-top-half/musl/include/sys/random.h