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
0471ac3d
Kaydet (Commit)
0471ac3d
authored
Nis 17, 2013
tarafından
Richard Oudkerk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge.
üst
409c3139
cf8a1e51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
NEWS
Misc/NEWS
+3
-0
posixmodule.c
Modules/posixmodule.c
+8
-2
signalmodule.c
Modules/signalmodule.c
+5
-1
timemodule.c
Modules/timemodule.c
+5
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
0471ac3d
...
@@ -12,6 +12,9 @@ What's New in Python 3.3.2?
...
@@ -12,6 +12,9 @@ What's New in Python 3.3.2?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #17782: Fix undefined behaviour on platforms where
``struct timespec``'
s
"tv_nsec"
member
is
not
a
C
long
.
-
Issue
#
17715
:
Fix
segmentation
fault
from
raising
an
exception
in
a
__trunc__
-
Issue
#
17715
:
Fix
segmentation
fault
from
raising
an
exception
in
a
__trunc__
method
.
method
.
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
0471ac3d
...
@@ -4775,6 +4775,8 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -4775,6 +4775,8 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs)
}
}
if
(
times
&&
(
times
!=
Py_None
))
{
if
(
times
&&
(
times
!=
Py_None
))
{
time_t
a_sec
,
m_sec
;
long
a_nsec
,
m_nsec
;
if
(
!
PyTuple_CheckExact
(
times
)
||
(
PyTuple_Size
(
times
)
!=
2
))
{
if
(
!
PyTuple_CheckExact
(
times
)
||
(
PyTuple_Size
(
times
)
!=
2
))
{
PyErr_SetString
(
PyExc_TypeError
,
PyErr_SetString
(
PyExc_TypeError
,
"utime: 'times' must be either"
"utime: 'times' must be either"
...
@@ -4783,11 +4785,15 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -4783,11 +4785,15 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs)
}
}
utime
.
now
=
0
;
utime
.
now
=
0
;
if
(
_PyTime_ObjectToTimespec
(
PyTuple_GET_ITEM
(
times
,
0
),
if
(
_PyTime_ObjectToTimespec
(
PyTuple_GET_ITEM
(
times
,
0
),
&
utime
.
atime_s
,
&
utime
.
atime_ns
)
==
-
1
||
&
a_sec
,
&
a_nsec
)
==
-
1
||
_PyTime_ObjectToTimespec
(
PyTuple_GET_ITEM
(
times
,
1
),
_PyTime_ObjectToTimespec
(
PyTuple_GET_ITEM
(
times
,
1
),
&
utime
.
mtime_s
,
&
utime
.
mtime_ns
)
==
-
1
)
{
&
m_sec
,
&
m_nsec
)
==
-
1
)
{
goto
exit
;
goto
exit
;
}
}
utime
.
atime_s
=
a_sec
;
utime
.
atime_ns
=
a_nsec
;
utime
.
mtime_s
=
m_sec
;
utime
.
mtime_ns
=
m_nsec
;
}
}
else
if
(
ns
)
{
else
if
(
ns
)
{
if
(
!
PyTuple_CheckExact
(
ns
)
||
(
PyTuple_Size
(
ns
)
!=
2
))
{
if
(
!
PyTuple_CheckExact
(
ns
)
||
(
PyTuple_Size
(
ns
)
!=
2
))
{
...
...
Modules/signalmodule.c
Dosyayı görüntüle @
0471ac3d
...
@@ -784,14 +784,18 @@ signal_sigtimedwait(PyObject *self, PyObject *args)
...
@@ -784,14 +784,18 @@ signal_sigtimedwait(PyObject *self, PyObject *args)
struct
timespec
buf
;
struct
timespec
buf
;
sigset_t
set
;
sigset_t
set
;
siginfo_t
si
;
siginfo_t
si
;
time_t
tv_sec
;
long
tv_nsec
;
int
err
;
int
err
;
if
(
!
PyArg_ParseTuple
(
args
,
"OO:sigtimedwait"
,
if
(
!
PyArg_ParseTuple
(
args
,
"OO:sigtimedwait"
,
&
signals
,
&
timeout
))
&
signals
,
&
timeout
))
return
NULL
;
return
NULL
;
if
(
_PyTime_ObjectToTimespec
(
timeout
,
&
buf
.
tv_sec
,
&
buf
.
tv_nsec
)
==
-
1
)
if
(
_PyTime_ObjectToTimespec
(
timeout
,
&
tv_sec
,
&
tv_nsec
)
==
-
1
)
return
NULL
;
return
NULL
;
buf
.
tv_sec
=
tv_sec
;
buf
.
tv_nsec
=
tv_nsec
;
if
(
buf
.
tv_sec
<
0
||
buf
.
tv_nsec
<
0
)
{
if
(
buf
.
tv_sec
<
0
||
buf
.
tv_nsec
<
0
)
{
PyErr_SetString
(
PyExc_ValueError
,
"timeout must be non-negative"
);
PyErr_SetString
(
PyExc_ValueError
,
"timeout must be non-negative"
);
...
...
Modules/timemodule.c
Dosyayı görüntüle @
0471ac3d
...
@@ -195,14 +195,18 @@ time_clock_settime(PyObject *self, PyObject *args)
...
@@ -195,14 +195,18 @@ time_clock_settime(PyObject *self, PyObject *args)
{
{
int
clk_id
;
int
clk_id
;
PyObject
*
obj
;
PyObject
*
obj
;
time_t
tv_sec
;
long
tv_nsec
;
struct
timespec
tp
;
struct
timespec
tp
;
int
ret
;
int
ret
;
if
(
!
PyArg_ParseTuple
(
args
,
"iO:clock_settime"
,
&
clk_id
,
&
obj
))
if
(
!
PyArg_ParseTuple
(
args
,
"iO:clock_settime"
,
&
clk_id
,
&
obj
))
return
NULL
;
return
NULL
;
if
(
_PyTime_ObjectToTimespec
(
obj
,
&
t
p
.
tv_sec
,
&
tp
.
tv_nsec
)
==
-
1
)
if
(
_PyTime_ObjectToTimespec
(
obj
,
&
t
v_sec
,
&
tv_nsec
)
==
-
1
)
return
NULL
;
return
NULL
;
tp
.
tv_sec
=
tv_sec
;
tp
.
tv_nsec
=
tv_nsec
;
ret
=
clock_settime
((
clockid_t
)
clk_id
,
&
tp
);
ret
=
clock_settime
((
clockid_t
)
clk_id
,
&
tp
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
...
...
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