#if defined(_MSC_VER) /* Microsoft C Compiler ONLY */
#define lseek _lseeki64
#define memccpy _memccpy
-#define mkdir(p) _mkdir(p)
+#define mkdir(p,F) _mkdir((p))
#define mktemp _mktemp
#endif
#define pclose _pclose
if (::stat(path, &swap_sb) < 0) {
debugs (47, 2, "COSS swap space space being allocated.");
-#if _SQUID_MSWIN_
-
- mkdir(path);
-#else
-
mkdir(path, 0700);
-#endif
-
}
/* should check here for directories instead of files, and for file size
} else {
fatalf("Swap directory %s is not a directory.", aPath);
}
-
-#if _SQUID_MSWIN_
-
- } else if (0 == mkdir(aPath)) {
-#else
-
} else if (0 == mkdir(aPath, 0755)) {
-#endif
debugs(47, (should_exist ? 1 : 3), aPath << " created");
created = 1;
} else {
if (dir_pointer == NULL) {
if (errno == ENOENT) {
debugs(36, 0, "storeDirClean: WARNING: Creating " << p1);
-#if _SQUID_MSWIN_
-
- if (mkdir(p1) == 0)
-#else
-
if (mkdir(p1, 0777) == 0)
-#endif
-
return 0;
}
std::string cert_full(db_path + "/" + cert_dir);
std::string size_full(db_path + "/" + size_file);
-#if _SQUID_MSWIN_
- if (mkdir(db_path.c_str()))
-#else
if (mkdir(db_path.c_str(), 0777))
-#endif
throw std::runtime_error("Cannot create " + db_path);
-#if _SQUID_MSWIN_
- if (mkdir(cert_full.c_str()))
-#else
if (mkdir(cert_full.c_str(), 0777))
-#endif
throw std::runtime_error("Cannot create " + cert_full);
std::ofstream size(size_full.c_str());