Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2020 21:06:32 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r363432 - stable/12/lib/libc/gen
Message-ID:  <202007222106.06ML6WNp063972@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Wed Jul 22 21:06:32 2020
New Revision: 363432
URL: https://svnweb.freebsd.org/changeset/base/363432

Log:
  MFC r363228:
  
  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
  Sponsored by:	DARPA
  Differential Revision:	https://reviews.freebsd.org/D25659

Modified:
  stable/12/lib/libc/gen/tcsetattr.3
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libc/gen/tcsetattr.3
==============================================================================
--- stable/12/lib/libc/gen/tcsetattr.3	Wed Jul 22 20:15:21 2020	(r363431)
+++ stable/12/lib/libc/gen/tcsetattr.3	Wed Jul 22 21:06:32 2020	(r363432)
@@ -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 tp .
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007222106.06ML6WNp063972>