summaryrefslogtreecommitdiff
path: root/Mac/Python/macgetmtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Python/macgetmtime.c')
-rw-r--r--Mac/Python/macgetmtime.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/Mac/Python/macgetmtime.c b/Mac/Python/macgetmtime.c
new file mode 100644
index 0000000000..c58100992d
--- /dev/null
+++ b/Mac/Python/macgetmtime.c
@@ -0,0 +1,13 @@
+#include "::unixemu:stat.h"
+
+/* Interfaced used by import.c */
+
+long
+getmtime(path)
+ char *path;
+{
+ struct stat st;
+ if (stat(path, &st) != 0)
+ return -1L;
+ return st.st_mtime;
+}