@@ -510,8 +510,40 @@ s! {
510
510
pub ifr6_addr: :: in6_addr,
511
511
pub ifr6_prefixlen: u32 ,
512
512
pub ifr6_ifindex: :: c_int,
513
- }
513
+ }
514
+
515
+ pub struct statx {
516
+ pub stx_mask: :: __u32,
517
+ pub stx_blksize: :: __u32,
518
+ pub stx_attributes: :: __u64,
519
+ pub stx_nlink: :: __u32,
520
+ pub stx_uid: :: __u32,
521
+ pub stx_gid: :: __u32,
522
+ pub stx_mode: :: __u16,
523
+ __statx_pad1: [ :: __u16; 1 ] ,
524
+ pub stx_ino: :: __u64,
525
+ pub stx_size: :: __u64,
526
+ pub stx_blocks: :: __u64,
527
+ pub stx_attributes_mask: :: __u64,
528
+ pub stx_atime: :: statx_timestamp,
529
+ pub stx_btime: :: statx_timestamp,
530
+ pub stx_ctime: :: statx_timestamp,
531
+ pub stx_mtime: :: statx_timestamp,
532
+ pub stx_rdev_major: :: __u32,
533
+ pub stx_rdev_minor: :: __u32,
534
+ pub stx_dev_major: :: __u32,
535
+ pub stx_dev_minor: :: __u32,
536
+ pub stx_mnt_id: :: __u64,
537
+ pub stx_dio_mem_align: :: __u32,
538
+ pub stx_dio_offset_align: :: __u32,
539
+ __statx_pad3: [ :: __u64; 12 ] ,
540
+ }
514
541
542
+ pub struct statx_timestamp {
543
+ pub tv_sec: :: __s64,
544
+ pub tv_nsec: :: __u32,
545
+ pub __reserved: :: __s32,
546
+ }
515
547
}
516
548
517
549
s_no_extra_traits ! {
@@ -4014,6 +4046,22 @@ extern "C" {
4014
4046
) -> :: size_t ;
4015
4047
pub fn fflush_unlocked ( stream : * mut :: FILE ) -> :: c_int ;
4016
4048
pub fn fgets_unlocked ( buf : * mut :: c_char , size : :: c_int , stream : * mut :: FILE ) -> * mut :: c_char ;
4049
+
4050
+ pub fn memfd_create ( name : * const :: c_char , flags : :: c_uint ) -> :: c_int ;
4051
+ pub fn renameat2 (
4052
+ olddirfd : :: c_int ,
4053
+ oldpath : * const :: c_char ,
4054
+ newdirfd : :: c_int ,
4055
+ newpath : * const :: c_char ,
4056
+ flags : :: c_uint ,
4057
+ ) -> :: c_int ;
4058
+ pub fn statx (
4059
+ dirfd : :: c_int ,
4060
+ pathname : * const c_char ,
4061
+ flags : :: c_int ,
4062
+ mask : :: c_uint ,
4063
+ statxbuf : * mut statx ,
4064
+ ) -> :: c_int ;
4017
4065
}
4018
4066
4019
4067
cfg_if ! {
0 commit comments