* machines sharing the same filesystem will have clocks
* reasonably close to each other.
*/
- if (stat ((char *) atomic->lck, &lck_stat) >= 0)
+ if (FcStat ((char *) atomic->lck, &lck_stat) >= 0)
{
time_t now = time (0);
if ((long int) (now - lck_stat.st_mtime) > 10 * 60)
* just use the UTC timestamps from NTFS, converted to the Unix epoch.
*/
-static int
+int
FcStat (const char *file, struct stat *statb)
{
WIN32_FILE_ATTRIBUTE_DATA wfad;
return 0;
}
-
-#else
-
-#define FcStat stat
-
#endif
static const char bin2hex[] = { '0', '1', '2', '3',
if (list)
{
while ((file = FcStrListNext (list)))
- if (stat ((char *) file, &statb) == 0)
+ if (FcStat ((char *) file, &statb) == 0)
if (!newest.set || statb.st_mtime - newest.time > 0)
{
newest.set = FcTrue;
{
struct stat statb;
- if (stat ((const char *) file, &statb) != 0)
+ if (FcStat ((const char *) file, &statb) != 0)
return FcFalse;
return S_ISDIR(statb.st_mode);
}
ret = FcFalse;
goto bail_1;
}
- if (stat ((char *) dir, &dir_stat) < 0)
+ if (FcStat ((char *) dir, &dir_stat) < 0)
{
ret = FcFalse;
goto bail_1;
FcPrivate void
FcDirCacheReference (FcCache *cache, int nref);
+#ifdef _WIN32
+FcPrivate int
+FcStat (const char *file, struct stat *statb)
+#else
+#define FcStat stat
+#endif
+
/* fccfg.c */
FcPrivate FcBool