Skip to content

Commit e99e36e

Browse files
ian-h-chamberlainAzureMarker
authored andcommitted
Add constants for getrandom flags
(cherry picked from commit 4c03853)
1 parent 6716cdd commit e99e36e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/newlib/horizon/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ pub const FIONBIO: ::c_ulong = 1;
147147

148148
pub const RTLD_DEFAULT: *mut ::c_void = 0 as *mut ::c_void;
149149

150+
// For getrandom()
151+
pub const GRND_NONBLOCK: ::c_uint = 0x1;
152+
pub const GRND_RANDOM: ::c_uint = 0x2;
153+
150154
// Horizon OS works doesn't or can't hold any of this information
151155
safe_f! {
152156
pub {const} fn WIFSTOPPED(_status: ::c_int) -> bool {

0 commit comments

Comments
 (0)