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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
c57b5c50a2d2 rename2 changes
Guido van Rossum <guido@python.org>
parents: 1822
diff changeset
2 #include "rename2.h"
1495
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
3
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 /* Interfaced used by import.c */
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
5
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 long
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 getmtime(path)
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 char *path;
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 return -1L;
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 return st.st_mtime;
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 }