Don't imply that all action values can be OR'd.

This is neither POSIX compliant nor what the implementation does.
This could be allowed by changing the value of TCSAFLUSH from 2 to 3,
but that doesn't seem worthwhile after 25+ years.

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D25659
This commit is contained in:
Brooks Davis 2020-07-15 17:05:37 +00:00
parent c123ab20ec
commit 7a61fe3a30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363228

View File

@ -28,7 +28,7 @@
.\" @(#)tcsetattr.3 8.3 (Berkeley) 1/2/94
.\" $FreeBSD$
.\"
.Dd January 2, 1994
.Dd July 15, 2020
.Dt TCSETATTR 3
.Os
.Sh NAME
@ -221,8 +221,7 @@ termios structure referenced by
.Fa t .
The
.Fa action
argument is created by
.Em or Ns 'ing
argument is one of
the following values, as specified in the include file
.In termios.h .
.Bl -tag -width "TCSADRAIN"
@ -240,18 +239,20 @@ The change occurs after all output written to
.Fa fd
has been transmitted to the terminal.
Additionally, any input that has been received but not read is discarded.
.It Fa TCSASOFT
If this value is
.Em or Ns 'ed
into the
.El
.Pp
The
.Fa action
value, the values of the
may be modified by
.Em or Ns 'ing
in
.Fa TCSASOFT
which causes the values of the
.Va c_cflag ,
.Va c_ispeed ,
and
.Va c_ospeed
fields are ignored.
.El
fields to be ignored.
.Pp
The 0 baud rate is used to terminate the connection.
If 0 is specified as the output speed to the function