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
2748c5c1
Kaydet (Commit)
2748c5c1
authored
Şub 11, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid name clash with posix_close (closes #20594)
üst
79ce12e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
NEWS
Misc/NEWS
+2
-0
posixmodule.c
Modules/posixmodule.c
+6
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
2748c5c1
...
...
@@ -44,6 +44,8 @@ Core and Builtins
Library
-------
- Issue #20594: Avoid name clash with the libc function posix_close.
- Issue #19856: shutil.move() failed to move a directory to other directory
on Windows if source name ends with os.altsep.
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
2748c5c1
...
...
@@ -6581,8 +6581,12 @@ PyDoc_STRVAR(posix_close__doc__,
"close(fd)
\n\n
\
Close a file descriptor (for low level IO)."
);
/*
The underscore at end of function name avoids a name clash with the libc
function posix_close.
*/
static
PyObject
*
posix_close
(
PyObject
*
self
,
PyObject
*
args
)
posix_close
_
(
PyObject
*
self
,
PyObject
*
args
)
{
int
fd
,
res
;
if
(
!
PyArg_ParseTuple
(
args
,
"i:close"
,
&
fd
))
...
...
@@ -8960,7 +8964,7 @@ static PyMethodDef posix_methods[] = {
{
"tcsetpgrp"
,
posix_tcsetpgrp
,
METH_VARARGS
,
posix_tcsetpgrp__doc__
},
#endif
/* HAVE_TCSETPGRP */
{
"open"
,
posix_open
,
METH_VARARGS
,
posix_open__doc__
},
{
"close"
,
posix_close
,
METH_VARARGS
,
posix_close__doc__
},
{
"close"
,
posix_close
_
,
METH_VARARGS
,
posix_close__doc__
},
{
"closerange"
,
posix_closerange
,
METH_VARARGS
,
posix_closerange__doc__
},
{
"dup"
,
posix_dup
,
METH_VARARGS
,
posix_dup__doc__
},
{
"dup2"
,
posix_dup2
,
METH_VARARGS
,
posix_dup2__doc__
},
...
...
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