File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,9 @@ GLOB_NOESCAPE
326326GLOB_NOMATCH
327327GLOB_NOSORT
328328GLOB_NOSPACE
329+ GRND_INSECURE
330+ GRND_NONBLOCK
331+ GRND_RANDOM
329332HW_BYTEORDER
330333HW_DISKNAMES
331334HW_DISKSTATS
@@ -1308,6 +1311,7 @@ fstatfs
13081311futimes
13091312getdomainname
13101313getdtablesize
1314+ getentropy
13111315getgrent
13121316getgrent_r
13131317getgrgid
@@ -1331,6 +1335,7 @@ getprogname
13311335getpwent
13321336getpwent_r
13331337getpwnam_r
1338+ getrandom
13341339getresgid
13351340getresuid
13361341getrlimit
Original file line number Diff line number Diff line change @@ -3875,11 +3875,6 @@ pub const F_SEAL_WRITE: ::c_int = 8;
38753875// for use with fspacectl
38763876pub const SPACECTL_DEALLOC : :: c_int = 1 ;
38773877
3878- // For getrandom()
3879- pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
3880- pub const GRND_RANDOM : :: c_uint = 0x2 ;
3881- pub const GRND_INSECURE : :: c_uint = 0x4 ;
3882-
38833878// For realhostname* api
38843879pub const HOSTNAME_FOUND : :: c_int = 0 ;
38853880pub const HOSTNAME_INCORRECTNAME : :: c_int = 1 ;
@@ -5393,8 +5388,6 @@ extern "C" {
53935388
53945389 pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
53955390
5396- pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
5397- pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
53985391 pub fn elf_aux_info ( aux : :: c_int , buf : * mut :: c_void , buflen : :: c_int ) -> :: c_int ;
53995392 pub fn setproctitle_fast ( fmt : * const :: c_char , ...) ;
54005393 pub fn timingsafe_bcmp ( a : * const :: c_void , b : * const :: c_void , len : :: size_t ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -1456,6 +1456,11 @@ pub const RB_GDB: ::c_int = 0x8000;
14561456pub const RB_MUTE : :: c_int = 0x10000 ;
14571457pub const RB_SELFTEST : :: c_int = 0x20000 ;
14581458
1459+ // For getrandom()
1460+ pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
1461+ pub const GRND_RANDOM : :: c_uint = 0x2 ;
1462+ pub const GRND_INSECURE : :: c_uint = 0x4 ;
1463+
14591464safe_f ! {
14601465 pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
14611466 status == 0x13
@@ -1829,6 +1834,9 @@ extern "C" {
18291834 abs_timeout : * const :: timespec ,
18301835 ) -> :: c_int ;
18311836 pub fn mq_unlink ( name : * const :: c_char ) -> :: c_int ;
1837+
1838+ pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1839+ pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
18321840}
18331841
18341842#[ link( name = "util" ) ]
You can’t perform that action at this time.
0 commit comments