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