Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
c82634c1
Kaydet (Commit)
c82634c1
authored
Haz 28, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Thomas Wouters <thomas@xs4all.net>:
Documentation updates related to the addition of openpty() and forkpty().
üst
4e5302a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
libos.tex
Doc/lib/libos.tex
+18
-0
libpty.tex
Doc/lib/libpty.tex
+7
-0
No files found.
Doc/lib/libos.tex
Dosyayı görüntüle @
c82634c1
...
...
@@ -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
}
...
...
Doc/lib/libpty.tex
Dosyayı görüntüle @
c82634c1
...
...
@@ -26,6 +26,13 @@ descriptor connected to the child's controlling terminal (and also
to the child's standard input and output.
\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
process's standard io. This is often used to baffle programs which
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment