diff options
author | Ian Chamberlain <ian.h.chamberlain@gmail.com> | 2022-01-31 23:04:28 -0500 |
---|---|---|
committer | Mark Drobnak <mark.drobnak@gmail.com> | 2022-03-06 12:16:57 -0800 |
commit | e99e36e8d177d47af57f10ccdbeacd99aa0ffd16 (patch) | |
tree | aae04baae0719b70481f8ace6af977144b2dacde | |
parent | 6716cdd58ab1e189388b15f0a38bb2f5f440d5f5 (diff) | |
download | rust-libc-e99e36e8d177d47af57f10ccdbeacd99aa0ffd16.tar.gz |
Add constants for getrandom flags
(cherry picked from commit 4c03853dab634dccef9e5dd8b8f2177ee8c09195)
-rw-r--r-- | src/unix/newlib/horizon/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix/newlib/horizon/mod.rs b/src/unix/newlib/horizon/mod.rs index 210f6a6562..1d8ae53cdf 100644 --- a/src/unix/newlib/horizon/mod.rs +++ b/src/unix/newlib/horizon/mod.rs @@ -147,6 +147,10 @@ pub const FIONBIO: ::c_ulong = 1; pub const RTLD_DEFAULT: *mut ::c_void = 0 as *mut ::c_void; +// For getrandom() +pub const GRND_NONBLOCK: ::c_uint = 0x1; +pub const GRND_RANDOM: ::c_uint = 0x2; + // Horizon OS works doesn't or can't hold any of this information safe_f! { pub {const} fn WIFSTOPPED(_status: ::c_int) -> bool { |