diff options
author | Bruno Haible <bruno@clisp.org> | 2020-05-31 18:47:12 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-05-31 18:47:12 +0200 |
commit | 9de2f9ad0a12f0c048e9c9e573f77f35288f0c43 (patch) | |
tree | f91d6a21a805d80dc6c9616e29328a1786c71769 /doc | |
parent | 8175e3ddda29a03d5e0aec4a1774339414996565 (diff) | |
download | gnulib-9de2f9ad0a12f0c048e9c9e573f77f35288f0c43.tar.gz |
getrandom: Doc and test tweaks.
* lib/getrandom.c (getrandom): Mention that it never returns 0, and that
it sets errno when failing.
* tests/test-getrandom.c (main): Disable the high-quality check on those
platforms on which it fails.
* doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
Cygwin to the list of platforms that don't have the function. Add a note
about the quality of the result.
* doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
declaration; this is fixed by module 'getrandom'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/glibc-functions/getrandom.texi | 8 | ||||
-rw-r--r-- | doc/glibc-headers/sys_random.texi | 3 |
2 files changed, 3 insertions, 8 deletions
diff --git a/doc/glibc-functions/getrandom.texi b/doc/glibc-functions/getrandom.texi index 99712c77b7..3baf3905e2 100644 --- a/doc/glibc-functions/getrandom.texi +++ b/doc/glibc-functions/getrandom.texi @@ -21,8 +21,7 @@ Portability problems fixed by Gnulib: @itemize @item 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, mingw, MSVC 14, Android 9.0. +glibc 2.24, Mac OS X 10.5, FreeBSD 11.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.0, Cygwin, mingw, MSVC 14, Android 9.0. @item This function has a different return type on some platforms: Solaris 11.4. @@ -30,7 +29,6 @@ Solaris 11.4. Portability problems not fixed by Gnulib: @itemize -@item -This function is missing on some platforms: -Minix 3.1.8, IRIX 6.5. +This function cannot produce truly random numbers on some platforms: +GNU/Hurd, Mac OS X, GNU/kFreeBSD, FreeBSD 12.0, OpenBSD 6.5, Minix 3.3, AIX 7.1, Haiku, mingw, MSVC 14. @end itemize diff --git a/doc/glibc-headers/sys_random.texi b/doc/glibc-headers/sys_random.texi index 3f33962652..8f5951d671 100644 --- a/doc/glibc-headers/sys_random.texi +++ b/doc/glibc-headers/sys_random.texi @@ -26,9 +26,6 @@ glibc 2.24, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.11, IRIX 6.5 @item This header file is not self-contained on some platforms: Mac OS X 10.13. -@item -This header file does not declare the @code{getrandom} function on some platforms: -Mac OS X 10.5, FreeBSD 11.0, HP-UX 11.31, Solaris 11.0. @end itemize Portability problems not fixed by Gnulib: |