Skip to content

Commit 0489c1b

Browse files
committed
linux: add new flags for pwritev2/preadv2
1 parent 181b043 commit 0489c1b

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

libc-test/build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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+

libc-test/semver/linux-gnu.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ RTM_NEWCACHEREPORT
389389
RTM_NEWSTATS
390390
RUN_LVL
391391
RWF_APPEND
392+
RWF_NOAPPEND
393+
RWF_ATOMIC
394+
RWF_DONTCACHE
392395
RWF_DSYNC
393396
RWF_HIPRI
394397
RWF_NOWAIT

libc-test/semver/linux-musl.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ PR_SET_VMA
3232
PR_SET_VMA_ANON_NAME
3333
RUN_LVL
3434
RWF_APPEND
35+
RWF_NOAPPEND
36+
RWF_ATOMIC
37+
RWF_DONTCACHE
3538
RWF_DSYNC
3639
RWF_HIPRI
3740
RWF_NOWAIT

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,9 @@ pub const RWF_DSYNC: c_int = 0x00000002;
954954
pub const RWF_SYNC: c_int = 0x00000004;
955955
pub const RWF_NOWAIT: c_int = 0x00000008;
956956
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;
957960

958961
// linux/rtnetlink.h
959962
pub const TCA_PAD: c_ushort = 9;

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,9 @@ pub const RWF_DSYNC: c_int = 0x00000002;
773773
pub const RWF_SYNC: c_int = 0x00000004;
774774
pub const RWF_NOWAIT: c_int = 0x00000008;
775775
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;
776779

777780
pub const AF_IB: c_int = 27;
778781
pub const AF_MPLS: c_int = 28;

0 commit comments

Comments
 (0)