Logo
Explore Help
Sign In
1berry/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Packages Projects Releases Wiki Activity
cpython/Mac/Python/macgetmtime.c

14 lines
179 B
C
Raw Normal View History

Completed (hopefully) the unification of THINK 6.0 and MPW 3.2 versions -- they now share config.c and config.h, and statting is always done through macstat.[ch] (THINK's <stat.h> defines funny constants). Also the configuration of stdwin is done differently: you have to define USE_STDWIN to the compiler prefix.
1994-08-29 08:42:37 +00:00
#include "macstat.h"
Initial revision
1994-01-05 16:17:15 +00:00
/* Interfaced used by import.c */
long
getmtime(path)
char *path;
{
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2 versions -- they now share config.c and config.h, and statting is always done through macstat.[ch] (THINK's <stat.h> defines funny constants). Also the configuration of stdwin is done differently: you have to define USE_STDWIN to the compiler prefix.
1994-08-29 08:42:37 +00:00
struct macstat st;
if (macstat(path, &st) != 0)
Initial revision
1994-01-05 16:17:15 +00:00
return -1L;
return st.st_mtime;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 73ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API