diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-05-25 09:19:56 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-05-25 12:37:39 -0700 |
commit | 682cc4e678aceff32dea2a84b6e5147bdf5a20a7 (patch) | |
tree | fc99f97c4f973b85fd74badd9d06d075a8df32f1 /lib/sys_random.in.h | |
parent | 01e57974abc6e78daed8a6f012a832ebd6d67ac0 (diff) | |
download | gnulib-682cc4e678aceff32dea2a84b6e5147bdf5a20a7.tar.gz |
getentropy, getrandom: new modules
* MODULES.html.sh (func_all_modules):
* lib/unistd.in.h (getentropy, getrandom):
* m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
* modules/unistd (unistd.h):
Add support for getentropy, getrandom.
* doc/glibc-functions/getentropy.texi (getentropy):
* doc/glibc-functions/getrandom.texi (getrandom):
These are now fixed on some platforms.
* lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
* m4/getentropy.m4, m4/getrandom.m4:
* modules/getentropy, modules/getentropy-tests:
* modules/getrandom, modules/getrandom-tests:
* tests/test-getentropy.c, tests/test-getrandom.c:
New files.
Diffstat (limited to 'lib/sys_random.in.h')
-rw-r--r-- | lib/sys_random.in.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sys_random.in.h b/lib/sys_random.in.h new file mode 100644 index 0000000000..e3f308ce48 --- /dev/null +++ b/lib/sys_random.in.h @@ -0,0 +1,9 @@ +#ifndef _SYS_RANDOM_H +#define _SYS_RANDOM_H 1 + +#include <sys/types.h> +#define GRND_NONBLOCK 1 +#define GRND_RANDOM 2 +ssize_t getrandom (void *, size_t, unsigned int); + +#endif |