summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libos.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-28 17:27:48 (GMT)
committerFred Drake <fdrake@acm.org>2000-06-28 17:27:48 (GMT)
commitc82634c13cce7d846236eba8ab345c52cebc3567 (patch)
tree68f90f3614d218783b442aadfd5133713212cc12 /Doc/lib/libos.tex
parent4e5302a27e97161ffefbe486ff56a134b1b697d3 (diff)
downloadcpython-c82634c13cce7d846236eba8ab345c52cebc3567.zip
cpython-c82634c13cce7d846236eba8ab345c52cebc3567.tar.gz
cpython-c82634c13cce7d846236eba8ab345c52cebc3567.tar.bz2
Thomas Wouters <thomas@xs4all.net>:
Documentation updates related to the addition of openpty() and forkpty().
Diffstat (limited to 'Doc/lib/libos.tex')
-rw-r--r--Doc/lib/libos.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index e9302d1..c506a05 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -367,6 +367,14 @@ object'' with \method{read()} and \method{write()} methods (and many
more).
\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},
\var{w})} usable for reading and writing, respectively.
@@ -791,6 +799,16 @@ 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}
+
\begin{funcdesc}{kill}{pid, sig}
\index{process!killing}
\index{process!signalling}