aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/pty.3
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>2003-03-24 16:02:05 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>2003-03-24 16:02:05 +0000
commit0552350ecc55f34e3385dc06abf3c9c45092b332 (patch)
tree1a092156e84df44700be1a9dde40cf947f43e35a /lib/libutil/pty.3
parent592bb5e477f30354d5cbbabebe24ac7d05ba7e7e (diff)
downloadsrc-0552350ecc55f34e3385dc06abf3c9c45092b332.tar.gz
src-0552350ecc55f34e3385dc06abf3c9c45092b332.zip
The .Fn function
Notes
Notes: svn path=/head/; revision=112541
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 30c9f96f6915..19cf9f7d3564 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