/*
- * $Id: comm.cc,v 1.34 1996/07/09 04:46:50 wessels Exp $
+ * $Id: comm.cc,v 1.35 1996/07/09 04:47:16 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
maxfd = fdstat_biggest_fd() + 1;
for (i = 0; i < maxfd; i++) {
#if USE_ASYNC_IO
- /* Using async IO for disk handle, so don't select on them */
- if (fdstat_type(i) == FD_FILE)
- continue;
+ /* Using async IO for disk handle, so don't select on them */
+ if (fdstat_type(i) == FD_FILE)
+ continue;
#endif
/* Check each open socket for a handler. */
if (fd_table[i].read_handler && fd_table[i].stall_until <= squid_curtime) {
debug(5, 2, "comm_select: Still waiting on %d FDs\n", nfds);
while (1) {
#if USE_ASYNC_IO
- /* Another CPU vs latency tradeoff for async IO */
- poll_time.tv_sec = 0;
- poll_time.tv_usec = 250000;
-#else
+ /* Another CPU vs latency tradeoff for async IO */
+ poll_time.tv_sec = 0;
+ poll_time.tv_usec = 250000;
+#else
poll_time.tv_sec = sec > 1 ? 1 : 0;
poll_time.tv_usec = 0;
#endif
/* NOTREACHED */
}
#if USE_ASYNC_IO
- aioExamine(); /* See if any IO completed */
+ aioExamine(); /* See if any IO completed */
#endif
if (num < 0)
continue;
/*
- * $Id: disk.cc,v 1.14 1996/07/09 04:46:51 wessels Exp $
+ * $Id: disk.cc,v 1.15 1996/07/09 04:47:16 wessels Exp $
*
* DEBUG: section 6 Disk I/O Routines
* AUTHOR: Harvest Derived
comm_set_select_handler(fd,
COMM_SELECT_WRITE,
(PF) diskHandleWrite,
- (void *) &file_table[fd]);
+ (void *) &file_table[fd]);
return DISK_OK;
#endif
}
+
/*
- * $Id: dnsserver.cc,v 1.7 1996/07/09 03:41:22 wessels Exp $
+ * $Id: dnsserver.cc,v 1.8 1996/07/09 04:47:18 wessels Exp $
*
* DEBUG: section 0 DNS Resolver
* AUTHOR: Harvest Derived
+
/*
- * $Id: squid.h,v 1.24 1996/07/09 04:46:52 wessels Exp $
+ * $Id: squid.h,v 1.25 1996/07/09 04:47:23 wessels Exp $
*
* AUTHOR: Duane Wessels
*
/* Prototypes and definitions which don't really deserve a seaprate
- include file */
+ * include file */
#define CONNECT_PORT 443
/*
- * $Id: stat.cc,v 1.35 1996/07/09 03:41:41 wessels Exp $
+ * $Id: stat.cc,v 1.36 1996/07/09 04:47:24 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
#if HAVE_MALLINFO
mp = mallinfo();
storeAppendPrintf(sentry, "{Memory usage for %s via mallinfo():}\n", appname
-);
+ );
storeAppendPrintf(sentry, "{\tTotal space in arena: %6d KB}\n",
- mp.arena >> 10);
+ mp.arena >> 10);
storeAppendPrintf(sentry, "{\tOrdinary blocks: %6d KB %6d blks}\n",
mp.uordblks >> 10, mp.ordblks);
storeAppendPrintf(sentry, "{\tSmall blocks: %6d KB %6d blks}\n",