mirror of https://github.com/mkerrisk/man-pages
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>
This commit is contained in:
parent
95dedaa061
commit
aad1f0e890
|
@ -77,6 +77,35 @@ The following four ioctls are just like
|
||||||
.BR TCSETSW ,
|
.BR TCSETSW ,
|
||||||
.BR TCSETSF ,
|
.BR TCSETSF ,
|
||||||
except that they take a
|
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\ *"
|
.I "struct termio\ *"
|
||||||
instead of a
|
instead of a
|
||||||
.IR "struct termios\ *" .
|
.IR "struct termios\ *" .
|
||||||
|
|
Loading…
Reference in New Issue