Add constants for getrandom flags

(cherry picked from commit 4c03853dab634dccef9e5dd8b8f2177ee8c09195)
This commit is contained in:
Ian Chamberlain 2022-01-31 23:04:28 -05:00 committed by Mark Drobnak
parent 6716cdd58a
commit e99e36e8d1
No known key found for this signature in database
GPG key ID: 47A133F3BF9D03D3

View file

@ -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 {