public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h
@ 2022-10-06 16:30 Joseph Myers
  2022-10-12 16:08 ` Joseph Myers
  2022-10-24 12:04 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Joseph Myers @ 2022-10-06 16:30 UTC (permalink / raw)
  To: libc-alpha

Linux 6.0 adds a constant ADDRB, a termios c_cflag bit, to its
include/uapi/asm-generic/termbits-common.h.

Add it accordingly to glibc's bits/termios-c_cflag.h headers.  As
other constants in these headers are generally in octal, I converted
the value to octal to match.  As ADDRB isn't in a POSIX-reserved
namespace, I made it conditional on __USE_MISC.

Tested for x86_64.

diff --git a/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h b/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h
index d2d27cc6b3..c683aa47b0 100644
--- a/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h
+++ b/sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h
@@ -33,3 +33,7 @@
 #define HUPCL	00040000
 
 #define CLOCAL	00100000
+
+#ifdef __USE_MISC
+# define ADDRB 04000000000
+#endif
diff --git a/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h b/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h
index 677263911e..f5acd58088 100644
--- a/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h
+++ b/sysdeps/unix/sysv/linux/bits/termios-c_cflag.h
@@ -32,3 +32,7 @@
 #define PARODD	0001000
 #define HUPCL	0002000
 #define CLOCAL	0004000
+
+#ifdef __USE_MISC
+# define ADDRB 04000000000
+#endif
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h b/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h
index fa4bdea9be..8aac22369a 100644
--- a/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h
@@ -33,3 +33,7 @@
 #define HUPCL	00040000
 
 #define CLOCAL	00100000
+
+#ifdef __USE_MISC
+# define ADDRB 04000000000
+#endif

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h
  2022-10-06 16:30 Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h Joseph Myers
@ 2022-10-12 16:08 ` Joseph Myers
  2022-10-21 21:14   ` Ping^2 " Joseph Myers
  2022-10-24 12:04 ` Andreas Schwab
  1 sibling, 1 reply; 4+ messages in thread
From: Joseph Myers @ 2022-10-12 16:08 UTC (permalink / raw)
  To: libc-alpha

Ping.  This patch 
<https://sourceware.org/pipermail/libc-alpha/2022-October/142547.html> is 
pending review.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Ping^2 Re: Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h
  2022-10-12 16:08 ` Joseph Myers
@ 2022-10-21 21:14   ` Joseph Myers
  0 siblings, 0 replies; 4+ messages in thread
From: Joseph Myers @ 2022-10-21 21:14 UTC (permalink / raw)
  To: libc-alpha

Ping^2.  This patch 
<https://sourceware.org/pipermail/libc-alpha/2022-October/142547.html> is 
still pending review.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h
  2022-10-06 16:30 Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h Joseph Myers
  2022-10-12 16:08 ` Joseph Myers
@ 2022-10-24 12:04 ` Andreas Schwab
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2022-10-24 12:04 UTC (permalink / raw)
  To: Joseph Myers; +Cc: libc-alpha

On Okt 06 2022, Joseph Myers wrote:

> Linux 6.0 adds a constant ADDRB, a termios c_cflag bit, to its
> include/uapi/asm-generic/termbits-common.h.
>
> Add it accordingly to glibc's bits/termios-c_cflag.h headers.  As
> other constants in these headers are generally in octal, I converted
> the value to octal to match.  As ADDRB isn't in a POSIX-reserved
> namespace, I made it conditional on __USE_MISC.

Ok.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-24 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06 16:30 Add ADDRB from Linux 6.0 to bits/termios-c_cflag.h Joseph Myers
2022-10-12 16:08 ` Joseph Myers
2022-10-21 21:14   ` Ping^2 " Joseph Myers
2022-10-24 12:04 ` Andreas Schwab

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).