Loading...
gen/tcsetattr.3 Libc-1725.40.4 Libc-320
--- Libc/Libc-1725.40.4/gen/tcsetattr.3
+++ Libc/Libc-320/gen/tcsetattr.3
@@ -37,11 +37,11 @@
 .Os
 .Sh NAME
 .Nm cfgetispeed ,
+.Nm cfsetispeed ,
 .Nm cfgetospeed ,
-.Nm cfmakeraw ,
-.Nm cfsetispeed ,
 .Nm cfsetospeed ,
 .Nm cfsetspeed ,
+.Nm cfmakeraw ,
 .Nm tcgetattr ,
 .Nm tcsetattr
 .Nd manipulating the termios structure
@@ -50,47 +50,25 @@
 .Sh SYNOPSIS
 .In termios.h
 .Ft speed_t
-.Fo cfgetispeed
-.Fa "const struct termios *termios_p"
-.Fc
+.Fn cfgetispeed "const struct termios *t"
+.Ft int
+.Fn cfsetispeed "struct termios *t" "speed_t speed"
 .Ft speed_t
-.Fo cfgetospeed
-.Fa "const struct termios *termios_p"
-.Fc
+.Fn cfgetospeed "const struct termios *t"
+.Ft int
+.Fn cfsetospeed "struct termios *t" "speed_t speed"
+.Ft int
+.Fn cfsetspeed "struct termios *t" "speed_t speed"
 .Ft void
-.Fo cfmakeraw
-.Fa "struct termios *termios_p"
-.Fc
-.Ft int
-.Fo cfsetispeed
-.Fa "struct termios *termios_p"
-.Fa "speed_t speed"
-.Fc
-.Ft int
-.Fo cfsetospeed
-.Fa "struct termios *termios_p"
-.Fa "speed_t speed"
-.Fc
-.Ft int
-.Fo cfsetspeed
-.Fa "struct termios *termios_p"
-.Fa "speed_t speed"
-.Fc
-.Ft int
-.Fo tcgetattr
-.Fa "int fildes"
-.Fa "struct termios *termios_p"
-.Fc
-.Ft int
-.Fo tcsetattr
-.Fa "int fildes"
-.Fa "int optional_actions"
-.Fa "const struct termios *termios_p"
-.Fc
+.Fn cfmakeraw "struct termios *t"
+.Ft int
+.Fn tcgetattr "int fd" "struct termios *t"
+.Ft int
+.Fn tcsetattr "int fd" "int action" "const struct termios *t"
 .Sh DESCRIPTION
 The
 .Fn cfmakeraw ,
-.Fn tcgetattr ,
+.Fn tcgetattr
 and
 .Fn tcsetattr
 functions are provided for getting and setting the termios structure.
@@ -99,18 +77,17 @@
 .Fn cfgetispeed ,
 .Fn cfsetispeed ,
 .Fn cfgetospeed ,
-.Fn cfsetospeed ,
+.Fn cfsetospeed
 and
 .Fn cfsetspeed
 functions are provided for getting and setting the baud rate values in
 the termios structure.
-As described below,
-the effects of the functions on the terminal do not become effective,
-nor are all errors detected, until the
+The effects of the functions on the terminal as described below
+do not become effective, nor are all errors detected, until the
 .Fn tcsetattr
 function is called.
-Certain values for baud rates, set in the termios structure and passed to
-.Fn tcsetattr ,
+Certain values for baud rates set in the termios structure and passed to
+.Fn tcsetattr
 have special meanings.
 These are discussed in the portion of the manual page that describes the
 .Fn tcsetattr
@@ -119,10 +96,10 @@
 The input and output baud rates are found in the termios structure.
 The unsigned integer
 .Li speed_t
-is typedef'd in the include file
+is typdef'd in the include file
 .Aq Pa termios.h .
 The value of the integer corresponds directly to the baud rate being
-represented; however, the following symbolic values are defined:
+represented, however, the following symbolic values are defined.
 .Bd -literal
 #define B0	0
 #define B50	50
@@ -140,33 +117,33 @@
 #define B9600	9600
 #define B19200	19200
 #define B38400	38400
-#ifndef _POSIX_C_SOURCE
+#ifndef _POSIX_SOURCE
 #define EXTA	19200
 #define EXTB	38400
-#endif  /*_POSIX_C_SOURCE */
+#endif  /*_POSIX_SOURCE */
 .Ed
 .Pp
 The
 .Fn cfgetispeed
 function returns the input baud rate in the termios structure referenced by
-.Fa termios_p .
+.Fa tp .
 .Pp
 The
 .Fn cfsetispeed
 function sets the input baud rate in the termios structure referenced by
-.Fa termios_p
+.Fa tp
 to
 .Fa speed .
 .Pp
 The
 .Fn cfgetospeed
 function returns the output baud rate in the termios structure referenced by
-.Fa termios_p .
+.Fa tp .
 .Pp
 The
 .Fn cfsetospeed
 function sets the output baud rate in the termios structure referenced by
-.Fa termios_p
+.Fa tp
 to
 .Fa speed .
 .Pp
@@ -174,7 +151,7 @@
 .Fn cfsetspeed
 function sets both the input and output baud rate in the termios structure
 referenced by
-.Fa termios_p
+.Fa tp
 to
 .Fa speed .
 .Pp
@@ -197,20 +174,20 @@
 If the calling process is blocking or ignoring SIGTTOU signals, the process
 is allowed to perform the operation and the SIGTTOU signal is not sent.
 .Pp
-In all of the functions, although
-.Fa fildes
+In all the functions, although
+.Fa fd
 is an open file descriptor, the functions affect the underlying terminal
-file, not just the open file description that is associated
-with the particular file descriptor.
+file, not just the open file description associated with the particular
+file descriptor.
 .Pp
 The
 .Fn cfmakeraw
-function modifies the flags stored in the termios structure to a state disabling
+function sets the flags stored in the termios structure to a state disabling
 all input and output processing, giving a
 .Dq raw I/O path .
 It should be noted that there is no function to reverse this effect.
-Because a variety of processing options could be re-enabled,
-the correct method is for an application to snapshot the
+This is because there are a variety of processing options that could be
+re-enabled and the correct method is for an application to snapshot the
 current terminal state using the function
 .Fn tcgetattr ,
 setting raw mode with
@@ -225,20 +202,19 @@
 .Fn tcgetattr
 function copies the parameters associated with the terminal referenced
 by
-.Fa fildes
+.Fa fd
 in the termios structure referenced by
-.Fa termios_p .
-This function is allowed from a background process;
-however, the terminal attributes may be subsequently changed
-by a foreground process.
+.Fa tp .
+This function is allowed from a background process, however, the terminal
+attributes may be subsequently changed by a foreground process.
 .Pp
 The
 .Fn tcsetattr
 function sets the parameters associated with the terminal from the
 termios structure referenced by
-.Fa termios_p .
-The
-.Fa optional_actions
+.Fa tp .
+The
+.Fa action
 field is created by
 .Em or Ns 'ing
 the following values, as specified in the include file
@@ -248,21 +224,21 @@
 The change occurs immediately.
 .It Fa TCSADRAIN
 The change occurs after all output written to
-.Fa fildes
+.Fa fd
 has been transmitted to the terminal.
 This value of
-.Fa optional_actions
+.Fa action
 should be used when changing parameters that affect output.
 .It Fa TCSAFLUSH
 The change occurs after all output written to
-.Fa fildes
+.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
-.Fa optional_actions
+.Fa action
 value, the values of the
 .Em c_cflag ,
 .Em c_ispeed ,
@@ -302,7 +278,7 @@
 .Bl -tag -width Er
 .It Bq Er EBADF
 The
-.Fa fildes
+.Fa fd
 argument to
 .Fn tcgetattr
 or
@@ -314,14 +290,14 @@
 function was interrupted by a signal.
 .It Bq Er EINVAL
 The
-.Fa optional_actions
+.Fa action
 argument to the
 .Fn tcsetattr
 function was not valid, or an attempt was made to change an attribute
 represented in the termios structure to an unsupported value.
 .It Bq Er ENOTTY
 The file associated with the
-.Fa fildes
+.Fa fd
 argument to
 .Fn tcgetattr
 or
@@ -337,7 +313,7 @@
 .Fn cfsetispeed ,
 .Fn cfgetospeed ,
 .Fn cfsetospeed ,
-.Fn tcgetattr ,
+.Fn tcgetattr
 and
 .Fn tcsetattr
 functions are expected to be compliant with the