cpython/Mac/Python/macgetmtime.c

15 lines
200 B
C

#include "macstat.h"
#include "rename2.h"
/* Interfaced used by import.c */
long
getmtime(path)
char *path;
{
struct macstat st;
if (macstat(path, &st) != 0)
return -1L;
return st.st_mtime;
}