mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Initial revision
This commit is contained in:
parent
718581a522
commit
ce9739ba76
5 changed files with 720 additions and 0 deletions
13
Mac/Python/macgetmtime.c
Normal file
13
Mac/Python/macgetmtime.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "::unixemu:stat.h"
|
||||
|
||||
/* Interfaced used by import.c */
|
||||
|
||||
long
|
||||
getmtime(path)
|
||||
char *path;
|
||||
{
|
||||
struct stat st;
|
||||
if (stat(path, &st) != 0)
|
||||
return -1L;
|
||||
return st.st_mtime;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue