-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
.\" Copyright (C) 2005 Michael Kerrisk <mtk.manpages@gmail.com>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.TH PTY 7 2005-10-10 "Linux" "Linux Programmer's Manual"
.SH NAME
Conversely, anything that is written to the slave end of the
pseudoterminal can be read by the process that is connected to
the master end.
-Psuedoterminals are used by applications such as network login services
+Pseudoterminals are used by applications such as network login services
.RB ( ssh "(1), " rlogin "(1), " telnet (1)),
terminal emulators,
.BR script (1),
Since kernel 2.6.4, BSD-style pseudoterminals are considered deprecated
(they can be disabled when configuring the kernel);
UNIX 98 pseudoterminals should be used in new applications.
-.SS "UNIX 98 pseudoterminals"
+.SS UNIX 98 pseudoterminals
An unused UNIX 98 pseudoterminal master is opened by calling
.BR posix_openpt (3).
(This function opens the master clone device,
indicates how many pseudoterminals are currently in use.
For further details on these two files, see
.BR proc (5).
-.SS "BSD pseudoterminals"
+.SS BSD pseudoterminals
BSD-style pseudoterminals are provided as precreated pairs, with
names of the form
.I /dev/ptyXY
each pseudoterminal master until an open succeeds.
The corresponding pseudoterminal slave (substitute "tty"
for "pty" in the name of the master) can then be opened.
-.SH "FILES"
+.SH FILES
.I /dev/ptmx
(UNIX 98 master clone device)
.br
.br
.I /dev/tty[p-za-e][0-9a-f]
(BSD slave devices)
-.SH "NOTES"
+.SH NOTES
A description of the
.B TIOCPKT
.BR ioctl (2),
and
.BR TIOCREMOTE
have not been implemented under Linux.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR select (2),
.BR setsid (2),
.BR forkpty (3),
.BR pts (4),
.BR tty (4),
.BR tty_ioctl (4)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.