Mercurial > cpython-lru_cache-weakref
annotate Mac/Python/macgetmtime.c @ 1795:fa8bbd09f2e6 legacy-trunk
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 19 Aug 1994 10:51:31 +0000 |
| parents | 877073b9f8c3 |
| children | 76d0f2b3b9ee |
| rev | line source |
|---|---|
|
1795
fa8bbd09f2e6
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
Guido van Rossum <guido@python.org>
parents:
1495
diff
changeset
|
1 #include <stat.h> |
| 1495 | 2 |
| 3 /* Interfaced used by import.c */ | |
| 4 | |
| 5 long | |
| 6 getmtime(path) | |
| 7 char *path; | |
| 8 { | |
| 9 struct stat st; | |
| 10 if (stat(path, &st) != 0) | |
| 11 return -1L; | |
| 12 return st.st_mtime; | |
| 13 } |
