The fc-cache code uses stat() directly, but we already have a FcStat
helper to workaround misc issues, so export it and convert fc-cache
over. This will be even more important when we add --root support.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
continue;
}
- if (stat ((char *) dir, &statb) == -1)
+ if (FcStat (dir, &statb) == -1)
{
switch (errno) {
case ENOENT:
else
{
target_dir = FcCacheDir (cache);
- if (stat ((char *) target_dir, &target_stat) < 0)
+ if (FcStat (target_dir, &target_stat) < 0)
{
if (verbose)
printf ("%s: %s: missing directory: %s \n",
/* fccache.c */
+FcPublic int
+FcStat (const FcChar8 *file, struct stat *statb);
+
FcPublic const FcChar8 *
FcCacheDir(const FcCache *c);