.\" Copyright (c) OpenBSD Group
.\" All rights reserved.
.\"
+.\" %%%LICENSE_START(BSD_3_CLAUSE_UCB)
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
+.\" %%%LICENSE_END
.\"
.\" Converted into a manpage again by Martin Schulze <joey@infodrom.org>
.\"
.\"
.TH OPENPTY 3 2010-06-13 "GNU" "Linux Programmer's Manual"
.SH NAME
-openpty, login_tty, forkpty \- tty utility functions
+openpty, login_tty, forkpty \- terminal utility functions
.SH SYNOPSIS
.nf
.B #include <pty.h>
The
.BR login_tty ()
-function prepares for a login on the tty
+function prepares for a login on the terminal
.I fd
-(which may be a real tty device, or the slave of a pseudoterminal as
+(which may be a real terminal device, or the slave of a pseudoterminal as
returned by
.BR openpty ())
by creating a new session, making
arguments, if not NULL,
will determine the terminal attributes and window size of the slave
side of the pseudoterminal.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
If a call to
.BR openpty (),
.BR login_tty (),
will fail if:
.TP
.B ENOENT
-There are no available ttys.
+There are no available terminals.
.LP
.BR login_tty ()
will fail if
or
.BR fork (2)
fails.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
These are BSD functions, present in libc5 and glibc2.
They are not standardized in POSIX.
.SH NOTES
with non-NULL
.I name
may not be secure.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR fork (2),
.BR ttyname (3),
.BR pty (7)