aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/pty.3
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-02 23:52:20 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-02 23:52:20 +0000
commit1a0a934547909744a6a2fa4cfd5b795ec6394f05 (patch)
tree23294a96f715e1e5bc35c1029ec151c90ee95b96 /lib/libutil/pty.3
parente37a7c5f5a689c6f1994a879f5fa86066b7aac82 (diff)
Notes
Diffstat (limited to 'lib/libutil/pty.3')
-rw-r--r--lib/libutil/pty.318
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/libutil/pty.3 b/lib/libutil/pty.3
index 19cf9f7d3564..35f0b828ce2f 100644
--- a/lib/libutil/pty.3
+++ b/lib/libutil/pty.3
@@ -62,7 +62,8 @@ If the argument
is not
.Dv NULL ,
.Fn openpty
-copies the pathname of the slave pty to this area. The caller is
+copies the pathname of the slave pty to this area.
+The caller is
responsible for allocating the required space in this array.
.Pp
If the arguments
@@ -86,12 +87,16 @@ The
.Fn forkpty
function first calls
.Fn openpty
-to obtain the next available pseudo-terminal from the system. Upon success,
-it forks off a new process. In the child process, it closes the descriptor
+to obtain the next available pseudo-terminal from the system.
+Upon success,
+it forks off a new process.
+In the child process, it closes the descriptor
for the master side of the pty, and calls
.Xr login_tty 3
-for the slave pty. In the parent process, it closes the descriptor for the
-slave side of the pty. The arguments
+for the slave pty.
+In the parent process, it closes the descriptor for the
+slave side of the pty.
+The arguments
.Fa amaster ,
.Fa name ,
.Fa termp ,
@@ -133,7 +138,8 @@ may set it to any value as described for
.Xr group 5
.Sh BUGS
The calling process must have an effective UID of super-user in order
-to perform all the intended actions. No notification will occur if
+to perform all the intended actions.
+No notification will occur if
.Fn openpty
or
.Fn forkpty