Staging
v0.5.1
v0.5.1
Revision 55d3a19643b00ff8f54aac7b3aeeeb4a62ec7e7a authored by Walter Dörwald on 10 January 2005, 12:26:00 UTC, committed by Walter Dörwald on 10 January 2005, 12:26:00 UTC
Fix and test for SF bug #1098990: codec readline() splits lines apart.
1 parent 9632e94
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"
time_t
PyOS_GetLastModificationTime(char *path, FILE *fp)
{
struct stat st;
if (fstat(fileno(fp), &st) != 0)
return -1;
else
return st.st_mtime;
}
Computing file changes ...