From: robertc <> Date: Mon, 20 Oct 2003 18:33:01 +0000 (+0000) Subject: Summary: Merge in Gerards AIX patches. X-Git-Tag: SQUID_3_0_PRE4~1181 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97427e90fd84e196dfee95e2e641e7e01700f8c2;p=thirdparty%2Fsquid.git Summary: Merge in Gerards AIX patches. Keywords: Patches applied: * gerard@eviston.net--squid/squid--aix-fixes--3.0--patch-2 remove declaration of squid_rn_mkfreelist from radix.h * gerard@eviston.net--squid/squid--aix-fixes--3.0--patch-5 typecast ntohl() in wccp.cc * gerard@eviston.net--squid/squid--aix-fixes--3.0--patch-15 first round of template instantiation fixes for g++ * gerard@eviston.net--squid/squid--aix-fixes--3.0--patch-16 template instantiation continued * gerard@eviston.net--squid/squid--aix-fixes--3.0--patch-17 last of the template instantiation stuff * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-2 resync with HEAD * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-3 debug() ==> debugs() round 1 * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-4 casts and format strings * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-5 debug() => debugs() round 2: peer_digest.cc * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-6 casts in stat.cc * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-7 debug() => debugs() round 3 * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-8 cast for ntohl() in wccp.cc * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-9 casts in tools.cc * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-10 fix for duplicate symbol squid_rn_mkfreelist * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-11 explicit template instantiation * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-12 name conflict for 'acl' on AIX, remove typedef * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-13 store_io_aufs.cc: debug() => debugs() 1-liner * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-14 resync with HEAD * ports@eviston.net--aix/squid--aix-fixes--3.0--patch-15 resync with HEAD --- diff --git a/include/radix.h b/include/radix.h index ac6a6eb57c..c963531e86 100644 --- a/include/radix.h +++ b/include/radix.h @@ -1,5 +1,5 @@ /* - * $Id: radix.h,v 1.17 2003/06/19 13:12:00 robertc Exp $ + * $Id: radix.h,v 1.18 2003/10/20 12:33:03 robertc Exp $ */ #ifndef SQUID_RADIX_H @@ -45,8 +45,11 @@ * Radix search tree node layout. */ -struct squid_radix_node { +struct squid_radix_node +{ + struct squid_radix_mask *rn_mklist; /* list of masks contained in subtree */ + struct squid_radix_node *rn_p; /* parent */ short rn_b; /* bit offset; -1-index(netmask) */ char rn_bmask; /* node: mask for bit test */ @@ -54,21 +57,34 @@ struct squid_radix_node { #define RNF_NORMAL 1 /* leaf contains normal route */ #define RNF_ROOT 2 /* leaf is root leaf for tree */ #define RNF_ACTIVE 4 /* This node is alive (for rtfree) */ + union { - struct { /* leaf only data: */ - char *rn_Key; /* object of search */ - char *rn_Mask; /* netmask, if present */ - struct squid_radix_node *rn_Dupedkey; - } rn_leaf; - struct { /* node only data: */ - int rn_Off; /* where to start compare */ - struct squid_radix_node *rn_L; /* progeny */ - struct squid_radix_node *rn_R; /* progeny */ - } rn_node; + + struct { /* leaf only data: */ + char *rn_Key; /* object of search */ + char *rn_Mask; /* netmask, if present */ + + struct squid_radix_node *rn_Dupedkey; + } + + rn_leaf; + + struct { /* node only data: */ + int rn_Off; /* where to start compare */ + + struct squid_radix_node *rn_L; /* progeny */ + + struct squid_radix_node *rn_R; /* progeny */ + } + + rn_node; } rn_u; #ifdef RN_DEBUG + int rn_info; + struct squid_radix_node *rn_twin; + struct squid_radix_node *rn_ybro; #endif }; @@ -80,56 +96,88 @@ struct squid_radix_node { * Annotations to tree concerning potential routes applying to subtrees. */ -struct squid_radix_mask { +struct squid_radix_mask +{ short rm_b; /* bit offset; -1-index(netmask) */ char rm_unused; /* cf. rn_bmask */ unsigned char rm_flags; /* cf. rn_flags */ + struct squid_radix_mask *rm_mklist; /* more masks to try */ union { - char *rmu_mask; /* the mask */ - struct squid_radix_node *rmu_leaf; /* for normal routes */ + char *rmu_mask; /* the mask */ + + struct squid_radix_node *rmu_leaf; /* for normal routes */ } rm_rmu; int rm_refs; /* # of references to this struct */ -} *squid_rn_mkfreelist; +}; + +struct squid_radix_node_head +{ -struct squid_radix_node_head { struct squid_radix_node *rnh_treetop; int rnh_addrsize; /* permit, but not require fixed keys */ int rnh_pktsize; /* permit, but not require fixed keys */ + struct squid_radix_node *(*rnh_addaddr) /* add based on sockaddr */ - (void *v, void *mask, - struct squid_radix_node_head * head, struct squid_radix_node nodes[]); + (void *v, void *mask, + + struct squid_radix_node_head * head, struct squid_radix_node nodes[]); + struct squid_radix_node *(*rnh_addpkt) /* add based on packet hdr */ - (void *v, void *mask, - struct squid_radix_node_head * head, struct squid_radix_node nodes[]); + (void *v, void *mask, + + struct squid_radix_node_head * head, struct squid_radix_node nodes[]); + struct squid_radix_node *(*rnh_deladdr) /* remove based on sockaddr */ - (void *v, void *mask, struct squid_radix_node_head * head); + + (void *v, void *mask, struct squid_radix_node_head * head); + struct squid_radix_node *(*rnh_delpkt) /* remove based on packet hdr */ - (void *v, void *mask, struct squid_radix_node_head * head); + + (void *v, void *mask, struct squid_radix_node_head * head); + struct squid_radix_node *(*rnh_matchaddr) /* locate based on sockaddr */ - (void *v, struct squid_radix_node_head * head); + + (void *v, struct squid_radix_node_head * head); + struct squid_radix_node *(*rnh_lookup) /* locate based on sockaddr */ - (void *v, void *mask, struct squid_radix_node_head * head); + + (void *v, void *mask, struct squid_radix_node_head * head); + struct squid_radix_node *(*rnh_matchpkt) /* locate based on packet hdr */ - (void *v, struct squid_radix_node_head * head); + + (void *v, struct squid_radix_node_head * head); int (*rnh_walktree) /* traverse tree */ - (struct squid_radix_node_head * head, int (*f) (struct squid_radix_node *, void *), void *w); + + (struct squid_radix_node_head * head, int (*f) (struct squid_radix_node *, void *), void *w); + struct squid_radix_node rnh_nodes[3]; /* empty tree for common case */ }; SQUIDCEXTERN void squid_rn_init (void); + SQUIDCEXTERN int squid_rn_inithead(struct squid_radix_node_head **, int); SQUIDCEXTERN int squid_rn_refines(void *, void *); + SQUIDCEXTERN int squid_rn_walktree(struct squid_radix_node_head *, int (*)(struct squid_radix_node *, void *), void *); + SQUIDCEXTERN struct squid_radix_node *squid_rn_addmask(void *, int, int); + SQUIDCEXTERN struct squid_radix_node *squid_rn_addroute(void *, void *, struct squid_radix_node_head *, struct squid_radix_node[2]); + SQUIDCEXTERN struct squid_radix_node *squid_rn_delete(void *, void *, struct squid_radix_node_head *); + SQUIDCEXTERN struct squid_radix_node *squid_rn_insert(void *, struct squid_radix_node_head *, int *, struct squid_radix_node[2]); + SQUIDCEXTERN struct squid_radix_node *squid_rn_match(void *, struct squid_radix_node_head *); + SQUIDCEXTERN struct squid_radix_node *squid_rn_newpair(void *, int, struct squid_radix_node[2]); + SQUIDCEXTERN struct squid_radix_node *squid_rn_search(void *, struct squid_radix_node *); + SQUIDCEXTERN struct squid_radix_node *squid_rn_search_m(void *, struct squid_radix_node *, void *); + SQUIDCEXTERN struct squid_radix_node *squid_rn_lookup(void *, void *, struct squid_radix_node_head *); #endif /* SQUID_RADIX_H */ diff --git a/src/ACL.h b/src/ACL.h index f2cb8ff2e9..fb5cbe0844 100644 --- a/src/ACL.h +++ b/src/ACL.h @@ -1,6 +1,6 @@ /* - * $Id: ACL.h,v 1.10 2003/08/04 22:14:38 robertc Exp $ + * $Id: ACL.h,v 1.11 2003/10/20 12:33:01 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -39,7 +39,7 @@ /* acl.c */ SQUIDCEXTERN void aclDestroyAccessList(acl_access **list); -SQUIDCEXTERN void aclDestroyAcls(acl **); +SQUIDCEXTERN void aclDestroyAcls(ACL **); SQUIDCEXTERN void aclDestroyAclList(acl_list **); SQUIDCEXTERN void aclParseAccessLine(acl_access **); SQUIDCEXTERN void aclParseAclList(acl_list **); @@ -49,7 +49,7 @@ SQUIDCEXTERN err_type aclGetDenyInfoPage(acl_deny_info_list ** head, const char SQUIDCEXTERN void aclParseDenyInfoLine(struct _acl_deny_info_list **); SQUIDCEXTERN void aclDestroyDenyInfoList(struct _acl_deny_info_list **); -SQUIDCEXTERN wordlist *aclDumpGeneric(const acl *); +SQUIDCEXTERN wordlist *aclDumpGeneric(const ACL *); SQUIDCEXTERN void aclCacheMatchFlush(dlink_list * cache); extern void dump_acl_access(StoreEntry * entry, const char *name, acl_access * head); int aclPurgeMethodInUse(acl_access * a); @@ -63,7 +63,7 @@ public: void operator delete(void *); static ACL *Factory (char const *); - static void ParseAclLine(acl ** head); + static void ParseAclLine(ACL ** head); static void Initialize(); static ACL* FindByName(const char *name); @@ -142,7 +142,7 @@ public: void negated(bool isNegated); bool matches (ACLChecklist *)const; int op; - acl *_acl; + ACL *_acl; ACLList *next; private: diff --git a/src/ACLBrowser.cc b/src/ACLBrowser.cc index 017918870a..e048ec1f38 100644 --- a/src/ACLBrowser.cc +++ b/src/ACLBrowser.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLBrowser.cc,v 1.1 2003/02/17 07:01:34 robertc Exp $ + * $Id: ACLBrowser.cc,v 1.2 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -39,5 +39,15 @@ #include "ACLChecklist.h" #include "ACLRegexData.h" +/* explicit template instantiation required for some systems */ + +template class ACLStrategised + +; +template class ACLRequestHeaderStrategy + +; + ACL::Prototype ACLBrowser::RegistryProtoype(&ACLBrowser::RegistryEntry_, "browser"); + ACLStrategised ACLBrowser::RegistryEntry_(new ACLRegexData, ACLRequestHeaderStrategy::Instance(), "browser"); diff --git a/src/ACLIntRange.cc b/src/ACLIntRange.cc index 6d1b49018f..ea57590fb3 100644 --- a/src/ACLIntRange.cc +++ b/src/ACLIntRange.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLIntRange.cc,v 1.2 2003/08/04 22:14:38 robertc Exp $ + * $Id: ACLIntRange.cc,v 1.3 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Robert Collins @@ -37,6 +37,11 @@ #include "squid.h" #include "ACLIntRange.h" +/* explicit instantiation required for some systems */ + +template cbdata_type List > +::CBDATA_List; + void ACLIntRange::parse() { diff --git a/src/ACLMethod.cc b/src/ACLMethod.cc index 0c2b8a47f9..7639b6fcf0 100644 --- a/src/ACLMethod.cc +++ b/src/ACLMethod.cc @@ -1,6 +1,6 @@ /* - * $Id: ACLMethod.cc,v 1.2 2003/07/11 01:40:34 robertc Exp $ + * $Id: ACLMethod.cc,v 1.3 2003/10/20 12:33:01 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -39,7 +39,14 @@ #include "ACLChecklist.h" #include "HttpRequest.h" +/* explicit template instantiation required for some systems */ + +template class ACLStrategised + +; + ACL::Prototype ACLMethod::RegistryProtoype(&ACLMethod::RegistryEntry_, "method"); + ACLStrategised ACLMethod::RegistryEntry_(new ACLMethodData, ACLMethodStrategy::Instance(), "method"); int diff --git a/src/ACLMethodData.cc b/src/ACLMethodData.cc index f935dfd954..048e2d17c7 100644 --- a/src/ACLMethodData.cc +++ b/src/ACLMethodData.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLMethodData.cc,v 1.3 2003/08/04 22:14:38 robertc Exp $ + * $Id: ACLMethodData.cc,v 1.4 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -77,6 +77,11 @@ ACLMethodData::match(method_t toFind) return values->findAndTune (toFind); } +/* explicit instantiation required for some systems */ + +template cbdata_type List +::CBDATA_List; + wordlist * ACLMethodData::dump() { diff --git a/src/ACLMyPort.cc b/src/ACLMyPort.cc index ed1b94d2db..d3f7796134 100644 --- a/src/ACLMyPort.cc +++ b/src/ACLMyPort.cc @@ -1,6 +1,6 @@ /* - * $Id: ACLMyPort.cc,v 1.1 2003/02/25 12:16:55 robertc Exp $ + * $Id: ACLMyPort.cc,v 1.2 2003/10/20 12:33:01 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -38,7 +38,14 @@ #include "ACLIntRange.h" #include "ACLChecklist.h" +/* explicit template instantiation required for some systems */ + +template class ACLStrategised + +; + ACL::Prototype ACLMyPort::RegistryProtoype(&ACLMyPort::RegistryEntry_, "myport"); + ACLStrategised ACLMyPort::RegistryEntry_(new ACLIntRange, ACLMyPortStrategy::Instance(), "myport"); int diff --git a/src/ACLProtocol.cc b/src/ACLProtocol.cc index 2cf6c41a07..1690fc45c5 100644 --- a/src/ACLProtocol.cc +++ b/src/ACLProtocol.cc @@ -1,6 +1,6 @@ /* - * $Id: ACLProtocol.cc,v 1.2 2003/07/11 01:40:34 robertc Exp $ + * $Id: ACLProtocol.cc,v 1.3 2003/10/20 12:33:01 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -39,7 +39,14 @@ #include "ACLChecklist.h" #include "HttpRequest.h" +/* explicit template instantiation required for some systems */ + +template class ACLStrategised + +; + ACL::Prototype ACLProtocol::RegistryProtoype(&ACLProtocol::RegistryEntry_, "proto"); + ACLStrategised ACLProtocol::RegistryEntry_(new ACLProtocolData, ACLProtocolStrategy::Instance(), "proto"); int diff --git a/src/ACLProtocolData.cc b/src/ACLProtocolData.cc index 424eeabe8f..3b9907ea02 100644 --- a/src/ACLProtocolData.cc +++ b/src/ACLProtocolData.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLProtocolData.cc,v 1.3 2003/08/04 22:14:38 robertc Exp $ + * $Id: ACLProtocolData.cc,v 1.4 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -77,6 +77,11 @@ ACLProtocolData::match(protocol_t toFind) return values->findAndTune (toFind); } +/* explicit instantiation required for some systems */ + +template cbdata_type List +::CBDATA_List; + wordlist * ACLProtocolData::dump() { diff --git a/src/ACLReferer.cc b/src/ACLReferer.cc index 5436eeb7de..e56783c5e6 100644 --- a/src/ACLReferer.cc +++ b/src/ACLReferer.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLReferer.cc,v 1.1 2003/02/17 07:01:34 robertc Exp $ + * $Id: ACLReferer.cc,v 1.2 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -39,5 +39,12 @@ #include "ACLChecklist.h" #include "ACLRegexData.h" +/* explicit template instantiation required for some systems */ + +template class ACLRequestHeaderStrategy + +; + ACL::Prototype ACLReferer::RegistryProtoype(&ACLReferer::RegistryEntry_, "referer_regex"); + ACLStrategised ACLReferer::RegistryEntry_(new ACLRegexData, ACLRequestHeaderStrategy::Instance(), "referer_regex"); diff --git a/src/ACLReplyMIMEType.cc b/src/ACLReplyMIMEType.cc index 756ddc4250..7a2fecd5b8 100644 --- a/src/ACLReplyMIMEType.cc +++ b/src/ACLReplyMIMEType.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLReplyMIMEType.cc,v 1.1 2003/02/25 12:16:55 robertc Exp $ + * $Id: ACLReplyMIMEType.cc,v 1.2 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -39,5 +39,12 @@ #include "ACLChecklist.h" #include "ACLRegexData.h" +/* explicit template instantiation required for some systems */ + +template class ACLReplyHeaderStrategy + +; + ACL::Prototype ACLReplyMIMEType::RegistryProtoype(&ACLReplyMIMEType::RegistryEntry_, "rep_mime_type"); + ACLStrategised ACLReplyMIMEType::RegistryEntry_(new ACLRegexData, ACLReplyHeaderStrategy::Instance(), "rep_mime_type"); diff --git a/src/ACLRequestMIMEType.cc b/src/ACLRequestMIMEType.cc index 3331a65764..06befa18f7 100644 --- a/src/ACLRequestMIMEType.cc +++ b/src/ACLRequestMIMEType.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLRequestMIMEType.cc,v 1.1 2003/02/17 07:01:34 robertc Exp $ + * $Id: ACLRequestMIMEType.cc,v 1.2 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -39,5 +39,12 @@ #include "ACLChecklist.h" #include "ACLRegexData.h" +/* explicit template instantiation required for some systems */ + +template class ACLRequestHeaderStrategy + +; + ACL::Prototype ACLRequestMIMEType::RegistryProtoype(&ACLRequestMIMEType::RegistryEntry_, "req_mime_type"); + ACLStrategised ACLRequestMIMEType::RegistryEntry_(new ACLRegexData, ACLRequestHeaderStrategy::Instance(), "req_mime_type"); diff --git a/src/acl.cc b/src/acl.cc index 505aebf0c4..2cb8d4b974 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,5 +1,5 @@ /* - * $Id: acl.cc,v 1.312 2003/09/21 00:30:46 robertc Exp $ + * $Id: acl.cc,v 1.313 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -52,10 +52,10 @@ ACL::operator delete (void *address) fatal ("unusable ACL::delete"); } -acl * +ACL * ACL::FindByName(const char *name) { - acl *a; + ACL *a; for (a = Config.aclList; a; a = a->next) if (!strcasecmp(a->name, name)) @@ -78,11 +78,11 @@ ACL::Factory (char const *type) ACL::ACL () {} void -ACL::ParseAclLine(acl ** head) +ACL::ParseAclLine(ACL ** head) { /* we're already using strtok() to grok the line */ char *t = NULL; - acl *A = NULL; + ACL *A = NULL; LOCAL_ARRAY(char, aclname, ACL_NAME_SZ); int new_acl = 0; @@ -200,7 +200,7 @@ aclIsProxyAuth(const char *name) if (NULL == name) return false; - acl *a; + ACL *a; if ((a = ACL::FindByName(name))) return a->isProxyAuth(); @@ -338,7 +338,7 @@ void aclParseAclList(acl_list ** head) { acl_list **Tail = head; /* sane name in the use below */ - acl *a = NULL; + ACL *a = NULL; char *t; /* next expect a list of ACL names, possibly preceeded @@ -482,11 +482,11 @@ ACLList::matches (ACLChecklist *checklist) const /*********************/ void -aclDestroyAcls(acl ** head) +aclDestroyAcls(ACL ** head) { ACL *next = NULL; - for (acl *a = *head; a; a = next) { + for (ACL *a = *head; a; a = next) { next = a->next; delete a; } @@ -687,7 +687,7 @@ ACL::Prototype::Factory (char const *typeToClone) void ACL::Initialize() { - acl *a = Config.aclList; + ACL *a = Config.aclList; debug(53, 3) ("ACL::Initialize\n"); while (a) { diff --git a/src/asn.cc b/src/asn.cc index 42b8f7ddd1..9ba0887940 100644 --- a/src/asn.cc +++ b/src/asn.cc @@ -1,6 +1,6 @@ /* - * $Id: asn.cc,v 1.97 2003/08/10 11:00:40 robertc Exp $ + * $Id: asn.cc,v 1.98 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 53 AS Number handling * AUTHOR: Duane Wessels, Kostas Anagnostakis @@ -63,6 +63,11 @@ typedef u_char m_int[1 + sizeof(unsigned int)]; struct squid_radix_node_head *AS_tree_head; +/* explicit instantiation required for some systems */ + +template cbdata_type List +::CBDATA_List; + /* * Structure for as number information. it could be simply * a list but it's coded as a structure for future @@ -105,15 +110,21 @@ struct _rtentry typedef struct _rtentry rtentry_t; static int asnAddNet(char *, int); + static void asnCacheStart(int as); + static STCB asHandleReply; static int destroyRadixNode(struct squid_radix_node *rn, void *w); static int printRadixNode(struct squid_radix_node *rn, void *sentry); -void asnAclInitialize(acl * acls); + +void asnAclInitialize(ACL * acls); + static void asStateFree(void *data); + static void destroyRadixNodeInfo(as_info *); + static OBJH asnStats; /* PUBLIC */ @@ -623,9 +634,18 @@ ACLASN::clone() const return new ACLASN(*this); } +/* explicit template instantiation required for some systems */ + +template class ACLStrategised + +; + ACL::Prototype ACLASN::SourceRegistryProtoype(&ACLASN::SourceRegistryEntry_, "src_as"); + ACLStrategised ACLASN::SourceRegistryEntry_(new ACLASN, ACLSourceASNStrategy::Instance(), "src_as"); + ACL::Prototype ACLASN::DestinationRegistryProtoype(&ACLASN::DestinationRegistryEntry_, "dst_as"); + ACLStrategised ACLASN::DestinationRegistryEntry_(new ACLASN, ACLDestinationASNStrategy::Instance(), "dst_as"); int diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 79a300c39c..3a608ad54e 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.450 2003/09/01 03:49:37 robertc Exp $ + * $Id: cache_cf.cc,v 1.451 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -716,7 +716,7 @@ parseBytesUnits(const char *unit) *****************************************************************************/ static void -dump_acl(StoreEntry * entry, const char *name, acl * ae) +dump_acl(StoreEntry * entry, const char *name, ACL * ae) { wordlist *w; wordlist *v; @@ -742,13 +742,13 @@ dump_acl(StoreEntry * entry, const char *name, acl * ae) } static void -parse_acl(acl ** ae) +parse_acl(ACL ** ae) { ACL::ParseAclLine(ae); } static void -free_acl(acl ** ae) +free_acl(ACL ** ae) { aclDestroyAcls(ae); } diff --git a/src/comm.cc b/src/comm.cc index 5b40275cd8..76db40b1c7 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.390 2003/10/06 01:20:07 robertc Exp $ + * $Id: comm.cc,v 1.391 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -2692,6 +2692,11 @@ DeferredReadManager::~DeferredReadManager() { assert (deferredReads.empty()); } +/* explicit instantiation required for some systems */ + +template cbdata_type List +::CBDATA_List; + void DeferredReadManager::delayRead(DeferredRead const &aRead) { debug (5, 3)("Adding deferred read on fd %d\n", aRead.theRead.fd); diff --git a/src/external_acl.cc b/src/external_acl.cc index 94d40e1966..2bd3b70f14 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -1,6 +1,6 @@ /* - * $Id: external_acl.cc,v 1.53 2003/08/10 11:00:43 robertc Exp $ + * $Id: external_acl.cc,v 1.54 2003/10/20 12:33:01 robertc Exp $ * * DEBUG: section 82 External ACL * AUTHOR: Henrik Nordstrom, MARA Systems AB @@ -1188,7 +1188,7 @@ ExternalACLLookup::checkForAsync(ACLChecklist *checklist)const { /* TODO: optimise this - we probably have a pointer to this * around somewhere */ - acl *acl = ACL::FindByName(AclMatchedName); + ACL *acl = ACL::FindByName(AclMatchedName); ACLExternal *me = dynamic_cast (acl); assert (me); checklist->asyncInProgress(true); diff --git a/src/fs/aufs/store_io_aufs.cc b/src/fs/aufs/store_io_aufs.cc index c0acdfe62b..c5b8c510c5 100644 --- a/src/fs/aufs/store_io_aufs.cc +++ b/src/fs/aufs/store_io_aufs.cc @@ -173,7 +173,7 @@ AUFSFile::open (int flags, mode_t mode, IORequestor::Pointer callback) void AUFSFile::read(char *buf, off_t offset, size_t size) { - debug(79, 3) ("AUFSFile::read: %p, size %u\n", this, size); + debugs(79, 3, "AUFSFile::read: " << this << ", size " << size); assert (fd > -1); assert (ioRequestor.getRaw()); statCounter.syscalls.disk.reads++; diff --git a/src/structs.h b/src/structs.h index c22c9c5fcb..86761ed5f5 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.483 2003/10/16 21:40:16 robertc Exp $ + * $Id: structs.h,v 1.484 2003/10/20 12:33:01 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -111,8 +111,6 @@ struct _snmp_request_t #endif -typedef class ACL acl; - struct _acl_address { @@ -565,7 +563,8 @@ struct _SquidConfig } onoff; - acl *aclList; + + class ACL *aclList; struct {