Staging
v0.5.1
https://github.com/python/cpython
Revision 5eab720f68b3cfa73a28e63c95e2d34b9e75376b authored by Thomas Heller on 11 January 2002, 10:08:19 UTC, committed by Thomas Heller on 11 January 2002, 10:08:19 UTC
"cvs admin -kb installer.bmp" (although this should be unneeded?).
1 parent ea7f4a5
Raw File
Tip revision: 5eab720f68b3cfa73a28e63c95e2d34b9e75376b authored by Thomas Heller on 11 January 2002, 10:08:19 UTC
Copied from the HEAD revision, and checked in again after doing a
Tip revision: 5eab720
getmtime.c

/* Subroutine to get the last modification time of a file */

/* (A separate file because this may be OS dependent) */

#include "Python.h"
#include "config.h"

time_t
PyOS_GetLastModificationTime(char *path, FILE *fp)
{
	struct stat st;
	if (fstat(fileno(fp), &st) != 0)
		return -1;
	else
		return st.st_mtime;
}
back to top