From 94070f86c0c849c71ed2e7e2189bb4d1f7411a17 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 10 Jul 2017 15:53:32 -0300 Subject: posix: Add p{read,write}v2 RWF_NOWAIT flag (BZ#21738) Linux 4.12 (b745fafaf70c0a98a2e1e7ac8cb14542889ceb0e) adds a new p{read,write}v2 flag RWF_NOWAIT. This patch adds it for linux uio-ext.h header. Checked on x86_64-linux-gnu (on a 4.10 kernel). [BZ #21738] * manual/llio.texi (RWF_NOWAIT): New item. * misc/tst-preadvwritev2-common.c (do_test_with_invalid_flags): Add RWF_NOWAIT check. * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_NOWAIT): New flag. --- manual/llio.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'manual') diff --git a/manual/llio.texi b/manual/llio.texi index ba1f455..e72c53c 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -770,6 +770,10 @@ Per-IO synchronization as if the file was opened with @code{O_DSYNC} flag. @item RWF_SYNC Per-IO synchronization as if the file was opened with @code{O_SYNC} flag. + +@item RWF_NOWAIT +Use nonblocking mode for this operation; that is, this call to @code{preadv2} +will fail and set @code{errno} to @code{EAGAIN} if the operation would block. @end vtable When the source file is compiled with @code{_FILE_OFFSET_BITS == 64} the -- cgit v1.1