-# $Id: Makefile.in,v 1.1 1997/07/28 06:41:16 wessels Exp $
+# $Id: Makefile.in,v 1.2 1997/08/25 15:55:19 wessels Exp $
#
prefix = @prefix@
exec_prefix = @exec_prefix@
clean:
+distclean: clean
+ -rm -f Makefile
-# $Id: Makefile.in,v 1.3 1997/07/19 05:01:39 wessels Exp $
+# $Id: Makefile.in,v 1.4 1997/08/25 15:55:20 wessels Exp $
#
prefix = @prefix@
exec_prefix = @exec_prefix@
clean:
$(RM) -f $(ICONS)
+
+distclean: clean
+ -rm -f Makefile
/* Original RCS tag:
* Id: snprintf.c,v 1.1 1995/08/19 20:36:09 papowell Exp */
-static void dopr();
static char *end;
#include "config.h"
#ifdef HAVE_STDARGS
int snprintf(char *str, size_t count, const char *fmt,...);
int vsnprintf(char *str, size_t count, const char *fmt, va_list arg);
+static void dopr(char *, const char *, va_list);
#else
int snprintf();
int vsnprintf();
+static void dopr();
#endif
int
static void dopr_outch(int c);
static void
-dopr(buffer, format, args)
- char *buffer;
- char *format;
- va_list args;
+dopr(char *buffer, const char *format, va_list args)
{
int ch;
long value;
/*
- * $Id: access_log.cc,v 1.4 1997/07/26 04:48:21 wessels Exp $
+ * $Id: access_log.cc,v 1.5 1997/08/25 15:55:21 wessels Exp $
*
* DEBUG: section 46 Access Log
* AUTHOR: Duane Wessels
hierarchyNote(HierarchyLogEntry * hl,
hier_code code,
icp_ping_data * icpdata,
- const char *cache_host)
+ const char *cache_peer)
{
assert(hl != NULL);
hl->code = code;
if (icpdata)
hl->icp = *icpdata;
- xstrncpy(hl->host, cache_host, SQUIDHOSTNAMELEN);
+ xstrncpy(hl->host, cache_peer, SQUIDHOSTNAMELEN);
hl->icp.stop = current_time;
}
/*
- * $Id: cache_cf.cc,v 1.221 1997/08/25 05:29:55 wessels Exp $
+ * $Id: cache_cf.cc,v 1.222 1997/08/25 15:55:22 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
acl_list **Tail = NULL;
acl *a = NULL;
if ((p = peerFindByName(host)) == NULL) {
- debug(15, 0) ("%s, line %d: No cache_host '%s'\n",
+ debug(15, 0) ("%s, line %d: No cache_peer '%s'\n",
cfg_filename, config_lineno, host);
return;
}
domain_ping **L = NULL;
peer *p;
if ((p = peerFindByName(host)) == NULL) {
- debug(15, 0) ("%s, line %d: No cache_host '%s'\n",
+ debug(15, 0) ("%s, line %d: No cache_peer '%s'\n",
cfg_filename, config_lineno, host);
continue;
}
domain_type **L = NULL;
peer *p;
if ((p = peerFindByName(host)) == NULL) {
- debug(15, 0) ("%s, line %d: No cache_host '%s'\n",
+ debug(15, 0) ("%s, line %d: No cache_peer '%s'\n",
cfg_filename, config_lineno, host);
return;
}
/*
- * $Id: cachemgr.cc,v 1.57 1997/08/25 05:29:55 wessels Exp $
+ * $Id: cachemgr.cc,v 1.58 1997/08/25 15:55:22 wessels Exp $
*
* DEBUG: section 0 CGI Cache Manager
* AUTHOR: Harvest Derived
STATS_NETDB,
SHUTDOWN,
REFRESH,
+ PCONN,
#ifdef REMOVE_OBJECT
REMOVE,
#endif
"netdb",
"shutdown",
"refresh",
+ "pconn",
#ifdef REMOVE_OBJECT
"remove",
#endif
"Network Probe Database",
"Shutdown Cache",
"Refresh Object (URL required)",
+ "Persistant Connection Statistics",
#ifdef REMOVE_OBJECT
"Remove Object (URL required)",
#endif
print_option(op, STATS_R);
print_option(op, SHUTDOWN);
print_option(op, REFRESH);
+ print_option(op, PCONN);
#ifdef REMOVE_OBJECT
print_option(op, REMOVE);
#endif
case STATS_HDRS:
case STATS_FDS:
case STATS_NETDB:
+ case PCONN:
case SHUTDOWN:
sprintf(msg, "GET cache_object://%s/%s@%s HTTP/1.0\r\n\r\n",
hostname, op_cmds[op], password);
print_option(op, STATS_F);
print_option(op, STATS_D);
print_option(op, STATS_R);
+ print_option(op, PCONN);
printf("</SELECT>\n");
printf("<INPUT TYPE=\"hidden\" NAME=\"host\" VALUE=\"%s\">\n", hostname);
printf("<INPUT TYPE=\"hidden\" NAME=\"port\" VALUE=\"%d\">\n", portnum);
case STATS_NETDB:
case SHUTDOWN:
case REFRESH:
+ case PCONN:
break;
case PARAM:
if (hasTables) {
case STATS_FDS:
case STATS_NETDB:
case SHUTDOWN:
+ case PCONN:
p_state = 1;
printf("%s", reserve);
break;
/*
- * $Id: tools.cc,v 1.118 1997/08/25 15:49:04 wessels Exp $
+ * $Id: tools.cc,v 1.119 1997/08/25 15:55:25 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
}
static void
-dumpMallocStats()
+dumpMallocStats(void)
{
#if HAVE_MSTATS && HAVE_GNUMALLOC_H
struct mstats ms = mstats();