All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] cc_t.3type, speed_t.3type, tcflag_t.3type: document all together
@ 2022-08-29 21:46 наб
  2022-08-29 21:46 ` [PATCH 2/2] termios.3: mention the integer types in SEE ALSO наб
  2022-08-29 22:16 ` [PATCH 1/2] cc_t.3type, speed_t.3type, tcflag_t.3type: document all together Alejandro Colomar
  0 siblings, 2 replies; 7+ messages in thread
From: наб @ 2022-08-29 21:46 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]

speed_t and tcflag_t were both unmentioned in general

Issue 7 has this to say:
  The <termios.h> header shall define the following data types through typedef:
    cc_t     Used for terminal special characters.
    speed_t  Used for terminal baud rates.
    tcflag_t Used for terminal modes.
  The above types shall be all unsigned integer types.
---
 man3type/cc_t.3type     | 14 +++++++++++---
 man3type/speed_t.3type  |  1 +
 man3type/tcflag_t.3type |  1 +
 3 files changed, 13 insertions(+), 3 deletions(-)
 create mode 100644 man3type/speed_t.3type
 create mode 100644 man3type/tcflag_t.3type

diff --git a/man3type/cc_t.3type b/man3type/cc_t.3type
index 029cf945c..0afdd2cd0 100644
--- a/man3type/cc_t.3type
+++ b/man3type/cc_t.3type
@@ -6,7 +6,7 @@
 .\"
 .TH CC_T 3type 2021-11-02 "Linux man-pages (unreleased)"
 .SH NAME
-cc_t \- terminal special characters
+cc_t, speed_t, tcflag_t \- terminal special characters, baud rates, modes
 .SH LIBRARY
 Standard C library
 .RI ( libc )
@@ -15,10 +15,18 @@ Standard C library
 .B #include <termios.h>
 .PP
 .BR typedef " /* ... */ " cc_t;
+.BR typedef " /* ... */ " speed_t;
+.BR typedef " /* ... */ " tcflag_t;
 .fi
 .SH DESCRIPTION
-Used for terminal special characters.
-It is an unsigned integer type.
+.B cc_t
+is used for terminal special characters,
+.B speed_t
+\(em baud rates, and
+.B tcflag_t
+\(em modes.
+.PP
+All are unsigned integer types.
 .SH STANDARDS
 POSIX.1-2001 and later.
 .SH SEE ALSO
diff --git a/man3type/speed_t.3type b/man3type/speed_t.3type
new file mode 100644
index 000000000..26cfd0171
--- /dev/null
+++ b/man3type/speed_t.3type
@@ -0,0 +1 @@
+.so man3type/cc_t.3type
diff --git a/man3type/tcflag_t.3type b/man3type/tcflag_t.3type
new file mode 100644
index 000000000..26cfd0171
--- /dev/null
+++ b/man3type/tcflag_t.3type
@@ -0,0 +1 @@
+.so man3type/cc_t.3type
-- 
2.30.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2022-08-29 22:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29 21:46 [PATCH 1/2] cc_t.3type, speed_t.3type, tcflag_t.3type: document all together наб
2022-08-29 21:46 ` [PATCH 2/2] termios.3: mention the integer types in SEE ALSO наб
2022-08-29 22:16 ` [PATCH 1/2] cc_t.3type, speed_t.3type, tcflag_t.3type: document all together Alejandro Colomar
2022-08-29 22:33   ` наб
2022-08-29 22:36     ` Alejandro Colomar
2022-08-29 22:48       ` наб
2022-08-29 22:54         ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.