tty_ioctl.4: Wording fixes for Frédéric Maria's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-05-01 21:44:37 +02:00
parent 1dcf15ddf4
commit 452f300b87
1 changed files with 17 additions and 10 deletions

View File

@ -371,11 +371,17 @@ Set the indicated modem bits.
.TP .TP
.BI "TIOCMIWAIT int " arg .BI "TIOCMIWAIT int " arg
Wait for any of the 4 modem bits (DCD, RI, DSR, CTS) to change. Wait for any of the 4 modem bits (DCD, RI, DSR, CTS) to change.
The mask is passed in arg for bits of interest (use |'ed The bits of interest are specified as a bit mask in
TIOCM_RNG/DSR/CD/CTS for masking). .IR arg ,
Caller should use by ORing together any of the bit values,
.BR TIOCM_RNG ,
.BR TIOCM_DSR ,
.BR TIOCM_CD ,
and
.BR TIOCM_CTS .
The caller should use
.B TIOCGICOUNT .B TIOCGICOUNT
to see which one it was. to see which bit has changed.
.LP .LP
The following bits are used by the above ioctls: The following bits are used by the above ioctls:
@ -394,13 +400,14 @@ TIOCM_DSR DSR (data set ready)
.fi .fi
.TP .TP
.BI "TIOCGICOUNT struct serial_icounter_struct *" argp .BI "TIOCGICOUNT struct serial_icounter_struct *" argp
Get counter of input serial line interrupts (DCD, RI, DSR, CTS). Get counts of input serial line interrupts (DCD, RI, DSR, CTS).
Write counters to the user passed The counts are written to the
.I argp .I serial_icounter_struct
serial_icounter_struct structure. structure pointed to by
.IR argp .
NB: both 1->0 and 0->1 transitions are counted except for Note: both 1->0 and 0->1 transitions are counted, except for
RI where only 0->1 is counted. RI, where only 0->1 transitions are counted.
.SS Marking a line as local .SS Marking a line as local
.TP .TP
.BI "TIOCGSOFTCAR int *" argp .BI "TIOCGSOFTCAR int *" argp