If
.I name
is not NULL, the buffer it points to is used to return the
-the filename of the slave.
+filename of the slave.
The
.I termp
and
returns the process ID of the child process.
.SH ERRORS
.BR openpty ()
-will fail if:
+fails if:
.TP
.B ENOENT
There are no available terminals.
.PP
.BR login_tty ()
-will fail if
+fails if
.BR ioctl (2)
fails to set
.I fd
to the controlling terminal of the calling process.
.PP
.BR forkpty ()
-will fail if either
+fails if either
.BR openpty ()
or
.BR fork (2)