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
1517d842
Kaydet (Commit)
1517d842
authored
Tem 19, 2000
tarafından
Skip Montanaro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
new method isatty from Thomas Wouters
üst
b1aac244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
posixmodule.c
Modules/posixmodule.c
+16
-0
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
1517d842
...
@@ -3244,6 +3244,21 @@ posix_fdopen(PyObject *self, PyObject *args)
...
@@ -3244,6 +3244,21 @@ posix_fdopen(PyObject *self, PyObject *args)
return
f
;
return
f
;
}
}
static
char
posix_isatty__doc__
[]
=
"isatty(fd) -> Boolean
\n
\
Return true if the file descriptor 'fd' is an open file descriptor
\n
\
connected to a terminal."
;
static
PyObject
*
posix_isatty
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
{
int
fd
;
if
(
!
PyArg_ParseTuple
(
args
,
"i:isatty"
,
&
fd
))
return
NULL
;
return
Py_BuildValue
(
"i"
,
isatty
(
fd
));
}
#ifdef HAVE_PIPE
#ifdef HAVE_PIPE
static
char
posix_pipe__doc__
[]
=
static
char
posix_pipe__doc__
[]
=
...
@@ -5038,6 +5053,7 @@ static PyMethodDef posix_methods[] = {
...
@@ -5038,6 +5053,7 @@ static PyMethodDef posix_methods[] = {
{
"write"
,
posix_write
,
METH_VARARGS
,
posix_write__doc__
},
{
"write"
,
posix_write
,
METH_VARARGS
,
posix_write__doc__
},
{
"fstat"
,
posix_fstat
,
METH_VARARGS
,
posix_fstat__doc__
},
{
"fstat"
,
posix_fstat
,
METH_VARARGS
,
posix_fstat__doc__
},
{
"fdopen"
,
posix_fdopen
,
METH_VARARGS
,
posix_fdopen__doc__
},
{
"fdopen"
,
posix_fdopen
,
METH_VARARGS
,
posix_fdopen__doc__
},
{
"isatty"
,
posix_isatty
,
METH_VARARGS
,
posix_isatty__doc__
},
#ifdef HAVE_PIPE
#ifdef HAVE_PIPE
{
"pipe"
,
posix_pipe
,
METH_VARARGS
,
posix_pipe__doc__
},
{
"pipe"
,
posix_pipe
,
METH_VARARGS
,
posix_pipe__doc__
},
#endif
#endif
...
...
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