0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 08:52:25 +01:00
cpython/Mac/Python/macgetmtime.c
Guido van Rossum fffb8bb526 rename2 changes
1995-01-12 12:37:24 +00:00

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;
}