+2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Use unix functions for temporary files and special files on cygwin.
+
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
Define functions explicitly rather than using --defsym in tests
return st.st_mtime;
}
+#endif
+
+#if defined (__CYGWIN__) || (!defined (__MINGW32__) && !defined (__AROS__))
+
int
grub_util_is_special_file (const char *path)
{
return ret;
}
+#ifndef __CYGWIN__
+
static char *
get_temp_name (void)
{
return ret;
}
+#endif
+
int
grub_util_is_directory (const char *name)
{
return fopen (path, mode);
}
-int
-grub_util_is_special_file (const char *path)
-{
- struct stat st;
-
- if (lstat (path, &st) == -1)
- return 1;
- return (!S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode));
-}
-
#endif