diff Mac/Python/macgetmtime.c @ 1495:877073b9f8c3 legacy-trunk

Initial revision
author Guido van Rossum <guido@python.org>
date Wed, 05 Jan 1994 16:17:15 +0000
parents
children fa8bbd09f2e6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Mac/Python/macgetmtime.c	Wed Jan 05 16:17:15 1994 +0000
@@ -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;
+}