File tree Expand file tree Collapse file tree 6 files changed +27
-15
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 6 files changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -4542,6 +4542,15 @@ fn test_linux(target: &str) {
4542
4542
// kernel 6.2 minimum
4543
4543
"TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
4544
4544
4545
+ // kernel 6.9 minimum
4546
+ "RWF_NOAPPEND" => true ,
4547
+
4548
+ // kernel 6.11 minimum
4549
+ "RWF_ATOMIC" => true ,
4550
+
4551
+ // kernel 6.14 minimum
4552
+ "RWF_DONTCACHE" => true ,
4553
+
4545
4554
// FIXME(linux): Requires more recent kernel headers
4546
4555
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
4547
4556
| "IFLA_PARENT_DEV_BUS_NAME" // linux v5.13+
Original file line number Diff line number Diff line change @@ -389,8 +389,11 @@ RTM_NEWCACHEREPORT
389
389
RTM_NEWSTATS
390
390
RUN_LVL
391
391
RWF_APPEND
392
+ RWF_ATOMIC
393
+ RWF_DONTCACHE
392
394
RWF_DSYNC
393
395
RWF_HIPRI
396
+ RWF_NOAPPEND
394
397
RWF_NOWAIT
395
398
RWF_SYNC
396
399
SECURITYFS_MAGIC
Original file line number Diff line number Diff line change @@ -32,8 +32,11 @@ PR_SET_VMA
32
32
PR_SET_VMA_ANON_NAME
33
33
RUN_LVL
34
34
RWF_APPEND
35
+ RWF_ATOMIC
36
+ RWF_DONTCACHE
35
37
RWF_DSYNC
36
38
RWF_HIPRI
39
+ RWF_NOAPPEND
37
40
RWF_NOWAIT
38
41
RWF_SYNC
39
42
USER_PROCESS
Original file line number Diff line number Diff line change @@ -942,15 +942,6 @@ pub const PTRACE_SYSCALL_INFO_SECCOMP: crate::__u8 = 3;
942
942
pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG : crate :: __u8 = 0x4210 ;
943
943
pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG : crate :: __u8 = 0x4211 ;
944
944
945
- // linux/fs.h
946
-
947
- // Flags for preadv2/pwritev2
948
- pub const RWF_HIPRI : c_int = 0x00000001 ;
949
- pub const RWF_DSYNC : c_int = 0x00000002 ;
950
- pub const RWF_SYNC : c_int = 0x00000004 ;
951
- pub const RWF_NOWAIT : c_int = 0x00000008 ;
952
- pub const RWF_APPEND : c_int = 0x00000010 ;
953
-
954
945
// linux/rtnetlink.h
955
946
pub const TCA_PAD : c_ushort = 9 ;
956
947
pub const TCA_DUMP_INVISIBLE : c_ushort = 10 ;
Original file line number Diff line number Diff line change @@ -2897,6 +2897,18 @@ pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
2897
2897
pub const IFA_F_MCAUTOJOIN : u32 = 0x400 ;
2898
2898
pub const IFA_F_STABLE_PRIVACY : u32 = 0x800 ;
2899
2899
2900
+ // linux/fs.h
2901
+
2902
+ // Flags for preadv2/pwritev2
2903
+ pub const RWF_HIPRI : c_int = 0x00000001 ;
2904
+ pub const RWF_DSYNC : c_int = 0x00000002 ;
2905
+ pub const RWF_SYNC : c_int = 0x00000004 ;
2906
+ pub const RWF_NOWAIT : c_int = 0x00000008 ;
2907
+ pub const RWF_APPEND : c_int = 0x00000010 ;
2908
+ pub const RWF_NOAPPEND : c_int = 0x00000020 ;
2909
+ pub const RWF_ATOMIC : c_int = 0x00000040 ;
2910
+ pub const RWF_DONTCACHE : c_int = 0x00000080 ;
2911
+
2900
2912
// linux/if_link.h
2901
2913
pub const IFLA_UNSPEC : c_ushort = 0 ;
2902
2914
pub const IFLA_ADDRESS : c_ushort = 1 ;
Original file line number Diff line number Diff line change @@ -747,12 +747,6 @@ pub const PTRACE_PEEKSIGINFO: c_int = 0x4209;
747
747
pub const PTRACE_GETSIGMASK : c_uint = 0x420a ;
748
748
pub const PTRACE_SETSIGMASK : c_uint = 0x420b ;
749
749
750
- pub const RWF_HIPRI : c_int = 0x00000001 ;
751
- pub const RWF_DSYNC : c_int = 0x00000002 ;
752
- pub const RWF_SYNC : c_int = 0x00000004 ;
753
- pub const RWF_NOWAIT : c_int = 0x00000008 ;
754
- pub const RWF_APPEND : c_int = 0x00000010 ;
755
-
756
750
pub const AF_IB : c_int = 27 ;
757
751
pub const AF_MPLS : c_int = 28 ;
758
752
pub const AF_NFC : c_int = 39 ;
You can’t perform that action at this time.
0 commit comments