Mercurial > cpython-lru_cache-weakref
annotate Mac/Python/macgetmtime.c @ 3930:52c19ee83a6b legacy-trunk
Guido's 1.4b2 fixes: Py_GetProgramName, Py_GetPrefix and Py_GetExecPrefix.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 02 Aug 1996 15:16:16 +0000 |
| parents | c57b5c50a2d2 |
| children | d6b292a33cfe |
| rev | line source |
|---|---|
|
1822
76d0f2b3b9ee
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
Guido van Rossum <guido@python.org>
parents:
1795
diff
changeset
|
1 #include "macstat.h" |
| 2136 | 2 #include "rename2.h" |
| 1495 | 3 |
| 4 /* Interfaced used by import.c */ | |
| 5 | |
| 6 long | |
| 7 getmtime(path) | |
| 8 char *path; | |
| 9 { | |
|
1822
76d0f2b3b9ee
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
Guido van Rossum <guido@python.org>
parents:
1795
diff
changeset
|
10 struct macstat st; |
|
76d0f2b3b9ee
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
Guido van Rossum <guido@python.org>
parents:
1795
diff
changeset
|
11 if (macstat(path, &st) != 0) |
| 1495 | 12 return -1L; |
| 13 return st.st_mtime; | |
| 14 } |
