~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/stmem.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2009-09-24 14:51:06 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090924145106-38jgrzmj0d73pha5
Tags: 3.1.0.13-1
* Upload to experimental

* New upstream release
  - Fixes Follow-X-Forwarded-For support (Closes: #523943)
  - Adds IPv6 support (Closes: #432351)

* debian/rules
  - Removed obsolete configuration options
  - Enable db and radius basic authentication modules

* debian/patches/01-cf.data.debian
  - Adapted to new upstream version

* debian/patches/02-makefile-defaults
  - Adapted to new upstream version

* debian/{squid.postinst,squid.rc,README.Debian,watch}
  - Updated references to squid 3.1

* debian/squid3.install
  - Install CSS file for error pages
  - Install manual pages for new authentication modules

* debian/squid3-common.install
  - Install documented version of configuration file in /usr/share/doc/squid3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: stmem.cc,v 1.92.2.1 2008/02/25 02:45:50 amosjeffries Exp $
 
3
 * $Id$
4
4
 *
5
5
 * DEBUG: section 19    Store Memory Primitives
6
6
 * AUTHOR: Harvest Derived
21
21
 *  it under the terms of the GNU General Public License as published by
22
22
 *  the Free Software Foundation; either version 2 of the License, or
23
23
 *  (at your option) any later version.
24
 
 *  
 
24
 *
25
25
 *  This program is distributed in the hope that it will be useful,
26
26
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
27
27
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
28
 *  GNU General Public License for more details.
29
 
 *  
 
29
 *
30
30
 *  You should have received a copy of the GNU General Public License
31
31
 *  along with this program; if not, write to the Free Software
32
32
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
140
140
 
141
141
    /* these two can go I think */
142
142
    assert (location - aNode->nodeBuffer.offset == (int64_t)aNode->nodeBuffer.length);
143
 
    size_t copyLen = XMIN (amount, aNode->space());
 
143
    size_t copyLen = min(amount, aNode->space());
144
144
 
145
145
    xmemcpy(aNode->nodeBuffer.data + aNode->nodeBuffer.length, source, copyLen);
146
146
 
216
216
 
217
217
    size_t copyOffset = location - aNode->nodeBuffer.offset;
218
218
 
219
 
    size_t copyLen = XMIN (amount, aNode->nodeBuffer.length - copyOffset);
 
219
    size_t copyLen = min(amount, aNode->nodeBuffer.length - copyOffset);
220
220
 
221
221
    xmemcpy(target, aNode->nodeBuffer.data + copyOffset, copyLen);
222
222
 
235
235
 
236
236
/* FIXME: how do we deal with sparse results -
237
237
 * where we have (say)
238
 
 * 0-500 and 1000-1500, but are asked for 
 
238
 * 0-500 and 1000-1500, but are asked for
239
239
 * 0-2000
240
240
 * Partial answer:
241
241
 * we supply 0-500 and stop.