]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
cc_t.3type, speed_t.3type, tcflag_t.3type: document all together
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Mon, 29 Aug 2022 22:33:52 +0000 (00:33 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Mon, 29 Aug 2022 22:38:16 +0000 (00:38 +0200)
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.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3type/cc_t.3type
man3type/speed_t.3type [new file with mode: 0644]
man3type/tcflag_t.3type [new file with mode: 0644]

index 029cf945cf04912351b78fc6398b78d73d43922e..6414dbf201218b4d2b62fa5ea2766f2d789138d0 100644 (file)
@@ -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.
+.I cc_t
+is used for terminal special characters,
+.I speed_t
+for baud rates, and
+.I tcflag_t
+for 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 (file)
index 0000000..26cfd01
--- /dev/null
@@ -0,0 +1 @@
+.so man3type/cc_t.3type
diff --git a/man3type/tcflag_t.3type b/man3type/tcflag_t.3type
new file mode 100644 (file)
index 0000000..26cfd01
--- /dev/null
@@ -0,0 +1 @@
+.so man3type/cc_t.3type