summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man3/openpty.3
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/opensuse-tumbleweed/man3/openpty.3')
-rw-r--r--upstream/opensuse-tumbleweed/man3/openpty.319
1 files changed, 9 insertions, 10 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/openpty.3 b/upstream/opensuse-tumbleweed/man3/openpty.3
index 9bdcb142..09eb223c 100644
--- a/upstream/opensuse-tumbleweed/man3/openpty.3
+++ b/upstream/opensuse-tumbleweed/man3/openpty.3
@@ -8,7 +8,7 @@
.\"
.\" Added -lutil remark, 030718
.\"
-.TH openpty 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH openpty 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
openpty, login_tty, forkpty \- terminal utility functions
.SH LIBRARY
@@ -17,16 +17,16 @@ System utilities library
.SH SYNOPSIS
.nf
.B #include <pty.h>
-.PP
+.P
.BI "int openpty(int *" amaster ", int *" aslave ", char *" name ,
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
.BI "pid_t forkpty(int *" amaster ", char *" name ,
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
-.PP
+.P
.B #include <utmp.h>
-.PP
+.P
.BI "int login_tty(int " fd );
.fi
.SH DESCRIPTION
@@ -50,7 +50,7 @@ If
.I winp
is not NULL, the window size of the slave will be set to the values in
.IR winp .
-.PP
+.P
The
.BR login_tty ()
function prepares for a login on the terminal
@@ -66,7 +66,7 @@ the controlling terminal for the calling process, setting
to be the standard input, output, and error streams of the current
process, and closing
.IR fd .
-.PP
+.P
The
.BR forkpty ()
function combines
@@ -112,14 +112,14 @@ fails if:
.TP
.B ENOENT
There are no available terminals.
-.PP
+.P
.BR login_tty ()
fails if
.BR ioctl (2)
fails to set
.I fd
to the controlling terminal of the calling process.
-.PP
+.P
.BR forkpty ()
fails if either
.BR openpty ()
@@ -146,7 +146,6 @@ T{
.BR login_tty ()
T} Thread safety MT-Unsafe race:ttyname
.TE
-.sp 1
.SH STANDARDS
BSD.
.SH HISTORY
@@ -157,7 +156,7 @@ modifiers were added to the structure pointer arguments of
and
.BR forkpty ()
in glibc 2.8.
-.PP
+.P
Before glibc 2.0.92,
.BR openpty ()
returns file descriptors for a BSD pseudoterminal pair;