commit | ce9739ba769b465047f644672eda654efed7ad80 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 05 16:17:15 1994 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 05 16:17:15 1994 +0000 |
tree | 214d6f651ad0a59eae9aa0c41072cf901837ceca | |
parent | 718581a522663c7e5e2c692daaff4e5a399d6e2c [diff] [blame] |
Initial revision
diff --git a/Mac/Python/macgetmtime.c b/Mac/Python/macgetmtime.c new file mode 100644 index 0000000..c581009 --- /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; +}