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 /include | |
parent | f7649d5780aa4682393b9daedd653e4d9c12784c (diff) | |
download | glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.zip glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.tar.gz glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.tar.bz2 |
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 'include')
-rw-r--r-- | include/sys/random.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/random.h b/include/sys/random.h index b33d114..6aa313d 100644 --- a/include/sys/random.h +++ b/include/sys/random.h @@ -1 +1,11 @@ +#ifndef _SYS_RANDOM_H #include <stdlib/sys/random.h> + +# ifndef _ISOMAC + +extern ssize_t __getrandom (void *__buffer, size_t __length, + unsigned int __flags) __wur; +libc_hidden_proto (__getrandom) + +# endif /* !_ISOMAC */ +#endif |