diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-12-13 10:10:59 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-12-13 11:11:54 +0100 |
commit | 8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17 (patch) | |
tree | 7e57b78b0a5afa580234ca80ed886de02b766886 /stdlib | |
parent | f7649d5780aa4682393b9daedd653e4d9c12784c (diff) | |
download | glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.tar.gz glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.tar.xz glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.zip |
hurd: Fix local PLT
* include/sys/random.h (__getrandom): Add hidden prototype. * stdlib/getrandom.c (getrandom): Rename to hidden definition __getrandom. Add weak alias. * sysdeps/mach/hurd/getrandom.c (getrandom): Likewise. * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise. * sysdeps/mach/hurd/getentropy.c (getentropy): Use __getrandom instead of getrandom.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/getrandom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/getrandom.c b/stdlib/getrandom.c index 3cfbd0c0dd..02b827c63c 100644 --- a/stdlib/getrandom.c +++ b/stdlib/getrandom.c @@ -22,10 +22,12 @@ /* Write up to LENGTH bytes of randomness starting at BUFFER. Return the number of bytes written, or -1 on error. */ ssize_t -getrandom (void *buffer, size_t length, unsigned int flags) +__getrandom (void *buffer, size_t length, unsigned int flags) { __set_errno (ENOSYS); return -1; } - stub_warning (getrandom) + +libc_hidden_def (__getrandom) +weak_alias (__getrandom, getrandom) |