Staging
v0.8.1
https://github.com/python/cpython
Revision a93c4e395fe51494fbc958741fb79919610c751f authored by Georg Brandl on 13 March 2010, 13:42:13 UTC, committed by Georg Brandl on 13 March 2010, 13:42:13 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78921 | georg.brandl | 2010-03-13 14:39:46 +0100 (Sa, 13 Mär 2010) | 1 line

  Change/fix handling of docs download location: for daily builds, put them right next to the HTML.
........
1 parent 10b4e8c
Raw File
Tip revision: a93c4e395fe51494fbc958741fb79919610c751f authored by Georg Brandl on 13 March 2010, 13:42:13 UTC
Merged revisions 78921 via svnmerge from
Tip revision: a93c4e3
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 "pyconfig.h"

#ifdef __cplusplus
extern "C" {
#endif

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

#ifdef __cplusplus
}
#endif

back to top