mirror of https://github.com/mkerrisk/man-pages
getpt.3, pts.4: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
cc1a0b7e16
commit
86e5910635
|
@ -6,7 +6,7 @@
|
|||
.\"
|
||||
.TH GETPT 3 2020-02-09 "GNU" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
getpt \- open the pseudoterminal master (PTM)
|
||||
getpt \- open the pseudoterminal master
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||
|
|
|
@ -18,13 +18,14 @@ It is used to create a pseudoterminal master and slave pair.
|
|||
When a process opens
|
||||
.IR /dev/ptmx ,
|
||||
it gets a file
|
||||
descriptor for a pseudoterminal master (PTM),
|
||||
and a pseudoterminal slave (PTS) device is created in the
|
||||
descriptor for a pseudoterminal master
|
||||
and a pseudoterminal slave device is created in the
|
||||
.I /dev/pts
|
||||
directory.
|
||||
Each file descriptor obtained by opening
|
||||
.IR /dev/ptmx
|
||||
is an independent PTM with its own associated PTS, whose path can
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue