Mercurial > cpython-lru_cache-weakref
annotate Mac/Python/macgetmtime.c @ 2183:62bdded5f00a legacy-trunk
modernized/rationalized, added PyMac_BuildOSType
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 18 Jan 1995 23:57:26 +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 } |
