[PATCH v2] Add RWF_NOSIGNAL from Linux 6.18 to bits/uio-ext.h

Adhemerval Zanella <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <[email protected]>
It was added by commit db2ab24a341ce89351a1bede37a96a3e3ce1726a.
---
 misc/tst-preadvwritev2-common.c        | 2 +-
 sysdeps/unix/sysv/linux/bits/uio-ext.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
index 00c51753247..a7705c06e0e 100644
--- a/misc/tst-preadvwritev2-common.c
+++ b/misc/tst-preadvwritev2-common.c
@@ -45,7 +45,7 @@
 #endif
 #define RWF_SUPPORTED	(RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT \
 			 | RWF_APPEND | RWF_NOAPPEND | RWF_ATOMIC \
-			 | RWF_DONTCACHE)
+			 | RWF_DONTCACHE | RWF_NOSIGNAL)
 
 /* Generic uio_lim.h does not define IOV_MAX.  */
 #ifndef IOV_MAX
diff --git a/sysdeps/unix/sysv/linux/bits/uio-ext.h b/sysdeps/unix/sysv/linux/bits/uio-ext.h
index 49c8734228c..5c842b25c92 100644
--- a/sysdeps/unix/sysv/linux/bits/uio-ext.h
+++ b/sysdeps/unix/sysv/linux/bits/uio-ext.h
@@ -51,6 +51,7 @@ extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec,
 #define RWF_ATOMIC	0x00000040 /* Write is to be issued with torn-write
 				      prevention.  */
 #define RWF_DONTCACHE	0x00000080 /* Uncached buffered IO.  */
+#define RWF_NOSIGNAL	0x00000100 /* Do not generate SIGPIPE on error.  */
 
 __END_DECLS
 
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.