diff options
author | Bruno Haible <bruno@clisp.org> | 2020-05-30 17:33:46 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-05-30 17:33:46 +0200 |
commit | 67ae31b60bedc0a3f1ff4c06177054685b9dcc95 (patch) | |
tree | 40fe17f688df693195460133b8ea0968c8b81f21 /doc/glibc-functions/getrandom.texi | |
parent | 9e7d098310117f0b17e7868124652a392b0a9854 (diff) | |
download | gnulib-67ae31b60bedc0a3f1ff4c06177054685b9dcc95.tar.gz |
getrandom: Override incompatible system function on Solaris 11.
* lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
* lib/getrandom.c (getrandom): When the system has getrandom, just
invoke it.
* m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
system's getrandom function's prototype is not the expected one.
* m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
REPLACE_GETRANDOM.
* modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
* modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
* tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
EAGAIN.
* doc/glibc-functions/getrandom.texi: Mention the new module and the
Solaris problem.
Diffstat (limited to 'doc/glibc-functions/getrandom.texi')
-rw-r--r-- | doc/glibc-functions/getrandom.texi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/glibc-functions/getrandom.texi b/doc/glibc-functions/getrandom.texi index 2f4debcfef..2d93556537 100644 --- a/doc/glibc-functions/getrandom.texi +++ b/doc/glibc-functions/getrandom.texi @@ -15,7 +15,7 @@ Documentation: @uref{https://www.kernel.org/doc/man-pages/online/pages/man2/getrandom.2.html,,man getrandom}. @end itemize -Gnulib module: --- +Gnulib module: getrandom Portability problems fixed by Gnulib: @itemize @@ -23,6 +23,9 @@ Portability problems fixed by Gnulib: This function is missing on some platforms: glibc 2.24, Mac OS X 10.5, FreeBSD 11.0, NetBSD 5.0, OpenBSD 3.8, Solaris 11.0, Android 9.0. +@item +This function has a different return type on some platforms: +Solaris 11.4. @end itemize Portability problems not fixed by Gnulib: |