File tree 4 files changed +14
-8
lines changed
4 files changed +14
-8
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 @@ -3997,11 +3997,6 @@ pub const F_SEAL_WRITE: ::c_int = 8;
3997
3997
// for use with fspacectl
3998
3998
pub const SPACECTL_DEALLOC : :: c_int = 1 ;
3999
3999
4000
- // For getrandom()
4001
- pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
4002
- pub const GRND_RANDOM : :: c_uint = 0x2 ;
4003
- pub const GRND_INSECURE : :: c_uint = 0x4 ;
4004
-
4005
4000
// For realhostname* api
4006
4001
pub const HOSTNAME_FOUND : :: c_int = 0 ;
4007
4002
pub const HOSTNAME_INCORRECTNAME : :: c_int = 1 ;
@@ -5513,8 +5508,6 @@ extern "C" {
5513
5508
5514
5509
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
5515
5510
5516
- pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
5517
- pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
5518
5511
pub fn elf_aux_info ( aux : :: c_int , buf : * mut :: c_void , buflen : :: c_int ) -> :: c_int ;
5519
5512
pub fn setproctitle_fast ( fmt : * const :: c_char , ...) ;
5520
5513
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 @@ -1450,6 +1450,11 @@ pub const RB_GDB: ::c_int = 0x8000;
1450
1450
pub const RB_MUTE : :: c_int = 0x10000 ;
1451
1451
pub const RB_SELFTEST : :: c_int = 0x20000 ;
1452
1452
1453
+ // For getrandom()
1454
+ pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
1455
+ pub const GRND_RANDOM : :: c_uint = 0x2 ;
1456
+ pub const GRND_INSECURE : :: c_uint = 0x4 ;
1457
+
1453
1458
safe_f ! {
1454
1459
pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
1455
1460
status == 0x13
@@ -1819,6 +1824,9 @@ extern "C" {
1819
1824
abs_timeout : * const :: timespec ,
1820
1825
) -> :: c_int ;
1821
1826
pub fn mq_unlink ( name : * const :: c_char ) -> :: c_int ;
1827
+
1828
+ pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1829
+ pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
1822
1830
}
1823
1831
1824
1832
#[ link( name = "util" ) ]
Original file line number Diff line number Diff line change @@ -4554,7 +4554,7 @@ pub const FAN_MARK_IGNORED_MASK: ::c_uint = 0x0000_0020;
4554
4554
pub const FAN_MARK_IGNORED_SURV_MODIFY : :: c_uint = 0x0000_0040 ;
4555
4555
pub const FAN_MARK_FLUSH : :: c_uint = 0x0000_0080 ;
4556
4556
pub const FAN_MARK_EVICTABLE : :: c_uint = 0x0000_0200 ;
4557
- pub const FAN_MARK_IGNORE : :: c_uint = 0x0000_0100 ;
4557
+ pub const FAN_MARK_IGNORE : :: c_uint = 0x0000_0400 ;
4558
4558
4559
4559
pub const FAN_MARK_INODE : :: c_uint = 0x0000_0000 ;
4560
4560
pub const FAN_MARK_MOUNT : :: c_uint = 0x0000_0010 ;
You can’t perform that action at this time.
0 commit comments