From: Ulrich Drepper Date: Tue, 23 Jun 1998 09:16:39 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_0_95~106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e951d34052a3e76fa3045de7b9368e65115b1345;p=platform%2Fupstream%2Fglibc.git Update. 1998-06-23 Andreas Jaeger * manual/terminal.texi (Pseudo-Terminals): Correct typos. --- diff --git a/ChangeLog b/ChangeLog index a4f756a..7568574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1998-06-23 Andreas Jaeger + + * manual/terminal.texi (Pseudo-Terminals): Correct typos. + 1998-06-23 Ulrich Drepper * config.make.in: Remove LDAP support. diff --git a/manual/terminal.texi b/manual/terminal.texi index e6dc36d..14dda44 100644 --- a/manual/terminal.texi +++ b/manual/terminal.texi @@ -1837,9 +1837,9 @@ example does so. @cindex pseudo-terminals A @dfn{pseudo-terminal} is a special interprocess communication channel -that acts like a terminal. On one end of the channel is called the +that acts like a terminal. One end of the channel is called the @dfn{master} side or @dfn{master pseudo-terminal device}, the other side -is called the @dfn{slave} side. Data written to the the master side is +is called the @dfn{slave} side. Data written to the master side is received by the slave side as if it was the result of a user typing at an ordinary terminal, and data written to the slave side is sent to the master side as if it was written on an ordinary terminal. @@ -1858,7 +1858,7 @@ implement their terminal emulation functionality. @cindex allocating pseudo-terminals @pindex stdlib.h -This subsection describes functions for allocating a pseudo-terminals, +This subsection describes functions for allocating a pseudo-terminal, and for making this pseudo-terminal available for actual use. These functions are declared in the header file @file{stdlib.h}. @@ -2020,7 +2020,7 @@ These functions, derived from BSD, are available in the separate This function allocates and opens a pseudo-terminal pair, returning the file descriptor for the master in @var{*amaster}, and the file descriptor for the slave in @var{*aslave}. If the argument @var{name} -is not a null pointer, the name file name of the slave pseudo-terminal +is not a null pointer, the file name of the slave pseudo-terminal device is stored in @code{*name}. If @var{termp} is not a null pointer, the terminal attributes of the slave are set to the ones specified in the structure that @var{termp} points to (@pxref{Terminal Modes}). @@ -2031,11 +2031,12 @@ the slave is set to the values specified in the structure that The normal return value from @code{openpty} is @math{0}; a value of @math{-1} is returned in case of failure. -@strong{Warning:} Using the @code{openpty} with @var{name} not set to -@code{NULL} is @strong{very dangerous} because it provides no protection -against overflowing the string @var{name}. You should use the -@code{ttyname} function on the file descriptor returned in @var{*slave} -to find out the file name of the slave pseudo-terminal device instead. +@strong{Warning:} Using the @code{openpty} function with @var{name} not +set to @code{NULL} is @strong{very dangerous} because it provides no +protection against overflowing the string @var{name}. You should use +the @code{ttyname} function on the file descriptor returned in +@var{*slave} to find out the file name of the slave pseudo-terminal +device instead. @end deftypefun @comment pty.h