aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-04-03 12:19:20 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-04-03 12:19:29 -0700
commitf2652643d7234c08205b75f527191c2e2b35251f (patch)
tree8591507dfe62c4403bbe6613767c82b2cbf5d497 /misc
parentd2dc5467c67bc8625a4fc8f285b6a5443bf43df4 (diff)
downloadglibc-f2652643d7234c08205b75f527191c2e2b35251f.zip
glibc-f2652643d7234c08205b75f527191c2e2b35251f.tar.gz
glibc-f2652643d7234c08205b75f527191c2e2b35251f.tar.bz2
Update RWF_SUPPORTED for Linux kernel 4.16 [BZ #22947]
Add RWF_APPEND to RWF_SUPPORTED to support Linux kernel 4.16. [BZ #22947] * bits/uio-ext.h (RWF_APPEND): New. * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise. * manual/llio.texi: Document RWF_APPEND. * misc/tst-preadvwritev2-common.c (RWF_APPEND): New. (RWF_SUPPORTED): Add RWF_APPEND.
Diffstat (limited to 'misc')
-rw-r--r--misc/tst-preadvwritev2-common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
index 89fd0a3..f889a21 100644
--- a/misc/tst-preadvwritev2-common.c
+++ b/misc/tst-preadvwritev2-common.c
@@ -34,7 +34,11 @@ do_test_with_invalid_flags (void)
#ifndef RWF_NOWAIT
# define RWF_NOWAIT 0
#endif
-#define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT)
+#ifndef RWF_APPEND
+# define RWF_APPEND 0
+#endif
+#define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT \
+ | RWF_APPEND)
/* Set the next bit from the mask of all supported flags. */
int invalid_flag = RWF_SUPPORTED != 0 ? __builtin_clz (RWF_SUPPORTED) : 2;
invalid_flag = 0x1 << ((sizeof (int) * CHAR_BIT) - invalid_flag);