diff options
author | Joseph Myers <joseph@codesourcery.com> | 2020-04-09 21:21:16 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2020-04-09 21:21:16 +0000 |
commit | 319d2a7b60cc0d06bb5c29684c23475d41a7f8b7 (patch) | |
tree | 04e8807b5fe64ee1d0ec968cd6bb4bdd7d2f8919 /stdlib | |
parent | b56875d5e06e869b1a7f4408b68cb74544c094b0 (diff) | |
download | glibc-319d2a7b60cc0d06bb5c29684c23475d41a7f8b7.zip glibc-319d2a7b60cc0d06bb5c29684c23475d41a7f8b7.tar.gz glibc-319d2a7b60cc0d06bb5c29684c23475d41a7f8b7.tar.bz2 |
Add GRND_INSECURE from Linux 5.6 to sys/random.h
This patch adds the GRND_INSECURE constant from Linux 5.6 to glibc's
sys/random.h. This is also added to the documentation. The constant
acts as a no-op for the Hurd implementation (as that doesn't check
whether the flags are known), which is semantically fine, while older
Linux kernels reject unknown flags with an EINVAL error.
Tested for x86_64.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/sys/random.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/sys/random.h b/stdlib/sys/random.h index b351ef5..1df6e9b 100644 --- a/stdlib/sys/random.h +++ b/stdlib/sys/random.h @@ -25,6 +25,7 @@ /* Flags for use with getrandom. */ #define GRND_NONBLOCK 0x01 #define GRND_RANDOM 0x02 +#define GRND_INSECURE 0x04 __BEGIN_DECLS |