[PATCH 1/1] Add in *info* documentation (Low-Level Terminal Interface > Terminal Modes > Control Modes) *CMSPAR* constant description; *CMSPAR* allows to use stick parity (mark/space) instead of odd/even.
Nesterov Maksim
maxgoonfuture@gmail.com
Sat Jul 18 14:29:21 GMT 2026
---
manual/terminal.texi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/manual/terminal.texi b/manual/terminal.texi
index c23fc10b5c..1aea2acd19 100644
--- a/manual/terminal.texi
+++ b/manual/terminal.texi
@@ -796,6 +796,14 @@ This bit is only useful if @code{PARENB} is set. If @code{PARODD} is set,
odd parity is used, otherwise even parity is used.
@end deftypevr
+@deftypevr Macro tcflag_t CMSPAR
+@standards{not in POSIX}
+This bit is only useful if @code{PARENB} is set. If @code{CMSPAR} is set,
+stick parity (mark/space) is used instead of odd/even. If @code{PARODD} is
+set, mark parity (parity bit is always 1) is used, otherwise space parity
+is used (parity bit is always 0).
+@end deftypevr
+
The control mode flags also includes a field for the number of bits per
character. You can use the @code{CSIZE} macro as a mask to extract the
value, like this: @code{settings.c_cflag & CSIZE}.
--
2.55.0
More information about the Libc-alpha
mailing list