aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-10-08 15:45:29 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-10-10 10:28:01 -0300
commit5ffc903216901914dc2ad9715088d3fe9d1ef205 (patch)
treeef919d5898dec5e09c3c9e2f93de73a772a19c85 /misc
parentfc650bfd71081d26c1015d299827fb58a23a6b02 (diff)
downloadglibc-5ffc903216901914dc2ad9715088d3fe9d1ef205.zip
glibc-5ffc903216901914dc2ad9715088d3fe9d1ef205.tar.gz
glibc-5ffc903216901914dc2ad9715088d3fe9d1ef205.tar.bz2
misc: Add support for Linux uio.h RWF_ATOMIC flag
Linux 6.11 adds the new flag for pwritev2 (commit c34fc6f26ab86d03a2d47446f42b6cd492dfdc56). Checked on x86_64-linux-gnu on 6.11 kernel. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/tst-preadvwritev2-common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
index 8e04ff7..4556421 100644
--- a/misc/tst-preadvwritev2-common.c
+++ b/misc/tst-preadvwritev2-common.c
@@ -37,8 +37,11 @@
#ifndef RWF_NOAPPEND
# define RWF_NOAPPEND 0
#endif
+#ifndef RWF_ATOMIC
+# define RWF_ATOMIC 0
+#endif
#define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT \
- | RWF_APPEND | RWF_NOAPPEND)
+ | RWF_APPEND | RWF_NOAPPEND | RWF_ATOMIC)
/* Generic uio_lim.h does not define IOV_MAX. */
#ifndef IOV_MAX