/*
- * $Id: debug.cc,v 1.41 1997/01/15 18:41:47 wessels Exp $
+ * $Id: debug.cc,v 1.42 1997/01/31 21:16:48 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
if (debug_log_file == NULL)
return;
+#ifdef S_ISREG
if (stat(debug_log_file, &sb) == 0)
if (S_ISREG(sb.st_mode) == 0)
return;
+#endif
/* Rotate numbers 0 through N up one */
for (i = Config.Log.rotateNumber; i > 1;) {
/*
- * $Id: stat.cc,v 1.121 1997/01/19 08:32:13 wessels Exp $
+ * $Id: stat.cc,v 1.122 1997/01/31 21:16:49 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
if ((fname = HTTPCacheInfo->logfilename) == NULL)
return;
+#ifdef S_ISREG
if (stat(fname, &sb) == 0)
if (S_ISREG(sb.st_mode) == 0)
return;
+#endif
debug(18, 1, "stat_rotate_log: Rotating\n");
/*
- * $Id: store.cc,v 1.203 1997/01/31 20:14:53 wessels Exp $
+ * $Id: store.cc,v 1.204 1997/01/31 21:16:50 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
return;
if (strcmp(fname, "none") == 0)
return;
+#ifdef S_ISREG
if (stat(fname, &sb) == 0)
if (S_ISREG(sb.st_mode) == 0)
return;
+#endif
debug(20, 1, "storeRotateLog: Rotating.\n");
/*
- * $Id: useragent.cc,v 1.3 1997/01/15 18:41:50 wessels Exp $
+ * $Id: useragent.cc,v 1.4 1997/01/31 21:16:51 wessels Exp $
*
* DEBUG: section 40 User-Agent logging
* AUTHOR: Joe Ramey <ramey@csc.ti.com>
return;
if (strcmp(fname, "none") == 0)
return;
+#ifdef S_ISREG
if (stat(fname, &sb) == 0)
if (S_ISREG(sb.st_mode) == 0)
return;
+#endif
debug(40, 1, "useragentRotateLog: Rotating.\n");
/* Rotate numbers 0 through N up one */
for (i = Config.Log.rotateNumber; i > 1;) {