summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man4/pts.4
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/opensuse-tumbleweed/man4/pts.4')
-rw-r--r--upstream/opensuse-tumbleweed/man4/pts.414
1 files changed, 7 insertions, 7 deletions
diff --git a/upstream/opensuse-tumbleweed/man4/pts.4 b/upstream/opensuse-tumbleweed/man4/pts.4
index d3309072..0ed004d2 100644
--- a/upstream/opensuse-tumbleweed/man4/pts.4
+++ b/upstream/opensuse-tumbleweed/man4/pts.4
@@ -5,7 +5,7 @@
.\" Redistribute and revise at will.
.\" %%%LICENSE_END
.\"
-.TH pts 4 2022-10-30 "Linux man-pages 6.05.01"
+.TH pts 4 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
ptmx, pts \- pseudoterminal master and slave
.SH DESCRIPTION
@@ -15,7 +15,7 @@ The file
is a character file with major number 5 and
minor number 2, usually with mode 0666 and ownership root:root.
It is used to create a pseudoterminal master and slave pair.
-.PP
+.P
When a process opens
.IR /dev/ptmx ,
it gets a file
@@ -29,19 +29,19 @@ is an independent pseudoterminal master with its own associated slave,
whose path can
be found by passing the file descriptor to
.BR ptsname (3).
-.PP
+.P
Before opening the pseudoterminal slave, you must pass the master's file
descriptor to
.BR grantpt (3)
and
.BR unlockpt (3).
-.PP
+.P
Once both the pseudoterminal master and slave are open, the slave provides
processes with an interface that is identical to that of a real terminal.
-.PP
+.P
Data written to the slave is presented on the master file descriptor as input.
Data written to the master is presented to the slave as input.
-.PP
+.P
In practice, pseudoterminals are used for implementing terminal emulators
such as
.BR xterm (1),
@@ -52,7 +52,7 @@ programs such as
.BR sshd (8),
in which data read from the pseudoterminal master is sent across the network
to a client program that is connected to a terminal or terminal emulator.
-.PP
+.P
Pseudoterminals can also be used to send input to programs that normally
refuse to read input from pipes (such as
.BR su (1),