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
77c176d5
Kaydet (Commit)
77c176d5
authored
May 12, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix alignment error on Itanium.
üst
159a1160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
posixmodule.c
Modules/posixmodule.c
+6
-3
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
77c176d5
...
@@ -763,8 +763,11 @@ static __int64 secs_between_epochs = 11644473600; /* Seconds between 1.1.1601 an
...
@@ -763,8 +763,11 @@ static __int64 secs_between_epochs = 11644473600; /* Seconds between 1.1.1601 an
static
void
static
void
FILE_TIME_to_time_t_nsec
(
FILETIME
*
in_ptr
,
int
*
time_out
,
int
*
nsec_out
)
FILE_TIME_to_time_t_nsec
(
FILETIME
*
in_ptr
,
int
*
time_out
,
int
*
nsec_out
)
{
{
/* XXX endianness */
/* XXX endianness. Shouldn't matter, as all Windows implementations are little-endian */
__int64
in
=
*
(
__int64
*
)
in_ptr
;
/* Cannot simply cast and dereference in_ptr,
since it might not be aligned properly */
__int64
in
;
memcpy
(
&
in
,
in_ptr
,
sizeof
(
in
));
*
nsec_out
=
(
int
)(
in
%
10000000
)
*
100
;
/* FILETIME is in units of 100 nsec. */
*
nsec_out
=
(
int
)(
in
%
10000000
)
*
100
;
/* FILETIME is in units of 100 nsec. */
/* XXX Win32 supports time stamps past 2038; we currently don't */
/* XXX Win32 supports time stamps past 2038; we currently don't */
*
time_out
=
Py_SAFE_DOWNCAST
((
in
/
10000000
)
-
secs_between_epochs
,
__int64
,
int
);
*
time_out
=
Py_SAFE_DOWNCAST
((
in
/
10000000
)
-
secs_between_epochs
,
__int64
,
int
);
...
@@ -777,7 +780,7 @@ time_t_to_FILE_TIME(int time_in, int nsec_in, FILETIME *out_ptr)
...
@@ -777,7 +780,7 @@ time_t_to_FILE_TIME(int time_in, int nsec_in, FILETIME *out_ptr)
__int64
out
;
__int64
out
;
out
=
time_in
+
secs_between_epochs
;
out
=
time_in
+
secs_between_epochs
;
out
=
out
*
10000000
+
nsec_in
;
out
=
out
*
10000000
+
nsec_in
;
*
(
__int64
*
)
out_ptr
=
out
;
memcpy
(
out_ptr
,
&
out
,
sizeof
(
out
))
;
}
}
/* Below, we *know* that ugo+r is 0444 */
/* Below, we *know* that ugo+r is 0444 */
...
...
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