diff options
author | Skip Montanaro <skip@pobox.com> | 2007-08-16 14:35:24 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-08-16 14:35:24 +0000 |
commit | 7a98be2efbdc44a6271e3bf6117a1e6c77828414 (patch) | |
tree | 64b6306494f992605ef5bd854dfc9e4922f8b967 /RISCOS/Python/getmtime_riscos.c | |
parent | c5aba174477a4bdbda31d859ce407c6ee7cef293 (diff) | |
download | cpython-git-7a98be2efbdc44a6271e3bf6117a1e6c77828414.tar.gz |
Remove RISCOS support
Diffstat (limited to 'RISCOS/Python/getmtime_riscos.c')
-rw-r--r-- | RISCOS/Python/getmtime_riscos.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/RISCOS/Python/getmtime_riscos.c b/RISCOS/Python/getmtime_riscos.c deleted file mode 100644 index 9153638ffe..0000000000 --- a/RISCOS/Python/getmtime_riscos.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <stdio.h> - -#define __swi -#include "oslib/osfile.h" - -long PyOS_GetLastModificationTime(char *path, FILE *fp) -{ - int obj; - bits load, exec, ftype; - - if (xosfile_read_stamped_no_path(path, &obj, &load, &exec, 0, 0, &ftype)) return -1; - if (obj != osfile_IS_FILE) return -1; - if (ftype == osfile_TYPE_UNTYPED) return -1; - - load &= 0xFF; - load -= 51; - if (exec < 1855548004U) load--; - exec -= 1855548004U; - return exec/100+42949672*load+(95*load)/100; -} |