summaryrefslogtreecommitdiffstats
path: root/man3/getpt.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/getpt.3')
-rw-r--r--man3/getpt.39
1 files changed, 4 insertions, 5 deletions
diff --git a/man3/getpt.3 b/man3/getpt.3
index 6434f90..fa6cd1c 100644
--- a/man3/getpt.3
+++ b/man3/getpt.3
@@ -5,7 +5,7 @@
.\" Redistribute and modify at will.
.\" %%%LICENSE_END
.\"
-.TH getpt 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH getpt 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
getpt \- open a new pseudoterminal master
.SH LIBRARY
@@ -15,7 +15,7 @@ Standard C library
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <stdlib.h>
-.PP
+.P
.B "int getpt(void);"
.fi
.SH DESCRIPTION
@@ -23,13 +23,13 @@ Standard C library
opens a new pseudoterminal device and returns a file descriptor
that refers to that device.
It is equivalent to opening the pseudoterminal multiplexor device
-.PP
+.P
.in +4n
.EX
open("/dev/ptmx", O_RDWR);
.EE
.in
-.PP
+.P
on Linux systems, though the pseudoterminal multiplexor device is located
elsewhere on some systems that use the GNU C library.
.SH RETURN VALUE
@@ -57,7 +57,6 @@ T{
.BR getpt ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH VERSIONS
Use
.BR posix_openpt (3)