4 #include "oslib/osfile.h"
6 long PyOS_GetLastModificationTime(char *path
, FILE *fp
)
9 bits load
, exec
, ftype
;
11 if (xosfile_read_stamped_no_path(path
, &obj
, &load
, &exec
, 0, 0, &ftype
)) return -1;
12 if (obj
!= osfile_IS_FILE
) return -1;
13 if (ftype
== osfile_TYPE_UNTYPED
) return -1;
17 if (exec
< 1855548004U) load
--;
19 return exec
/100+42949672*load
+(95*load
)/100;