]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
16 years agoRemoved AUTH_LIBS_TO_ADD as unused. auth/libauth.la now includes conditionally
Alex Rousskov [Sun, 8 Mar 2009 19:38:12 +0000 (13:38 -0600)] 
Removed AUTH_LIBS_TO_ADD as unused. auth/libauth.la now includes conditionally
built auth libraries and src/Makefile.am no longer needs to know about them.

Added acl/Makefile generation.

Context: SourceLayout: acl/, take 1

16 years agoMoved src/ACL* and a few related files into src/acl/.
Alex Rousskov [Sun, 8 Mar 2009 19:34:36 +0000 (13:34 -0600)] 
Moved src/ACL* and a few related files into src/acl/.
Renamed ACL source files from ACLFoo.{cc,cci,h} to Foo.{cc,cci,h}.

Many targets in src/Makefile.am depended on selected ACL ACL*cc and related
sources.  These targets depend on acl/* libraries now. As a part of this
cleanup and reorganization, the number of ufsdump sources went from about 160
to about 20.

Context: SourceLayout: acl/, take 1

16 years agoThis file does not need to include authenticate.h, apparently.
Alex Rousskov [Sat, 7 Mar 2009 21:07:45 +0000 (14:07 -0700)] 
This file does not need to include authenticate.h, apparently.

16 years agoThis file does not need to include authenticate.h, apparently.
Alex Rousskov [Sat, 7 Mar 2009 20:43:32 +0000 (13:43 -0700)] 
This file does not need to include authenticate.h, apparently.

16 years agoRemoved unused #includes.
Alex Rousskov [Wed, 4 Mar 2009 22:56:29 +0000 (15:56 -0700)] 
Removed unused #includes.

16 years agoMoved Ecap namespace into Adaptation namespace, to match the sources directory
Alex Rousskov [Fri, 27 Feb 2009 16:38:06 +0000 (09:38 -0700)] 
Moved Ecap namespace into Adaptation namespace, to match the sources directory
structure and Icap namespace placement.

16 years agoMerged from trunk.
Alex Rousskov [Fri, 27 Feb 2009 15:52:31 +0000 (08:52 -0700)] 
Merged from trunk.

16 years agoSourceLayout: src/auth, take 0: Moved src/AuthFoo* to src/auth/Foo*, polished.
Alex Rousskov [Fri, 27 Feb 2009 15:45:17 +0000 (08:45 -0700)] 
SourceLayout: src/auth, take 0: Moved src/AuthFoo* to src/auth/Foo*, polished.
SourceLayout: src/fs, take 0: Polished Makefiles.

These fixes should have no runtime effects and were triggered by an attempt to
make "make distclean" work. TODO: add Auth and Fs namespaces, rename classes.

16 years agoMerged from trunk.
Alex Rousskov [Fri, 27 Feb 2009 15:36:53 +0000 (08:36 -0700)] 
Merged from trunk.

16 years agoMerged from trunk.
Alex Rousskov [Fri, 27 Feb 2009 15:34:07 +0000 (08:34 -0700)] 
Merged from trunk.

16 years agoFixed "make distuninstallcheck" by removing installed configuration files
Alex Rousskov [Fri, 27 Feb 2009 15:25:31 +0000 (08:25 -0700)] 
Fixed "make distuninstallcheck" by removing installed configuration files
iff they are identical to the installed default configuration files.

Added scripts/remove-cfg.sh to do the safe removal because we need that
functionality in many Makefiles.

Made installed mime.conf removal safe. We were removing it without checking
for modifications.

Added commands to remove the following installed default configuration
files: cachemgr.conf.default and msntauth.conf.default.

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 27 Feb 2009 12:25:42 +0000 (01:25 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Fix missing documentation for auth_param utf8 translation feature.

Missed out of original Squid-3 patch.

16 years agoAdd a dummy file called testHeaders to CLEANFILES.
Alex Rousskov [Fri, 27 Feb 2009 04:58:29 +0000 (21:58 -0700)] 
Add a dummy file called testHeaders to CLEANFILES.
It is created by testheaders.sh and distclean does not know about it.
The change can be reversed when testheaders.sh and its users are fixed.

16 years agoSourceLayout: adaptation/{icap,ecap}, take 1 with tweaks
Alex Rousskov [Thu, 26 Feb 2009 16:41:28 +0000 (09:41 -0700)] 
SourceLayout: adaptation/{icap,ecap}, take 1 with tweaks

Moved src/ICAP into src/adaptation/icap.
Moved src/eCAP into src/adaptation/ecap.

Renamed ICAP source files from ICAPFoo.{cc,h} to Foo.{cc,h}.

Placed ICAP names into Adaptation::Icap namespace, renaming ICAPFoo to
Adaptation::Icap::Foo.

16 years agoMerged from trunk.
Alex Rousskov [Thu, 26 Feb 2009 16:30:22 +0000 (09:30 -0700)] 
Merged from trunk.

16 years agoUse HERE instead of hard-coded file and method names that tend to get out of
Alex Rousskov [Thu, 26 Feb 2009 16:27:40 +0000 (09:27 -0700)] 
Use HERE instead of hard-coded file and method names that tend to get out of
sync.

16 years agoMerged from trunk.
Alex Rousskov [Thu, 26 Feb 2009 15:47:50 +0000 (08:47 -0700)] 
Merged from trunk.

16 years agoTestBed: correct log handling.
Amos Jeffries [Thu, 26 Feb 2009 03:58:09 +0000 (16:58 +1300)] 
TestBed: correct log handling.

Removal of the log MUST happen after the log has been checked for a
successful run. Removal of run data MAY hapen before this.
Probably data SHOULD be removed early to prevent excess data between runs.

16 years agoImprove documentation of vary_ignore_expire
Amos Jeffries [Thu, 26 Feb 2009 00:58:24 +0000 (13:58 +1300)] 
Improve documentation of vary_ignore_expire

16 years agoMerged from trunk.
Alex Rousskov [Wed, 25 Feb 2009 20:59:20 +0000 (13:59 -0700)] 
Merged from trunk.

16 years agoSourceLayout: src/fs, take 0
Alex Rousskov [Wed, 25 Feb 2009 20:35:16 +0000 (13:35 -0700)] 
SourceLayout: src/fs, take 0

Simplified and documented STORE_* autotools variables.
All fs code is built as fs/lib*.a libraries now, no exception for
diskd and aufs "fake" legacy modules.
fs/* sources are no longer added to executables directly.

TODO: Add Makefiles to specific fs modules.
TODO: Add Fs namespace and rename fs classes accordingly.

testHeaders in fs/Makefile.am requires absolute source directories for
out-of-tree checks to work.

Removed src/ip/stubQosConfig.cc from STORE_TEST_SOURCES. It does not seem to
be needed in my tests. If it is needed, the stub file should be moved into
src/tests to avoid dependency on a source in a directory with a Makefile.  If
the stub is not needed at all, it should be removed from the tree. Note that
src/ip/stubQosConfig.cc is non-empty only when --enable-zph-qos.

These changes were triggered by an attempt to make "make distclean" work.

16 years agoTestBed: temporarily remove distcheck again.
Amos Jeffries [Wed, 25 Feb 2009 09:02:18 +0000 (22:02 +1300)] 
TestBed: temporarily remove distcheck again.

Much more fixes and testing of fixes is needed until this runs clean.

TODO:
out-of-tree translation needs to be double-checked
uninstall procedure need to handle config files properly

16 years agotestheaders.sh needs an absolute source directory to work when building
Alex Rousskov [Wed, 25 Feb 2009 06:08:49 +0000 (23:08 -0700)] 
testheaders.sh needs an absolute source directory to work when building
outside of source tree (e.g., when running ./test-builds.sh)

16 years agoTestBed: fix translation errors from out-of-tree distcheck
Amos Jeffries [Wed, 25 Feb 2009 04:08:59 +0000 (21:08 -0700)] 
TestBed: fix translation errors from out-of-tree distcheck

TODO: other errors from distcheck.

16 years agoLanguage: Greek
Amos Jeffries [Wed, 25 Feb 2009 01:42:42 +0000 (14:42 +1300)] 
Language: Greek

16 years agoLanguage: Greek
Amos Jeffries [Wed, 25 Feb 2009 01:38:45 +0000 (14:38 +1300)] 
Language: Greek

16 years agoSourceLayout: src/auth, take 0
Alex Rousskov [Tue, 24 Feb 2009 23:52:44 +0000 (16:52 -0700)] 
SourceLayout: src/auth, take 0

Moved src/AuthFoo* to src/auth/Foo*
All auth libraries are built in auth/ now.

Simplified and documented AUTH_* autotools variables.

Auth sources are no longer added to executables directly.

TODO: Add Makefiles to specific auth modules.
TODO: Add Auth namespace and rename auth classes accordingnly.

These changes were triggered by a yet unfinished attempt to make
"make distclean" work.

16 years agoAdd MYNAME macro for use in debugs
Amos Jeffries [Tue, 24 Feb 2009 01:38:49 +0000 (14:38 +1300)] 
Add MYNAME macro for use in debugs

TODO: determine what OS and compilers are missing __PRETTY_FUNCTION__
      and define a good alternative for them.

16 years agoRegression Fix: Bug 2586: Memory leaks on reconfigure
Christos Tsantilas [Mon, 23 Feb 2009 23:18:23 +0000 (01:18 +0200)] 
Regression Fix: Bug 2586: Memory leaks on reconfigure

The patch is not correct. Some of the objects freed here can be in use
during reconfigure.

16 years agoFix: appname is now APP_SHORTNAME
Amos Jeffries [Mon, 23 Feb 2009 12:14:54 +0000 (01:14 +1300)] 
Fix: appname is now APP_SHORTNAME

16 years agoAuthor: frencesco chemolli <kinkie@squid-cache.org>
Amos Jeffries [Mon, 23 Feb 2009 11:05:52 +0000 (00:05 +1300)] 
Author: frencesco chemolli <kinkie@squid-cache.org>
testBed: add parallel make capability to build testing

This small patch to the test-suite system allows for parallel-make in
the test-suite (only on Linux). This will allow for shorter build-test
times on multicpu/multicore systems.

16 years agoTestBed: add distcheck to tested build procedures
Amos Jeffries [Mon, 23 Feb 2009 10:59:18 +0000 (23:59 +1300)] 
TestBed: add distcheck to tested build procedures

Also removed distclean filecount hack. With Henriks adjustments the log
is no longer in the test build directory.

16 years agoCorrect debugs output from tunnel comm error
Amos Jeffries [Mon, 23 Feb 2009 10:55:43 +0000 (23:55 +1300)] 
Correct debugs output from tunnel comm error

16 years agoAuthor: Henrik Nordstrom <hno@squid-cache.org>
Amos Jeffries [Mon, 23 Feb 2009 10:33:39 +0000 (23:33 +1300)] 
Author: Henrik Nordstrom <hno@squid-cache.org>
TestBed: Allow out-of-tree builds and separate .opts files.

logfile creation moved to test-builds.sh, where it's used.

--verbose mode for showing the actual output while tests is running

test-build.sh generally cleaned up a bit with less duplicated code

16 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Mon, 23 Feb 2009 09:41:36 +0000 (22:41 +1300)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug 2599: Idempotent start

As discussed on squid-dev, Squid shouldn't return a shell error when:
  - starting squid, if it's already running
  - stopping squid, if it isn't running
This is to make writing scripts that control squid easier.

Note that it should still notify the user, and should not affect other
operations (e.g., kill, rotate, parse).

16 years agoMake broken_posts feature is an HTTP violation.
Amos Jeffries [Sun, 22 Feb 2009 23:09:09 +0000 (12:09 +1300)] 
Make broken_posts feature is an HTTP violation.

broken_posts control when enabled is committing an RFC2616 violation.

This patch limits it's use to builds with explicit --enable-http-violations.

TODO: I think its complete, but there may be more code to limit out.

16 years agoLanguage Updates
Amos Jeffries [Sun, 22 Feb 2009 04:44:33 +0000 (17:44 +1300)] 
Language Updates

16 years agoLanguage Updates: Latvian
Amos Jeffries [Sun, 22 Feb 2009 04:30:50 +0000 (17:30 +1300)] 
Language Updates: Latvian

16 years agoTypo in netmask hack
Amos Jeffries [Sun, 22 Feb 2009 03:40:03 +0000 (16:40 +1300)] 
Typo in netmask hack

16 years agoFix ICMP unit test headers
Amos Jeffries [Sat, 21 Feb 2009 11:01:48 +0000 (04:01 -0700)] 
Fix ICMP unit test headers

16 years agoBug 2601: Hack. Convert IPv4 netmasks to CIDR in IPv6-enabled mode
Amos Jeffries [Sat, 21 Feb 2009 03:56:39 +0000 (16:56 +1300)] 
Bug 2601: Hack. Convert IPv4 netmasks to CIDR in IPv6-enabled mode

se bug 2601 for trace demonstrating the effect of masking an IPv6 address
with and IPv4 netmask intead of a CIDR mask.

This hack, locates what CIDR mask was _probably_ meant to be in its
native protocol format. Then resets the mask to that CIDR form.

This will completely crap out with a security fail-open if the admin is
playing mask tricks.  However, thats their fault, and we do warn loudly.

16 years agoRenamed ICAP source files from icap/ICAPFoo.{cc,h} to icap/Foo.{cc,h}.
Alex Rousskov [Fri, 20 Feb 2009 19:08:58 +0000 (12:08 -0700)] 
Renamed ICAP source files from icap/ICAPFoo.{cc,h} to icap/Foo.{cc,h}.

Placed ICAP names into Adaptation::Icap namespace, renaming ICAPFoo to
Adaptation::Icap::Foo.

16 years agoUse newly added CBDATA_NAMESPACED_CLASS_INIT.
Alex Rousskov [Fri, 20 Feb 2009 18:53:22 +0000 (11:53 -0700)] 
Use newly added CBDATA_NAMESPACED_CLASS_INIT.

16 years agoAdded CBDATA_NAMESPACED_CLASS_INIT to define static members of classes that
Alex Rousskov [Fri, 20 Feb 2009 18:48:56 +0000 (11:48 -0700)] 
Added CBDATA_NAMESPACED_CLASS_INIT to define static members of classes that
live in a namespace.

The alternative was to change CBDATA_CLASS_* macros so that the static member
name does not depend on the type. That may have been better, but perhaps there
are some, unknown to me, low-level reasons why unique member names are
required for class cbdata code to work.

16 years agofix adaptation service config parsing
Christos Tsantilas [Fri, 20 Feb 2009 16:54:40 +0000 (18:54 +0200)] 
fix adaptation service config parsing

16 years agoDebugs for ACLIP comparison (level 9)
Amos Jeffries [Fri, 20 Feb 2009 09:54:09 +0000 (22:54 +1300)] 
Debugs for ACLIP comparison (level 9)

16 years agoMerged from trunk.
Alex Rousskov [Fri, 20 Feb 2009 00:14:30 +0000 (17:14 -0700)] 
Merged from trunk.

16 years agoFix: allow squid_kerb_auth access to libcompat
Amos Jeffries [Fri, 20 Feb 2009 00:00:09 +0000 (13:00 +1300)] 
Fix: allow squid_kerb_auth access to libcompat

16 years agoUpdates auto-save
Amos Jeffries [Thu, 19 Feb 2009 23:02:28 +0000 (12:02 +1300)] 
Updates auto-save

16 years agoBuild ip before icmp because icmp tests require ip/libip
Alex Rousskov [Thu, 19 Feb 2009 22:55:24 +0000 (15:55 -0700)] 
Build ip before icmp because icmp tests require ip/libip
This bug was found by test-builds.sh.

16 years agoMoved src/ICAP into src/adaptation/icap.
Alex Rousskov [Thu, 19 Feb 2009 22:35:50 +0000 (15:35 -0700)] 
Moved src/ICAP into src/adaptation/icap.
Moved src/eCAP into src/adaptation/ecap.

As a side effect, eCAP now tests its headers. MessageRep.h needed to include
config.h to pass the tests, which probably indicates a bug in some other
header (possibly enums.h).

ICAP source file names still need to be changed.

16 years agoMerged from trunk.
Alex Rousskov [Thu, 19 Feb 2009 20:42:45 +0000 (13:42 -0700)] 
Merged from trunk.

16 years agoUse Common.am and TestHeaders.am instead of replicating their code.
Alex Rousskov [Thu, 19 Feb 2009 20:38:18 +0000 (13:38 -0700)] 
Use Common.am and TestHeaders.am instead of replicating their code.

16 years agotestheaders.sh do not require the source directory to end with a slash (/).
Alex Rousskov [Thu, 19 Feb 2009 20:36:37 +0000 (13:36 -0700)] 
testheaders.sh do not require the source directory to end with a slash (/).

16 years agoFixed default -I options: there are no headers in $(top_builddir)/lib/ but
Alex Rousskov [Thu, 19 Feb 2009 20:28:48 +0000 (13:28 -0700)] 
Fixed default -I options: there are no headers in $(top_builddir)/lib/ but
there is autoconf.h in $(top_builddir)/include/

Fixed hard-coded OBJS dependencies: autoconf.h is in $(top_builddir)/include/
The bug apparently did not bother anyobody too much, adding to my suspicion
that we do not really need these hard-coded OBJS dependencies.

16 years agoMerged from trunk.
Alex Rousskov [Thu, 19 Feb 2009 19:17:16 +0000 (12:17 -0700)] 
Merged from trunk.

16 years agoUse automake comments in automake makefiles.
Alex Rousskov [Thu, 19 Feb 2009 19:16:18 +0000 (12:16 -0700)] 
Use automake comments in automake makefiles.

16 years agoSourceLayout: src/base, take 0 with tweaks
Alex Rousskov [Thu, 19 Feb 2009 19:00:01 +0000 (12:00 -0700)] 
SourceLayout: src/base, take 0 with tweaks

Added src/base directory for fundamental, commonly-used code pieces that are
not large enough to warrant their own directories. Currently base/ contains
the beginning of AsyncCalls hierarchy, which may eventually get its own
directory.

Removed src/ip from the top-level SUBDIRS list. Made cf_gen compile without
libip.

Started building makefile includes, to be used in subdir makefiles:
src/Common.am and src/TestHeaders.am.

16 years agotestHeaders is not a program that needs to be built. It is a phony target.
Alex Rousskov [Thu, 19 Feb 2009 18:35:32 +0000 (11:35 -0700)] 
testHeaders is not a program that needs to be built. It is a phony target.

Polished comments.

16 years agoMoved header testing from Common.am to TestHeaders.am. Not all makefiles
Alex Rousskov [Thu, 19 Feb 2009 18:19:37 +0000 (11:19 -0700)] 
Moved header testing from Common.am to TestHeaders.am. Not all makefiles
using Common.am will use a standardized header test, at least for now.
We have makefiles that test headers in subdirectories, for example.

16 years agoRenamed common.am to Common.am to better blend with Makefile.am and sources
Alex Rousskov [Thu, 19 Feb 2009 17:40:19 +0000 (10:40 -0700)] 
Renamed common.am to Common.am to better blend with Makefile.am and sources
naming scheme.

16 years agoUpdates auto-save
Amos Jeffries [Thu, 19 Feb 2009 17:00:33 +0000 (06:00 +1300)] 
Updates auto-save

16 years agoCorrect parsing of syslog:... log files. Was destroying the configured parameters.
Henrik Nordstrom [Thu, 19 Feb 2009 09:36:01 +0000 (10:36 +0100)] 
Correct parsing of syslog:... log files. Was destroying the configured parameters.

Forward-port from squid-2. Detected by GCC-4.4.

16 years agoAdded buildtest parallelization (only available on Linux)
Francesco Chemolli [Thu, 19 Feb 2009 08:56:47 +0000 (09:56 +0100)] 
Added buildtest parallelization (only available on Linux)

16 years agoMerged from trunk.
Alex Rousskov [Thu, 19 Feb 2009 07:19:01 +0000 (00:19 -0700)] 
Merged from trunk.

16 years agoMoved src/ICAP/AsyncJob.* to src/base/ to prepare for the src/ICAP move to
Alex Rousskov [Thu, 19 Feb 2009 07:17:31 +0000 (00:17 -0700)] 
Moved src/ICAP/AsyncJob.* to src/base/ to prepare for the src/ICAP move to
src/adaptation/icap.

16 years agoAdded src/base directory for fundamental, commonly-used code pieces that are
Alex Rousskov [Thu, 19 Feb 2009 07:16:14 +0000 (00:16 -0700)] 
Added src/base directory for fundamental, commonly-used code pieces that are
not large enough to warrant their own directories. Currently base/ contains
the beginning of AsyncCalls hierarchy, which may eventually get its own
directory.

Reduced cf_gen dependencies so that it can be built before subdirectories,
as, apparently, required by BUILT_SOURCES.

Moved some libraries that are used by virtually all executables to COMMON_LIBS.
The list will probably grow as we try to reduce the insane complexity of the
current Makefile.am.

16 years agoAdded src/base directory for fundamental, commonly-used code pieces that are
Alex Rousskov [Thu, 19 Feb 2009 07:15:47 +0000 (00:15 -0700)] 
Added src/base directory for fundamental, commonly-used code pieces that are
not large enough to warrant their own directories. Currently base/ contains
the beginning of AsyncCalls hierarchy, which may eventually get its own
directory.

16 years agoCopied common Makefile.am stuff seen in a few Makefile.ams to a single
Alex Rousskov [Thu, 19 Feb 2009 07:14:08 +0000 (00:14 -0700)] 
Copied common Makefile.am stuff seen in a few Makefile.ams to a single
Makefile "header". This avoids evil code duplication. This file should be
included by most Makefile.ams inside src/. Needs more work as some of the
copied code is questionable and more code can probably be extracted here. See
XXXs.

TODO: The .h dependency test script part seems pretty universal, but if
many subdirs need to customize it, we may want to put it into a separate
Makefile "header".

16 years agoRemoved src/ip from the top-level SUBDIRS list. That directory is not
Alex Rousskov [Thu, 19 Feb 2009 07:11:38 +0000 (00:11 -0700)] 
Removed src/ip from the top-level SUBDIRS list. That directory is not
a top-level subdirectory and it is already listed in src/Makefile.am.

The commit message introducing the change talked about libip being a "POD
library". I do not know what that is, but, hopefully, we do not really need to
make this kind of exceptions for any src/ libraries.

16 years agoAdded forgotten os/ header files in hope to make "make distcheck" work again.
Alex Rousskov [Thu, 19 Feb 2009 06:38:40 +0000 (23:38 -0700)] 
Added forgotten os/ header files in hope to make "make distcheck" work again.

16 years agoFixed gnuregex.h typo to avoid:
Alex Rousskov [Thu, 19 Feb 2009 06:13:18 +0000 (23:13 -0700)] 
Fixed gnuregex.h typo to avoid:
No rule to make target `gnuregex.h', needed by `distdir'
errors.

16 years agoUpdates auto-save
Amos Jeffries [Thu, 19 Feb 2009 05:00:29 +0000 (18:00 +1300)] 
Updates auto-save

16 years agoCorrect libcompat.la reference in helpers/
Henrik Nordstrom [Wed, 18 Feb 2009 12:26:04 +0000 (13:26 +0100)] 
Correct libcompat.la reference in helpers/

16 years agoSupport libtool2
Henrik Nordstrom [Wed, 18 Feb 2009 12:18:04 +0000 (13:18 +0100)] 
Support libtool2

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Wed, 18 Feb 2009 10:58:53 +0000 (23:58 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
String NG : basic SquidString updates pt 2

- finished the analysis of raw buffer exporting, divided among c-sting
and raw-buf access clients
- general sanitization
- reversal of some wrongly-renamed variables and comments
- implementation of SQUIDSTRINGPRINT and SQUIDSTRINGPH (placeholder) macros and
    psize() function for printf-style calls
- implementation of, and migration to, String::size_type and String::npos
- de-inlining of pos(), rpos(), find() and rfind() calls
- implementation and use of a proper substr() call

16 years agoSourceLayout: setup libcompat.la for portability primitives
Amos Jeffries [Wed, 18 Feb 2009 09:45:46 +0000 (22:45 +1300)] 
SourceLayout: setup libcompat.la for portability primitives

This library forms an underlayer which intends to be seamless for the rest
of Squid.

For code to be eligible for inclusion at this lowest layer it must be
emulating or wrapping a piece of OS-provided API for use on other OS
where it is not provided.

Shared code which is unique to Squid is not portability.

API mappings which are OS-specific are all defined for their particular
OS in the os/* files.

API mappings which are provided by multiple OS or support libraries
are mapped in compat/*

Emulators are acceptable, though the aim should be to inline or template
most of the code so only .h are really needed.

16 years agoFixed typo in DelayTaggedBucket::stats.
Francesco Chemolli [Wed, 18 Feb 2009 09:45:32 +0000 (10:45 +0100)] 
Fixed typo in DelayTaggedBucket::stats.
Added comments.
String.cci doesn't need to include squid.h, config.h is enough
In errorpage.cc there is no need to drop to char* land, we can work with String.

16 years agoLanguage Updates
Amos Jeffries [Wed, 18 Feb 2009 05:26:54 +0000 (18:26 +1300)] 
Language Updates

16 years agoLanguage Updates
Amos Jeffries [Wed, 18 Feb 2009 05:25:32 +0000 (18:25 +1300)] 
Language Updates

16 years agoLanguage Updates
Amos Jeffries [Wed, 18 Feb 2009 05:07:40 +0000 (18:07 +1300)] 
Language Updates

16 years agoMerge from trunk
Amos Jeffries [Wed, 18 Feb 2009 05:06:24 +0000 (18:06 +1300)] 
Merge from trunk

16 years agoUpdates auto-save
Amos Jeffries [Wed, 18 Feb 2009 05:00:30 +0000 (18:00 +1300)] 
Updates auto-save

16 years agoSync updates from Rosetta Project
Amos Jeffries [Wed, 18 Feb 2009 04:59:44 +0000 (17:59 +1300)] 
Sync updates from Rosetta Project

16 years agoRemove duplicate assert.h, and bad includes of compat/* headers.
Amos Jeffries [Wed, 18 Feb 2009 00:18:43 +0000 (13:18 +1300)] 
Remove duplicate assert.h, and bad includes of compat/* headers.

16 years agoMerged from trunk
Francesco Chemolli [Tue, 17 Feb 2009 08:40:45 +0000 (09:40 +0100)] 
Merged from trunk

16 years agoBug fix: When an AccessRule for a service group exist in AccessRules
Christos Tsantilas [Mon, 16 Feb 2009 23:33:48 +0000 (01:33 +0200)] 
Bug fix: When an AccessRule for a service group exist in AccessRules
list do not add it again in the list.

16 years agoRegression Fix: Bug #2586: adaptation memory leaks on reconfigure
Christos Tsantilas [Mon, 16 Feb 2009 21:24:39 +0000 (23:24 +0200)] 
Regression Fix: Bug #2586: adaptation memory leaks on reconfigure
The patch is wrong: on shutdown calls Adaptation::Config::DestroyConfig,
twice causing segmentation fault.

16 years agoObsolete: dependency on nss_common.h and nss.h
Amos Jeffries [Mon, 16 Feb 2009 02:20:50 +0000 (15:20 +1300)] 
Obsolete: dependency on nss_common.h and nss.h

Squid-3 currently make no internal reference to any of its symbols.

Squid appears to build and run just fine despite this header being
detected as 'broken' during Squid build tests for some time.

16 years agoMerge from trunk
Amos Jeffries [Sat, 14 Feb 2009 13:19:07 +0000 (02:19 +1300)] 
Merge from trunk

16 years agoShuffle squid-compat to compat/
Amos Jeffries [Sat, 14 Feb 2009 13:18:34 +0000 (02:18 +1300)] 
Shuffle squid-compat to compat/

16 years agoBug 2593: Compile errors on Solaris 10
Amos Jeffries [Fri, 13 Feb 2009 11:23:13 +0000 (00:23 +1300)] 
Bug 2593: Compile errors on Solaris 10

16 years agoBug 2287: Send a 505 on requests with unsupported HTTP versions
Amos Jeffries [Fri, 13 Feb 2009 04:32:34 +0000 (17:32 +1300)] 
Bug 2287: Send a 505 on requests with unsupported HTTP versions

Squid currenty accepts requests with well-formed 0.9, 1.0, and 1.1 versions
and one special case of mising version (assumed to be 0.9 legacy requests)

All others including well-formed 0.x < 0.9 are now aborted with a
HTTP 1.1 compliant 505 Version Not Supported error.

16 years agoMerged from trunk
Francesco Chemolli [Thu, 12 Feb 2009 16:09:11 +0000 (17:09 +0100)] 
Merged from trunk

16 years agoMigrated *printf's to SQUIDSTRINGPH and SQUIDSTRINGPRINT macros
Francesco Chemolli [Thu, 12 Feb 2009 16:06:20 +0000 (17:06 +0100)] 
Migrated *printf's to SQUIDSTRINGPH and SQUIDSTRINGPRINT macros
de-inlined String::{find,rfind,pos,rpos}

16 years agoImplemented String::npos to parametrize 'search not found' results
Francesco Chemolli [Thu, 12 Feb 2009 11:17:16 +0000 (12:17 +0100)] 
Implemented String::npos to parametrize 'search not found' results
Converted some printf to macro-based.

16 years agounsafeBuf is no more.
Francesco Chemolli [Thu, 12 Feb 2009 10:46:08 +0000 (11:46 +0100)] 
unsafeBuf is no more.
Reverted shortening of size_type to unisgned int, due to issue with std::string::npos.

16 years agobug 2591: adaptation_access does not work
Christos Tsantilas [Wed, 11 Feb 2009 19:11:36 +0000 (21:11 +0200)] 
bug 2591: adaptation_access does not work

An access checklist required for each service set, so we need only one
AccessRule object for each adaptation service set
This patch:
  - When parses a adaptation_access line checks if an AccessRule object exist
for the service set and if yes append the access checklist to this object else
creates a new AccessRule object for this service set
  - The AccessRule constructor takes as argument now the reference service set
name (groupId)
  - The new Adaptation::FindRuleByGroupId method created. This method returns
the AccessRule object for a service set using its name (groupId)

16 years agodefined printf-helping macros,
Francesco Chemolli [Wed, 11 Feb 2009 17:08:24 +0000 (18:08 +0100)] 
defined printf-helping macros,
reverted some unnecessary renamings
further unsafeBuf conversions.

16 years agoImplemented printf-specific String::psize()
Francesco Chemolli [Wed, 11 Feb 2009 15:28:22 +0000 (16:28 +0100)] 
Implemented printf-specific String::psize()
Fixed unit tests.