Commit e79e95f 1 parent e425fe3 commit e79e95f Copy full SHA for e79e95f
File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,9 @@ GLOB_NOESCAPE
326
326
GLOB_NOMATCH
327
327
GLOB_NOSORT
328
328
GLOB_NOSPACE
329
+ GRND_INSECURE
330
+ GRND_NONBLOCK
331
+ GRND_RANDOM
329
332
HW_BYTEORDER
330
333
HW_DISKNAMES
331
334
HW_DISKSTATS
@@ -1308,6 +1311,7 @@ fstatfs
1308
1311
futimes
1309
1312
getdomainname
1310
1313
getdtablesize
1314
+ getentropy
1311
1315
getgrent
1312
1316
getgrent_r
1313
1317
getgrgid
@@ -1331,6 +1335,7 @@ getprogname
1331
1335
getpwent
1332
1336
getpwent_r
1333
1337
getpwnam_r
1338
+ getrandom
1334
1339
getresgid
1335
1340
getresuid
1336
1341
getrlimit
Original file line number Diff line number Diff line change @@ -3875,11 +3875,6 @@ pub const F_SEAL_WRITE: ::c_int = 8;
3875
3875
// for use with fspacectl
3876
3876
pub const SPACECTL_DEALLOC : :: c_int = 1 ;
3877
3877
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
-
3883
3878
// For realhostname* api
3884
3879
pub const HOSTNAME_FOUND : :: c_int = 0 ;
3885
3880
pub const HOSTNAME_INCORRECTNAME : :: c_int = 1 ;
@@ -5393,8 +5388,6 @@ extern "C" {
5393
5388
5394
5389
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
5395
5390
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 ;
5398
5391
pub fn elf_aux_info ( aux : :: c_int , buf : * mut :: c_void , buflen : :: c_int ) -> :: c_int ;
5399
5392
pub fn setproctitle_fast ( fmt : * const :: c_char , ...) ;
5400
5393
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;
1456
1456
pub const RB_MUTE : :: c_int = 0x10000 ;
1457
1457
pub const RB_SELFTEST : :: c_int = 0x20000 ;
1458
1458
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
+
1459
1464
safe_f ! {
1460
1465
pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
1461
1466
status == 0x13
@@ -1829,6 +1834,9 @@ extern "C" {
1829
1834
abs_timeout : * const :: timespec ,
1830
1835
) -> :: c_int ;
1831
1836
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 ;
1832
1840
}
1833
1841
1834
1842
#[ link( name = "util" ) ]
You can’t perform that action at this time.
0 commit comments