getpt.3, pts.4: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-07-28 22:35:42 +02:00
parent cc1a0b7e16
commit 86e5910635
2 changed files with 5 additions and 4 deletions

View File

@ -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) */"

View File

@ -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