Skip to content

Commit

Permalink
Add constants for getrandom flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed Feb 1, 2022
1 parent c269096 commit 4c03853
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c03853

Please sign in to comment.