summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-02-23 02:54:01 -0500
committerRich Felker <dalias@aerifal.cx>2018-02-23 02:57:52 -0500
commit82f176803ae07e34229906d5c7c62889e665dc97 (patch)
tree8ba87ec513170697964a04c7502a6abb6b8aacc4 /include
parente20658209177667e490c661dfd35b976749ef3f7 (diff)
downloadmusl-82f176803ae07e34229906d5c7c62889e665dc97.tar.gz
musl-82f176803ae07e34229906d5c7c62889e665dc97.tar.bz2
musl-82f176803ae07e34229906d5c7c62889e665dc97.tar.xz
musl-82f176803ae07e34229906d5c7c62889e665dc97.zip
add getentropy function
based loosely on patch by Hauke Mehrtens; converted to wrap the public API of the underlying getrandom function rather than direct syscalls, so that if/when a fallback implementation of getrandom is added it will automatically get picked up by getentropy too.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 09190af4..c17eace9 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -176,6 +176,7 @@ int acct(const char *);
long syscall(long, ...);
int execvpe(const char *, char *const [], char *const []);
int issetugid(void);
+int getentropy(void *, size_t);
#endif
#ifdef _GNU_SOURCE