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
0fa10b3c
Kaydet (Commit)
0fa10b3c
authored
Ock 03, 2009
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #4817: Remove unused function PyOS_GetLastModificationTime.
üst
37fc8234
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
2 additions
and
84 deletions
+2
-84
sys.rst
Doc/c-api/sys.rst
+0
-7
refcounts.dat
Doc/data/refcounts.dat
+0
-3
Makefile.pre.in
Makefile.pre.in
+0
-1
NEWS
Misc/NEWS
+2
-0
pythoncore.dsp
PC/VC6/pythoncore.dsp
+0
-4
pythoncore.vcproj
PC/VS7.1/pythoncore.vcproj
+0
-3
pythoncore.vcproj
PC/VS8.0/pythoncore.vcproj
+0
-4
Makefile
PC/os2emx/Makefile
+0
-1
python27.def
PC/os2emx/python27.def
+0
-3
makefile
PC/os2vacpp/makefile
+0
-2
makefile.omk
PC/os2vacpp/makefile.omk
+0
-2
python.def
PC/os2vacpp/python.def
+0
-1
pythoncore.vcproj
PCbuild/pythoncore.vcproj
+0
-4
getmtime.c
Python/getmtime.c
+0
-26
import.c
Python/import.c
+0
-2
Makefile
RISCOS/Makefile
+0
-1
getmtime_riscos.c
RISCOS/Python/getmtime_riscos.c
+0
-20
No files found.
Doc/c-api/sys.rst
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -15,13 +15,6 @@ Operating System Utilities
one of the strings ``'<stdin>'`` or ``'???'``.
.. cfunction:: long PyOS_GetLastModificationTime(char *filename)
Return the time of last modification of the file *filename*. The result is
encoded in the same way as the timestamp returned by the standard C library
function :cfunc:`time`.
.. cfunction:: void PyOS_AfterFork()
Function to update some internal state after a process fork; this should be
...
...
Doc/data/refcounts.dat
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -841,9 +841,6 @@ PyNumber_Xor:PyObject*::+1:
PyNumber_Xor:PyObject*:o1:0:
PyNumber_Xor:PyObject*:o2:0:
PyOS_GetLastModificationTime:long:::
PyOS_GetLastModificationTime:char*:filename::
PyObject_AsFileDescriptor:int:::
PyObject_AsFileDescriptor:PyObject*:o:0:
...
...
Makefile.pre.in
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -264,7 +264,6 @@ PYTHON_OBJS= \
Python/getargs.o
\
Python/getcompiler.o
\
Python/getcopyright.o
\
Python/getmtime.o
\
Python/getplatform.o
\
Python/getversion.o
\
Python/graminit.o
\
...
...
Misc/NEWS
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -12,6 +12,8 @@ What's New in Python 2.7 alpha 1
Core and Builtins
-----------------
- Issue #4817: Remove unused function PyOS_GetLastModificationTime.
- Issue #4075: Use OutputDebugStringW in Py_FatalError.
- Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open
...
...
PC/VC6/pythoncore.dsp
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -410,10 +410,6 @@ SOURCE=..\..\Python\getcopyright.c
# End Source File
# Begin Source File
SOURCE=..\..\Python\getmtime.c
# End Source File
# Begin Source File
SOURCE=..\..\Python\getopt.c
# End Source File
# Begin Source File
...
...
PC/VS7.1/pythoncore.vcproj
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -568,9 +568,6 @@
<File
RelativePath=
"..\..\Python\getcopyright.c"
>
</File>
<File
RelativePath=
"..\..\Python\getmtime.c"
>
</File>
<File
RelativePath=
"..\..\Python\getopt.c"
>
</File>
...
...
PC/VS8.0/pythoncore.vcproj
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -1686,10 +1686,6 @@
RelativePath=
"..\..\Python\getcopyright.c"
>
</File>
<File
RelativePath=
"..\..\Python\getmtime.c"
>
</File>
<File
RelativePath=
"..\..\Python\getopt.c"
>
...
...
PC/os2emx/Makefile
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -351,7 +351,6 @@ SRC.PYTHON= $(addprefix $(TOP), \
Python/getargs.c
\
Python/getcompiler.c
\
Python/getcopyright.c
\
Python/getmtime.c
\
Python/getplatform.c
\
Python/getversion.c
\
Python/graminit.c
\
...
...
PC/os2emx/python27.def
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -931,9 +931,6 @@ EXPORTS
; From python27_s.lib(getcopyright)
"Py_GetCopyright"
; From python27_s.lib(getmtime)
"PyOS_GetLastModificationTime"
; From python27_s.lib(getplatform)
"Py_GetPlatform"
...
...
PC/os2vacpp/makefile
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -1693,8 +1693,6 @@ getcopyright.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
$(PY_INCLUDE)
\s
tringobject.h $(PY_INCLUDE)
\s
ysmodule.h $(PY_INCLUDE)
\t
raceback.h
\
$(PY_INCLUDE)
\t
upleobject.h
getmtime.obj
:
pyconfig.h
getplatform.obj
:
$(PY_INCLUDE)
\a
bstract.h $(PY_INCLUDE)
\c
eval.h
\
$(PY_INCLUDE)
\c
lassobject.h $(PY_INCLUDE)
\c
object.h $(PY_INCLUDE)
\c
omplexobject.h
\
pyconfig.h $(PY_INCLUDE)
\d
ictobject.h $(PY_INCLUDE)
\f
ileobject.h
\
...
...
PC/os2vacpp/makefile.omk
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -1155,8 +1155,6 @@ getcopyright.obj: abstract.h ceval.h classobject.h cobject.h \
pystate.h python.h pythonrun.h rangeobject.h sliceobject.h
\
stringobject.h sysmodule.h traceback.h tupleobject.h
getmtime.obj
:
pyconfig.h
getplatform.obj
:
abstract.h ceval.h classobject.h cobject.h complexobject.h
\
pyconfig.h dictobject.h fileobject.h floatobject.h funcobject.h
\
import.h intobject.h intrcheck.h listobject.h longobject.h
\
...
...
PC/os2vacpp/python.def
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -284,7 +284,6 @@ EXPORTS
PyNumber_Xor
PyOS_AfterFork
PyOS_FiniInterrupts
PyOS_GetLastModificationTime
PyOS_InitInterrupts
PyOS_InterruptOccurred
PyOS_Readline
...
...
PCbuild/pythoncore.vcproj
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -1686,10 +1686,6 @@
RelativePath=
"..\Python\getcopyright.c"
>
</File>
<File
RelativePath=
"..\Python\getmtime.c"
>
</File>
<File
RelativePath=
"..\Python\getopt.c"
>
...
...
Python/getmtime.c
deleted
100644 → 0
Dosyayı görüntüle @
37fc8234
/* Subroutine to get the last modification time of a file */
/* (A separate file because this may be OS dependent) */
#include "Python.h"
#include "pyconfig.h"
#ifdef __cplusplus
extern
"C"
{
#endif
time_t
PyOS_GetLastModificationTime
(
char
*
path
,
FILE
*
fp
)
{
struct
stat
st
;
if
(
fstat
(
fileno
(
fp
),
&
st
)
!=
0
)
return
-
1
;
else
return
st
.
st_mtime
;
}
#ifdef __cplusplus
}
#endif
Python/import.c
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -27,8 +27,6 @@ extern "C" {
typedef
unsigned
short
mode_t
;
#endif
extern
time_t
PyOS_GetLastModificationTime
(
char
*
,
FILE
*
);
/* In getmtime.c */
/* Magic word to reject .pyc files generated by other Python versions.
It should change for each incompatible change to the bytecode.
...
...
RISCOS/Makefile
Dosyayı görüntüle @
0fa10b3c
...
...
@@ -135,7 +135,6 @@ OBJECTS_PYTHON =\
OBJECTS_RISCOS
=
\
@.Python.o.dynload_riscos
\
@.Python.o.getcwd_riscos
\
@.Python.o.getmtime_riscos
\
@.o.unixstuff
...
...
RISCOS/Python/getmtime_riscos.c
deleted
100644 → 0
Dosyayı görüntüle @
37fc8234
#include <stdio.h>
#define __swi
#include "oslib/osfile.h"
long
PyOS_GetLastModificationTime
(
char
*
path
,
FILE
*
fp
)
{
int
obj
;
bits
load
,
exec
,
ftype
;
if
(
xosfile_read_stamped_no_path
(
path
,
&
obj
,
&
load
,
&
exec
,
0
,
0
,
&
ftype
))
return
-
1
;
if
(
obj
!=
osfile_IS_FILE
)
return
-
1
;
if
(
ftype
==
osfile_TYPE_UNTYPED
)
return
-
1
;
load
&=
0xFF
;
load
-=
51
;
if
(
exec
<
1855548004U
)
load
--
;
exec
-=
1855548004U
;
return
exec
/
100
+
42949672
*
load
+
(
95
*
load
)
/
100
;
}
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