cpython/Mac/Python/macgetmtime.c

14 lines
180 B
C
Raw Normal View History

1994-01-05 16:17:15 +00:00
#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;
}