summaryrefslogtreecommitdiffstats
path: root/lib/libutil/pty.3
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2003-03-24 16:02:05 +0000
committercharnier <charnier@FreeBSD.org>2003-03-24 16:02:05 +0000
commitf0ffe0ef9f006aa0c680f7def2d63f561eaade3f (patch)
tree1a092156e84df44700be1a9dde40cf947f43e35a /lib/libutil/pty.3
parent4a7a5ceb415b6b952d09c593efb016bf4e786972 (diff)
downloadFreeBSD-src-f0ffe0ef9f006aa0c680f7def2d63f561eaade3f.zip
FreeBSD-src-f0ffe0ef9f006aa0c680f7def2d63f561eaade3f.tar.gz
The .Fn function
Diffstat (limited to 'lib/libutil/pty.3')
-rw-r--r--lib/libutil/pty.317
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/libutil/pty.3 b/lib/libutil/pty.3
index 30c9f96..19cf9f7 100644
--- a/lib/libutil/pty.3
+++ b/lib/libutil/pty.3
@@ -82,8 +82,9 @@ and
.Fa aslave ,
respectively.
.Pp
-.Fn Forkpty
-first calls
+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
@@ -99,12 +100,14 @@ and
have the same meaning as described for
.Fn openpty .
.Sh RETURN VALUES
-.Fn Openpty
-returns 0 on success, or -1 on failure.
+The
+.Fn openpty
+function returns 0 on success, or -1 on failure.
.Pp
-.Fn Forkpty
-returns -1 on failure, 0 in the slave process, and the process ID of the
-slave process in the parent process.
+The
+.Fn forkpty
+function returns -1 on failure, 0 in the slave process, and the process ID of
+the slave process in the parent process.
.Sh ERRORS
On failure,
.Fn openpty
OpenPOWER on IntegriCloud