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"
|
.TH GETPT 3 2020-02-09 "GNU" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
getpt \- open the pseudoterminal master (PTM)
|
getpt \- open the pseudoterminal master
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
.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
|
When a process opens
|
||||||
.IR /dev/ptmx ,
|
.IR /dev/ptmx ,
|
||||||
it gets a file
|
it gets a file
|
||||||
descriptor for a pseudoterminal master (PTM),
|
descriptor for a pseudoterminal master
|
||||||
and a pseudoterminal slave (PTS) device is created in the
|
and a pseudoterminal slave device is created in the
|
||||||
.I /dev/pts
|
.I /dev/pts
|
||||||
directory.
|
directory.
|
||||||
Each file descriptor obtained by opening
|
Each file descriptor obtained by opening
|
||||||
.IR /dev/ptmx
|
.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
|
be found by passing the file descriptor to
|
||||||
.BR ptsname (3).
|
.BR ptsname (3).
|
||||||
.PP
|
.PP
|
||||||
|
|
Loading…
Reference in New Issue