From b091b880f963b5181ac09a202bff4e41a38dfbe0 Mon Sep 17 00:00:00 2001 From: Tilman Schmidt Date: Mon, 1 Mar 2010 10:45:47 +0100 Subject: ldattach: add --iflag command line option Add a command line option '-i' / '--iflag' for setting or clearing input flags on the serial device before attaching the line discipline. [kzak@redhat.com: - use generic functions for work with iflags table - add list of iflags to usage/help output - move iflags parsing to separate function] Impact: added functionality Signed-off-by: Tilman Schmidt Signed-off-by: Karel Zak --- sys-utils/ldattach.8 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys-utils/ldattach.8') diff --git a/sys-utils/ldattach.8 b/sys-utils/ldattach.8 index 3856999f0..f78ab34cb 100644 --- a/sys-utils/ldattach.8 +++ b/sys-utils/ldattach.8 @@ -1,6 +1,6 @@ .\" Copyright 2008 Tilman Schmidt (tilman@imap.cc) .\" May be distributed under the GNU General Public License version 2 or later -.TH LDATTACH 8 "14 January 2008" "Linux 2.6" "Linux Programmer's Manual" +.TH LDATTACH 8 "14 February 2010" "Linux 2.6" "Linux Programmer's Manual" .SH NAME ldattach \- attach a line discipline to a serial line .SH SYNOPSIS @@ -8,6 +8,8 @@ ldattach \- attach a line discipline to a serial line .RB [ \-dhV78neo12 ] .RB [ \-s .IR speed ] +.RB [ \-i +.IR iflag ] .I ldisc device .SH DESCRIPTION The @@ -122,6 +124,13 @@ Sets the number of stop bits of the serial line to one. .TP \fB-2\fP | \fB--twostopbits\fP Sets the number of stop bits of the serial line to two. +.TP +\fB-i\fP \fIvalue\fP | \fB--iflag\fP [\fB-\fP]\fIvalue\fP{,...} +Sets the specified bits in the c_iflag word of the serial line. +\fIValue\fP may be a number or a symbolic name. +If \fIvalue\fP is prefixed by a minus sign, clear the specified bits instead. +Several comma separated \fIvalue\fPs may be given in order to +set and clear multiple bits. .SH "SEE ALSO" .BR inputattach (1), .BR ttys (4) -- cgit v1.2.3-55-g7522