File tree 5 files changed +21
-0
lines changed
src/unix/linux_like/linux 5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -4452,6 +4452,15 @@ fn test_linux(target: &str) {
4452
4452
// kernel 6.2 minimum
4453
4453
"TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
4454
4454
4455
+ // kernel 6.9 minimum
4456
+ "RWF_NOAPPEND" => true ,
4457
+
4458
+ // kernel 6.11 minimum
4459
+ "RWF_ATOMIC" => true ,
4460
+
4461
+ // kernel 6.14 minimum
4462
+ "RWF_DONTCACHE" => true ,
4463
+
4455
4464
// FIXME(linux): Requires more recent kernel headers
4456
4465
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
4457
4466
| "IFLA_PARENT_DEV_BUS_NAME" // linux v5.13+
Original file line number Diff line number Diff line change @@ -389,6 +389,9 @@ RTM_NEWCACHEREPORT
389
389
RTM_NEWSTATS
390
390
RUN_LVL
391
391
RWF_APPEND
392
+ RWF_NOAPPEND
393
+ RWF_ATOMIC
394
+ RWF_DONTCACHE
392
395
RWF_DSYNC
393
396
RWF_HIPRI
394
397
RWF_NOWAIT
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ PR_SET_VMA
32
32
PR_SET_VMA_ANON_NAME
33
33
RUN_LVL
34
34
RWF_APPEND
35
+ RWF_NOAPPEND
36
+ RWF_ATOMIC
37
+ RWF_DONTCACHE
35
38
RWF_DSYNC
36
39
RWF_HIPRI
37
40
RWF_NOWAIT
Original file line number Diff line number Diff line change @@ -954,6 +954,9 @@ pub const RWF_DSYNC: c_int = 0x00000002;
954
954
pub const RWF_SYNC : c_int = 0x00000004 ;
955
955
pub const RWF_NOWAIT : c_int = 0x00000008 ;
956
956
pub const RWF_APPEND : c_int = 0x00000010 ;
957
+ pub const RWF_NOAPPEND : c_int = 0x00000020 ;
958
+ pub const RWF_ATOMIC : c_int = 0x00000040 ;
959
+ pub const RWF_DONTCACHE : c_int = 0x00000080 ;
957
960
958
961
// linux/rtnetlink.h
959
962
pub const TCA_PAD : c_ushort = 9 ;
Original file line number Diff line number Diff line change @@ -773,6 +773,9 @@ pub const RWF_DSYNC: c_int = 0x00000002;
773
773
pub const RWF_SYNC : c_int = 0x00000004 ;
774
774
pub const RWF_NOWAIT : c_int = 0x00000008 ;
775
775
pub const RWF_APPEND : c_int = 0x00000010 ;
776
+ pub const RWF_NOAPPEND : c_int = 0x00000020 ;
777
+ pub const RWF_ATOMIC : c_int = 0x00000040 ;
778
+ pub const RWF_DONTCACHE : c_int = 0x00000080 ;
776
779
777
780
pub const AF_IB : c_int = 27 ;
778
781
pub const AF_MPLS : c_int = 28 ;
You can’t perform that action at this time.
0 commit comments