From 452f300b87318316ee5b3ff823bb85df3eaf16fc Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 1 May 2015 21:44:37 +0200 Subject: [PATCH] =?UTF-8?q?tty=5Fioctl.4:=20Wording=20fixes=20for=20Fr?= =?UTF-8?q?=C3=A9d=C3=A9ric=20Maria's=20patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Kerrisk --- man4/tty_ioctl.4 | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/man4/tty_ioctl.4 b/man4/tty_ioctl.4 index 2842c9f02..9879ed696 100644 --- a/man4/tty_ioctl.4 +++ b/man4/tty_ioctl.4 @@ -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