diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-09-28 08:41:27 -0700 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-10-17 17:52:04 -0200 |
commit | 71d85045fdaefbd2dc1708ed6123ebdb880cb3ed (patch) | |
tree | 9d803a9b0d691ebc5def1ff953e347bc31bef4f5 | |
parent | 3381be5cdef2e43949db12f66a5a3ec23b2c4c90 (diff) | |
download | glibc-71d85045fdaefbd2dc1708ed6123ebdb880cb3ed.tar glibc-71d85045fdaefbd2dc1708ed6123ebdb880cb3ed.tar.gz glibc-71d85045fdaefbd2dc1708ed6123ebdb880cb3ed.tar.bz2 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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | bits/uio-ext.h | 6 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/uio-ext.h | 3 |
3 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org> + + * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New + defines. + 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com> [BZ #22159] 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 */ diff --git a/sysdeps/unix/sysv/linux/bits/uio-ext.h b/sysdeps/unix/sysv/linux/bits/uio-ext.h index 751fc4917d..f931fd112a 100644 --- a/sysdeps/unix/sysv/linux/bits/uio-ext.h +++ b/sysdeps/unix/sysv/linux/bits/uio-ext.h @@ -41,8 +41,7 @@ extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, unsigned long int __flags) __THROW; - -/* Flags for preadv2/pwritev2: */ +/* 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. */ |