Index: Doc/lib/libos.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v retrieving revision 1.40 diff -u -r1.40 libos.tex --- Doc/lib/libos.tex 2000/05/02 17:29:35 1.40 +++ Doc/lib/libos.tex 2000/06/11 21:33:49 @@ -367,6 +367,14 @@ more). \end{funcdesc} +\begin{funcdesc}{openpty}{} +Open a new master/slave pseudo-terminal pair. Return a pair of file +descriptors \code{(\var{master}, \var{slave})} for the pty and the tty, +respectively. For a (slightly) more portable approach, use the +\refmodule{pty}\refstmodindex{pty} module. +Availability: some flavors of \UNIX{} +\end{funcdesc} + \begin{funcdesc}{pipe}{} Create a pipe. Return a pair of file descriptors \code{(\var{r}, \var{w})} usable for reading and writing, respectively. @@ -789,6 +797,15 @@ Fork a child process. Return \code{0} in the child, the child's process id in the parent. Availability: \UNIX{}. +\end{funcdesc} + +\begin{funcdesc}{forkpty}{} +Fork a child process, using a new pseudo-terminal as the child's controlling +terminal. Return a pair of \code{(\var{pid}, \var{fd})}, where \code{pid} is +\code{0} in the child, the new child's process id in the parent, and +\code{fd} the filedescriptor of the master end of the pseudo-terminal. +For a more portable approach, use the \refmodule{pty} module. +Availability: some flavors of \UNIX{} \end{funcdesc} \begin{funcdesc}{kill}{pid, sig} Index: Doc/lib/libpty.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpty.tex,v retrieving revision 1.2 diff -u -r1.2 libpty.tex --- Doc/lib/libpty.tex 2000/04/03 20:13:53 1.2 +++ Doc/lib/libpty.tex 2000/06/11 21:33:49 @@ -26,6 +26,14 @@ to the child's standard input and output. \end{funcdesc} +\begin{funcdesc}{openpty}{} +Open a new pseudo-terminal master/slave pair, using +\refmodule{os}refstmodindex{os}.\function{openpty()} if possible, or +emulation code for SGI and generic \UNIX{} systems. Return a pair of +filedescriptors \code{(\var{master}, \var{slave})}, for the master and the +slave end, respectively. +\end{funcdesc} + \begin{funcdesc}{spawn}{argv\optional{, master_read\optional{, stdin_read}}} Spawn a process, and connect its controlling terminal with the current process's standard io. This is often used to baffle programs which