]> git.ipfire.org Git - thirdparty/glibc.git/commit
misc: Add support for Linux uio.h RWF_NOAPPEND flag
authorStafford Horne <shorne@gmail.com>
Wed, 3 Apr 2024 05:40:37 +0000 (06:40 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 20 Jul 2024 17:30:25 +0000 (19:30 +0200)
commitf908fa07c6cde14f1e6247476776c2bf3e901e91
tree668aa8aae00f5119761b7d2831b378103a3133fd
parentb0471d1605cb8b1dbc677e5835277e6c52d15a71
misc: Add support for Linux uio.h RWF_NOAPPEND flag

In Linux 6.9 a new flag is added to allow for Per-io operations to
disable append mode even if a file was opened with the flag O_APPEND.
This is done with the new RWF_NOAPPEND flag.

This caused two test failures as these tests expected the flag 0x00000020
to be unused.  Adding the flag definition now fixes these tests on Linux
6.9 (v6.9-rc1).

  FAIL: misc/tst-preadvwritev2
  FAIL: misc/tst-preadvwritev64v2

This patch adds the flag, adjusts the test and adds details to
documentation.

Link: https://lore.kernel.org/all/20200831153207.GO3265@brightrain.aerifal.cx/
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 3db9d208dd5f30b12900989c6d2214782b8e2011)
manual/llio.texi
misc/tst-preadvwritev2-common.c
sysdeps/unix/sysv/linux/bits/uio-ext.h