File tree Expand file tree Collapse file tree 5 files changed +21
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 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) {
44524452 // kernel 6.2 minimum
44534453 "TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
44544454
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+
44554464 // FIXME(linux): Requires more recent kernel headers
44564465 | "IFLA_PARENT_DEV_NAME" // linux v5.13+
44574466 | "IFLA_PARENT_DEV_BUS_NAME" // linux v5.13+
Original file line number Diff line number Diff line change @@ -389,6 +389,9 @@ RTM_NEWCACHEREPORT
389389RTM_NEWSTATS
390390RUN_LVL
391391RWF_APPEND
392+ RWF_NOAPPEND
393+ RWF_ATOMIC
394+ RWF_DONTCACHE
392395RWF_DSYNC
393396RWF_HIPRI
394397RWF_NOWAIT
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ PR_SET_VMA
3232PR_SET_VMA_ANON_NAME
3333RUN_LVL
3434RWF_APPEND
35+ RWF_NOAPPEND
36+ RWF_ATOMIC
37+ RWF_DONTCACHE
3538RWF_DSYNC
3639RWF_HIPRI
3740RWF_NOWAIT
Original file line number Diff line number Diff line change @@ -954,6 +954,9 @@ pub const RWF_DSYNC: c_int = 0x00000002;
954954pub const RWF_SYNC : c_int = 0x00000004 ;
955955pub const RWF_NOWAIT : c_int = 0x00000008 ;
956956pub 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 ;
957960
958961// linux/rtnetlink.h
959962pub 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;
773773pub const RWF_SYNC : c_int = 0x00000004 ;
774774pub const RWF_NOWAIT : c_int = 0x00000008 ;
775775pub 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 ;
776779
777780pub const AF_IB : c_int = 27 ;
778781pub const AF_MPLS : c_int = 28 ;
You can’t perform that action at this time.
0 commit comments