OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man3 / openpty.3
index 1a9a22d..5e9f63f 100644 (file)
@@ -1,6 +1,7 @@
 .\" 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:
@@ -24,6 +25,7 @@
 .\" 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>
 .\"
@@ -31,7 +33,7 @@
 .\"
 .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>
@@ -74,9 +76,9 @@ is not NULL, the window size of the slave will be set to the values in
 
 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
@@ -108,7 +110,7 @@ and
 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 (),
@@ -130,7 +132,7 @@ returns the process ID of the child process.
 will fail if:
 .TP
 .B ENOENT
-There are no available ttys.
+There are no available terminals.
 .LP
 .BR login_tty ()
 will fail if
@@ -145,7 +147,7 @@ will fail if either
 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
@@ -173,7 +175,7 @@ or
 with non-NULL
 .I name
 may not be secure.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR fork (2),
 .BR ttyname (3),
 .BR pty (7)