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 @@ -4468,6 +4468,15 @@ fn test_linux(target: &str) {
4468
4468
// kernel 6.2 minimum
4469
4469
"TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
4470
4470
4471
+ // kernel 6.9 minimum
4472
+ "RWF_NOAPPEND" => true ,
4473
+
4474
+ // kernel 6.11 minimum
4475
+ "RWF_ATOMIC" => true ,
4476
+
4477
+ // kernel 6.14 minimum
4478
+ "RWF_DONTCACHE" => true ,
4479
+
4471
4480
// FIXME(linux): Requires more recent kernel headers
4472
4481
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
4473
4482
| "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 @@ -946,15 +946,6 @@ pub const PTRACE_SYSCALL_INFO_SECCOMP: crate::__u8 = 3;
946
946
pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG : crate :: __u8 = 0x4210 ;
947
947
pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG : crate :: __u8 = 0x4211 ;
948
948
949
- // linux/fs.h
950
-
951
- // Flags for preadv2/pwritev2
952
- pub const RWF_HIPRI : c_int = 0x00000001 ;
953
- pub const RWF_DSYNC : c_int = 0x00000002 ;
954
- pub const RWF_SYNC : c_int = 0x00000004 ;
955
- pub const RWF_NOWAIT : c_int = 0x00000008 ;
956
- pub const RWF_APPEND : c_int = 0x00000010 ;
957
-
958
949
// linux/rtnetlink.h
959
950
pub const TCA_PAD : c_ushort = 9 ;
960
951
pub const TCA_DUMP_INVISIBLE : c_ushort = 10 ;
Original file line number Diff line number Diff line change @@ -2858,6 +2858,18 @@ pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
2858
2858
pub const IFA_F_MCAUTOJOIN : u32 = 0x400 ;
2859
2859
pub const IFA_F_STABLE_PRIVACY : u32 = 0x800 ;
2860
2860
2861
+ // linux/fs.h
2862
+
2863
+ // Flags for preadv2/pwritev2
2864
+ pub const RWF_HIPRI : c_int = 0x00000001 ;
2865
+ pub const RWF_DSYNC : c_int = 0x00000002 ;
2866
+ pub const RWF_SYNC : c_int = 0x00000004 ;
2867
+ pub const RWF_NOWAIT : c_int = 0x00000008 ;
2868
+ pub const RWF_APPEND : c_int = 0x00000010 ;
2869
+ pub const RWF_NOAPPEND : c_int = 0x00000020 ;
2870
+ pub const RWF_ATOMIC : c_int = 0x00000040 ;
2871
+ pub const RWF_DONTCACHE : c_int = 0x00000080 ;
2872
+
2861
2873
// linux/if_link.h
2862
2874
pub const IFLA_UNSPEC : c_ushort = 0 ;
2863
2875
pub const IFLA_ADDRESS : c_ushort = 1 ;
Original file line number Diff line number Diff line change @@ -749,12 +749,6 @@ pub const PTRACE_PEEKSIGINFO: c_int = 0x4209;
749
749
pub const PTRACE_GETSIGMASK : c_uint = 0x420a ;
750
750
pub const PTRACE_SETSIGMASK : c_uint = 0x420b ;
751
751
752
- pub const RWF_HIPRI : c_int = 0x00000001 ;
753
- pub const RWF_DSYNC : c_int = 0x00000002 ;
754
- pub const RWF_SYNC : c_int = 0x00000004 ;
755
- pub const RWF_NOWAIT : c_int = 0x00000008 ;
756
- pub const RWF_APPEND : c_int = 0x00000010 ;
757
-
758
752
pub const AF_IB : c_int = 27 ;
759
753
pub const AF_MPLS : c_int = 28 ;
760
754
pub const AF_NFC : c_int = 39 ;
You can’t perform that action at this time.
0 commit comments