Set eol-style to native -- doesn't appear to be any reason
[python.git] / Python / getmtime.c
blobf0ac89972000b2370c80a7af9a1d518cc31cc7bf
2 /* Subroutine to get the last modification time of a file */
4 /* (A separate file because this may be OS dependent) */
6 #include "Python.h"
7 #include "pyconfig.h"
9 time_t
10 PyOS_GetLastModificationTime(char *path, FILE *fp)
12 struct stat st;
13 if (fstat(fileno(fp), &st) != 0)
14 return -1;
15 else
16 return st.st_mtime;