mirror of https://github.com/mkerrisk/man-pages
getpt.3: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
86e5910635
commit
9ea5c15a95
|
@ -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
|
getpt \- open a new 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) */"
|
||||||
|
@ -16,7 +16,8 @@ getpt \- open the pseudoterminal master
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.BR getpt ()
|
.BR getpt ()
|
||||||
opens a pseudoterminal master and returns its file descriptor.
|
opens a new pseudoterminal device and returns a file descriptor
|
||||||
|
that refers to that device.
|
||||||
It is equivalent to
|
It is equivalent to
|
||||||
.PP
|
.PP
|
||||||
.in +4n
|
.in +4n
|
||||||
|
@ -26,7 +27,7 @@ open("/dev/ptmx", O_RDWR);
|
||||||
.in
|
.in
|
||||||
.PP
|
.PP
|
||||||
on Linux systems, though the pseudoterminal master is located
|
on Linux systems, though the pseudoterminal master is located
|
||||||
elsewhere on some systems that use GNU Libc.
|
elsewhere on some systems that use the GNU C library.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
.BR getpt ()
|
.BR getpt ()
|
||||||
returns an open file descriptor upon successful completion.
|
returns an open file descriptor upon successful completion.
|
||||||
|
|
Loading…
Reference in New Issue