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
77ca6c4c
Kaydet (Commit)
77ca6c4c
authored
Haz 03, 2004
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Warn abou missing mutate flag to ioctl. Fixes #696535.
üst
6b08a404
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+2
-0
NEWS
Misc/NEWS
+2
-0
fcntlmodule.c
Modules/fcntlmodule.c
+7
-1
No files found.
Doc/whatsnew/whatsnew24.tex
Dosyayı görüntüle @
77ca6c4c
...
...
@@ -669,6 +669,8 @@ changes to your code:
system ID in the wrong order. This has been corrected; applications
relying on the wrong order need to be fixed.
\item
\function
{
fcntl.ioctl
}
now warns if the mutate arg is omitted.
\end{itemize}
...
...
Misc/NEWS
Dosyayı görüntüle @
77ca6c4c
...
...
@@ -214,6 +214,8 @@ Core and builtins
Extension modules
-----------------
- fcntl.ioctl now warns if the mutate flag is not specified.
- nt now properly allows to refer to UNC roots, e.g. in nt.stat().
- the weakref module now supports additional objects: array.array,
...
...
Modules/fcntlmodule.c
Dosyayı görüntüle @
77ca6c4c
...
...
@@ -108,7 +108,13 @@ fcntl_ioctl(PyObject *self, PyObject *args)
char
*
arg
;
if
(
PyTuple_Size
(
args
)
==
3
)
{
/* warning goes here in 2.4 */
#if (PY_MAJOR_VERSION>2) || (PY_MINOR_VERSION>=5)
#error Remove the warning, change mutate_arg to 1
#endif
if
(
PyErr_Warn
(
PyExc_FutureWarning
,
"ioctl with mutable buffer will mutate the buffer by default in 2.5"
)
<
0
)
return
NULL
;
mutate_arg
=
0
;
}
if
(
mutate_arg
)
{
...
...
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