BSD 4_4_Lite1 release
[unix-history] / usr / src / share / man / man4 / tty.4
index 7c01ff1..a39ef1a 100644 (file)
@@ -1,9 +1,35 @@
 .\" Copyright (c) 1991, 1992, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\" Copyright (c) 1991, 1992, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
-.\" %sccs.include.redist.roff%
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.\"     @(#)tty.4      8.2 (Berkeley) %G%
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"     @(#)tty.4      8.3 (Berkeley) 4/19/94
 .\"
 .Dd August 14, 1992
 .Dt TTY 4
 .\"
 .Dd August 14, 1992
 .Dt TTY 4
@@ -182,7 +208,7 @@ This is the underlying call that implements the
 .Fn tcgetattr
 call.
 .It Dv TIOCSETA Fa struct termios *term
 .Fn tcgetattr
 call.
 .It Dv TIOCSETA Fa struct termios *term
-Set the termios state associated with the device immediatly.
+Set the termios state associated with the device immediately.
 This is the underlying call that implements the
 .Xr termios 4
 .Fn tcsetattr
 This is the underlying call that implements the
 .Xr termios 4
 .Fn tcsetattr
@@ -216,7 +242,7 @@ Simulate typed input.  Pretend as if the terminal received the
 character pointed to by
 .Fa cp .
 .It Dv TIOCNOTTY Fa void
 character pointed to by
 .Fa cp .
 .It Dv TIOCNOTTY Fa void
-This call is obsolete but left for compatability.  In the past, when
+This call is obsolete but left for compatibility.  In the past, when
 a process that didn't have a controlling terminal (see
 .Em The Controlling Terminal
 in
 a process that didn't have a controlling terminal (see
 .Em The Controlling Terminal
 in
@@ -246,7 +272,7 @@ and call the
 .Fn setsid
 system call which will place the process into its own session - which
 has the effect of disassociating it from the controlling terminal.  This
 .Fn setsid
 system call which will place the process into its own session - which
 has the effect of disassociating it from the controlling terminal.  This
-is the new and prefered method for programs to lose their controlling
+is the new and preferred method for programs to lose their controlling
 terminal.
 .It Dv TIOCSTOP Fa void
 Stop output on the terminal (like typing ^S at the keyboard).
 terminal.
 .It Dv TIOCSTOP Fa void
 Stop output on the terminal (like typing ^S at the keyboard).
@@ -261,7 +287,7 @@ Wait until all output is drained.
 Set exclusive use on the terminal.  No further opens are permitted
 except by root.  Of course, this means that programs that are run by
 root (or setuid) will not obey the exclusive setting - which limits
 Set exclusive use on the terminal.  No further opens are permitted
 except by root.  Of course, this means that programs that are run by
 root (or setuid) will not obey the exclusive setting - which limits
-the usefullness of this feature.
+the usefulness of this feature.
 .It Dv TIOCNXCL Fa void
 Clear exclusive use of the terminal.  Further opens are permitted.
 .It Dv TIOCFLUSH Fa int *what
 .It Dv TIOCNXCL Fa void
 Clear exclusive use of the terminal.  Further opens are permitted.
 .It Dv TIOCFLUSH Fa int *what