aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-08 10:41:23 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-09 02:32:37 +0200
commitaad1f0e89098b35f6a35fb92556dadc622f0d00c (patch)
tree8bbaa3a492ef20480fcdab63212a61b6c659ab4d /man2
parent95dedaa0614915ac91a7175359f17fa8bb54614c (diff)
downloadman-pages-aad1f0e89098b35f6a35fb92556dadc622f0d00c.tar.gz
ioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2
Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/ioctl_tty.229
1 files changed, 29 insertions, 0 deletions
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index de6d1c839f..519e4606fe 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -77,6 +77,35 @@ The following four ioctls are just like
.BR TCSETSW ,
.BR TCSETSF ,
except that they take a
+.I "struct termios2\ *"
+instead of a
+.IR "struct termios\ *" .
+If struct member
+.B c_cflag
+contains
+.B BOTHER
+then baudrate is stored in struct members
+.B c_ispeed
+and
+.B c_ospeed
+as integer values.
+These ioctls are not supported on all architectures.
+.RS
+.TS
+lb l.
+TCGETS2 \fBstruct termios2 *\fPargp
+TCSETS2 \fBconst struct termios2 *\fPargp
+TCSETSW2 \fBconst struct termios2 *\fPargp
+TCSETSF2 \fBconst struct termios2 *\fPargp
+.TE
+.RE
+.PP
+The following four ioctls are just like
+.BR TCGETS ,
+.BR TCSETS ,
+.BR TCSETSW ,
+.BR TCSETSF ,
+except that they take a
.I "struct termio\ *"
instead of a
.IR "struct termios\ *" .