about summary refs log tree commit diff
path: root/bits
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-09-28 08:41:27 -0700
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-10-17 17:52:04 -0200
commit71d85045fdaefbd2dc1708ed6123ebdb880cb3ed (patch)
tree9d803a9b0d691ebc5def1ff953e347bc31bef4f5 /bits
parent3381be5cdef2e43949db12f66a5a3ec23b2c4c90 (diff)
downloadglibc-71d85045fdaefbd2dc1708ed6123ebdb880cb3ed.tar.gz
glibc-71d85045fdaefbd2dc1708ed6123ebdb880cb3ed.tar.xz
glibc-71d85045fdaefbd2dc1708ed6123ebdb880cb3ed.zip
posix: Add p{readv,writev}2 flags to generic uio-ext.h
	* bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
	defines.
Diffstat (limited to 'bits')
-rw-r--r--bits/uio-ext.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bits/uio-ext.h b/bits/uio-ext.h
index cd4039cb61..cba75a7563 100644
--- a/bits/uio-ext.h
+++ b/bits/uio-ext.h
@@ -23,6 +23,10 @@
 # error "Never include <bits/uio-ext.h> directly; use <sys/uio.h> instead."
 #endif
 
-/* This operating system does not extend sys/uio.h.  */
+/* Flags for preadv2/pwritev2.  */
+#define RWF_HIPRI	0x00000001 /* High priority request.  */
+#define RWF_DSYNC	0x00000002 /* per-IO O_DSYNC.  */
+#define RWF_SYNC	0x00000004 /* per-IO O_SYNC.  */
+#define RWF_NOWAIT	0x00000008 /* per-IO nonblocking mode.  */
 
 #endif /* sys/uio_ext.h */