summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetmtime.c
blob: aeb1e70dbd9672e8e364e2d84c089a2189c67fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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;
}