[Python-checkins] CVS: python/dist/src/Doc/lib libos.tex,1.40,1.41 libpty.tex,1.2,1.3

Fred L. Drake python-dev@python.org
Wed, 28 Jun 2000 10:27:51 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30149/lib

Modified Files:
	libos.tex libpty.tex 
Log Message:

Thomas Wouters <thomas@xs4all.net>:
Documentation updates related to the addition of openpty() and forkpty().


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** libos.tex	2000/05/02 17:29:35	1.40
--- libos.tex	2000/06/28 17:27:48	1.41
***************
*** 368,371 ****
--- 368,379 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{openpty}{}
+ Open a new 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},
***************
*** 790,793 ****
--- 798,811 ----
  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 \var{pid} is \code{0} in the child, the new child's process id
+ in the parent, and \code{fd} is the file descriptor 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}
  

Index: libpty.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpty.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** libpty.tex	2000/04/03 20:13:53	1.2
--- libpty.tex	2000/06/28 17:27:48	1.3
***************
*** 27,30 ****
--- 27,37 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{openpty}{}
+ Open a new pseudo-terminal pair, using \function{os.openpty()} if
+ possible, or emulation code for SGI and generic \UNIX{} systems.
+ Return a pair of file descriptors \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