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

Adhemerval Zanella via Glibc-cvs <[email protected]> Fri, 17 Jul 2026 14:23:39 +0000 (GMT)
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a29c483d3cf3155a32fb452330d06041a96f056f

commit a29c483d3cf3155a32fb452330d06041a96f056f
Author: Adhemerval Zanella <[email protected]>
Date:   Mon Jul 6 11:18:36 2026 -0300

    Add RWF_NOSIGNAL from Linux 6.18 to bits/uio-ext.h
    
    It was added by commit db2ab24a341ce89351a1bede37a96a3e3ce1726a.
    
    Reviewed-by: Carlos O'Donell <[email protected]>

Diff:
---
 misc/tst-preadvwritev2-common.c        | 5 ++++-
 sysdeps/unix/sysv/linux/bits/uio-ext.h | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c
index 00c5175324..47f03ca39d 100644
--- a/misc/tst-preadvwritev2-common.c
+++ b/misc/tst-preadvwritev2-common.c
@@ -43,9 +43,12 @@
 #ifndef RWF_DONTCACHE
 # define RWF_DONTCACHE 0
 #endif
+#ifndef RWF_NOSIGNAL
+# define RWF_NOSIGNAL 0
+#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 49c8734228..5c842b25c9 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