summaryrefslogtreecommitdiffstats
path: root/share/man/man4/pty.4
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-04-08 04:18:31 +0000
committermpp <mpp@FreeBSD.org>1996-04-08 04:18:31 +0000
commit3c57dc77537bfff8a25b061e147f5a1194613a28 (patch)
tree78fa3bb3a263f5518e1eaa6bea101b7b19200ce5 /share/man/man4/pty.4
parentcdc4afc0a8a13743387100d7e5e163b1dcd87323 (diff)
downloadFreeBSD-src-3c57dc77537bfff8a25b061e147f5a1194613a28.zip
FreeBSD-src-3c57dc77537bfff8a25b061e147f5a1194613a28.tar.gz
Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches. Also fixed a number of man pages to not abuse the .Xr macro to display functions and path names and a lot of other junk.
Diffstat (limited to 'share/man/man4/pty.4')
-rw-r--r--share/man/man4/pty.416
1 files changed, 8 insertions, 8 deletions
diff --git a/share/man/man4/pty.4 b/share/man/man4/pty.4
index dd982c3..b8b6b87 100644
--- a/share/man/man4/pty.4
+++ b/share/man/man4/pty.4
@@ -42,7 +42,7 @@
.Op Ar count
.Sh DESCRIPTION
The
-.Xr pty
+.Nm pty
driver provides support for a device-pair termed a
.Em pseudo terminal .
A pseudo terminal is a pair of character devices, a
@@ -92,7 +92,7 @@ mode. Packet mode is enabled by specifying (by reference)
a nonzero parameter and disabled by specifying (by reference)
a zero parameter. When applied to the master side of a pseudo
terminal, each subsequent
-.Xr read
+.Xr read 2
from the terminal will return data written on the slave part of
the pseudo terminal preceded by a zero byte (symbolically
defined as
@@ -140,7 +140,7 @@ used by other similar programs.
.El
.It Dv TIOCUCNTL
Enable/disable a mode that allows a small number of simple user
-.Xr ioctl
+.Xr ioctl 2
commands to be passed through the pseudo-terminal,
using a protocol similar to that of
.Dv TIOCPKT .
@@ -154,12 +154,12 @@ by specifying (by reference)
a nonzero parameter and disabled by specifying (by reference)
a zero parameter.
Each subsequent
-.Xr read
+.Xr read 2
from the master side will return data written on the slave part of
the pseudo terminal preceded by a zero byte,
or a single byte reflecting a user control operation on the slave side.
A user control command consists of a special
-.Xr ioctl
+.Xr ioctl 2
operation with no data; the command is given as
.Dv UIOCCMD Ns (n) ,
where
@@ -168,17 +168,17 @@ is a number in the range 1-255.
The operation value
.Ar n
will be received as a single byte on the next
-.Xr read
+.Xr read 2
from the master side.
The
-.Xr ioctl
+.Xr ioctl 2
.Dv UIOCCMD Ns (0)
is a no-op that may be used to probe for
the existence of this facility.
As with
.Dv TIOCPKT
mode, command operations may be detected with a
-.Xr select
+.Xr select 2
for exceptional conditions.
.It Dv TIOCREMOTE
A mode for the master half of a pseudo terminal, independent
OpenPOWER on IntegriCloud