]> Savannah Git Hosting - gnulib.git/commit
getrandom: Override incompatible system function on Solaris 11.
authorBruno Haible <bruno@clisp.org>
Sat, 30 May 2020 15:33:46 +0000 (17:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 30 May 2020 15:33:46 +0000 (17:33 +0200)
commit67ae31b60bedc0a3f1ff4c06177054685b9dcc95
tree40fe17f688df693195460133b8ea0968c8b81f21
parent9e7d098310117f0b17e7868124652a392b0a9854
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.
ChangeLog
doc/glibc-functions/getrandom.texi
lib/getrandom.c
lib/sys_random.in.h
m4/getrandom.m4
m4/sys_random_h.m4
modules/getrandom
modules/sys_random
tests/test-getrandom.c