* [PATCH] posix: Add p{readv,writev}2 flags to generic uio-ext.h
@ 2017-10-11 20:39 Adhemerval Zanella
2017-10-17 13:43 ` Adhemerval Zanella
0 siblings, 1 reply; 2+ messages in thread
From: Adhemerval Zanella @ 2017-10-11 20:39 UTC (permalink / raw)
To: libc-alpha
This patch follows a suggestion from Florian to add the flags on generic
API [1].
Checked on x86_64-linux-gnu.
* bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
defines.
* sysdeps/unix/sysv/linux/bits/uio-ext.h: Fix comment format.
[1] https://sourceware.org/ml/libc-alpha/2017-09/msg00159.html
---
ChangeLog | 5 +++++
bits/uio-ext.h | 6 +++++-
sysdeps/unix/sysv/linux/bits/uio-ext.h | 3 +--
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/bits/uio-ext.h b/bits/uio-ext.h
index cd4039c..cba75a7 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 751fc49..f931fd1 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. */
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] posix: Add p{readv,writev}2 flags to generic uio-ext.h
2017-10-11 20:39 [PATCH] posix: Add p{readv,writev}2 flags to generic uio-ext.h Adhemerval Zanella
@ 2017-10-17 13:43 ` Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2017-10-17 13:43 UTC (permalink / raw)
To: libc-alpha
I will commit this shortly if no one opposes it.
On 11/10/2017 17:39, Adhemerval Zanella wrote:
> This patch follows a suggestion from Florian to add the flags on generic
> API [1].
>
> Checked on x86_64-linux-gnu.
>
> * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
> defines.
> * sysdeps/unix/sysv/linux/bits/uio-ext.h: Fix comment format.
>
> [1] https://sourceware.org/ml/libc-alpha/2017-09/msg00159.html
>
> ---
> ChangeLog | 5 +++++
> bits/uio-ext.h | 6 +++++-
> sysdeps/unix/sysv/linux/bits/uio-ext.h | 3 +--
> 3 files changed, 11 insertions(+), 3 deletions(-)
>
> diff --git a/bits/uio-ext.h b/bits/uio-ext.h
> index cd4039c..cba75a7 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 751fc49..f931fd1 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. */
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-17 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11 20:39 [PATCH] posix: Add p{readv,writev}2 flags to generic uio-ext.h Adhemerval Zanella
2017-10-17 13:43 ` Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).