#include <csignal>
#include "compat/xalloc.h"
#include "compat/xis.h"
#include "compat/xstrerror.h"
#include "compat/xstring.h"
#include "compat/xstrto.h"
#include "compat/strtoll.h"
#include "compat/memrchr.h"
Go to the source code of this file.
Classes | |
struct | rusage |
Macros | |
#define | SQUID_MAXFD_LIMIT ((signed int)FD_SETSIZE) |
#define | w_space " \t\n\r" |
#define | SQUID_NONBLOCK O_NDELAY |
#define | SA_RESTART 0 |
#define | SA_NODEFER 0 |
#define | SA_RESETHAND 0 |
#define | PRINTF_FORMAT_ARG1 |
#define | PRINTF_FORMAT_ARG2 |
#define | PRINTF_FORMAT_ARG3 |
Functions | |
template<class A > | |
const A & | min (A const &lhs, A const &rhs) |
template<class A > | |
const A & | max (A const &lhs, A const &rhs) |
Variables | |
void(* | failure_notify )(const char *) |
Macro Definition Documentation
◆ PRINTF_FORMAT_ARG1
#define PRINTF_FORMAT_ARG1 |
com_err.h is a C header and needs explicit shielding, but not all other system headers including this care to do so.
Definition at line 241 of file compat_shared.h.
◆ PRINTF_FORMAT_ARG2
#define PRINTF_FORMAT_ARG2 |
Definition at line 242 of file compat_shared.h.
◆ PRINTF_FORMAT_ARG3
#define PRINTF_FORMAT_ARG3 |
Definition at line 243 of file compat_shared.h.
◆ SA_NODEFER
#define SA_NODEFER 0 |
Definition at line 175 of file compat_shared.h.
◆ SA_RESETHAND
#define SA_RESETHAND 0 |
Definition at line 178 of file compat_shared.h.
◆ SA_RESTART
#define SA_RESTART 0 |
Signalling flags are apparently not always provided. TODO find out if these can be moved into specific OS portability files.
Definition at line 172 of file compat_shared.h.
◆ SQUID_MAXFD_LIMIT
#define SQUID_MAXFD_LIMIT ((signed int)FD_SETSIZE) |
Definition at line 66 of file compat_shared.h.
◆ SQUID_NONBLOCK
#define SQUID_NONBLOCK O_NDELAY |
O_NDELAY is our fallback.
Definition at line 156 of file compat_shared.h.
◆ w_space
#define w_space " \t\n\r" |
Common shared definition of what whitespace consists of for string tests
Definition at line 139 of file compat_shared.h.
Function Documentation
◆ max()
max() comparison may not always be provided. Squid bundles this template for when its needed. May be used on any type which provides operator '>'
Definition at line 124 of file compat_shared.h.
Referenced by Auth::User::absorb(), Adaptation::Icap::ServiceRep::availableConnections(), NullDelayId::bytesWanted(), DelayBucket::bytesWanted(), DelayId::bytesWanted(), DelayVector::Id::bytesWanted(), DelayTagged::Id::bytesWanted(), Aggregate::AggregateId::bytesWanted(), VectorPool::Id::bytesWanted(), ClassCHostPool::Id::bytesWanted(), IpcIoFile::canWait(), Adaptation::Ecap::Engine::checkEvents(), Store::Controller::configure(), Cp1251ToUtf8(), Math::doubleAverage(), ProxyProtocol::One::ExtractPort(), Adaptation::Icap::ModXact::finalizeLogInfo(), getNfmark(), icpHandleUdp(), idnsRead(), IncreaseSumInternal(), Ssl::CertValidationHelper::Init(), Ipc::Mem::IdSet::innerPush(), Math::intAverage(), ProxyProtocol::IntegerToFieldType(), Range< C, S >::intersection(), Store::Controller::keepForLocalMemoryCache(), Ipc::Mem::IdSet::leafTruncate(), DebugMessage::limited(), StatHist::logInit(), main(), Acl::SplayInserter< DataValue >::MakeCombinedValue(), Transients::maxObjectSize(), Transients::maxSize(), MemObject::mostBytesWanted(), Mgr::InfoActionData::operator+=(), Security::ServerOptions::parse(), parse_acl_tos(), parse_refreshpattern(), parse_time_t(), Ip::Qos::Config::parseConfigLine(), ParseParamValue(), AnyP::Uri::parsePort(), ParseUnsignedDecimalInteger(), positiveTimeout(), Helper::Session::requestTimeout(), SBuf::reserve(), SetToNaturalSumOrMax(), MemStore::shouldCache(), Rock::SwapDir::slotLimitAbsolute(), Rock::SwapDir::slotLimitActual(), SMB_Open(), Ipc::OneToOneUniQueue::statSamples(), TestIoManip::testAsHex(), TestMath::testNaturalSum(), TestStatHist::testStatHistLog(), TestStore::testSwapMetaTypeClassification(), EventScheduler::timeRemaining(), ToNanoSeconds(), ipcache_entry::updateTtl(), Rock::SwapDir::validateOptions(), xstrtoui(), xstrtoul(), and Ssl::CertificateDb::Row::~Row().
◆ min()
min() comparison may not always be provided. Squid bundles this template for when its needed. May be used on any type which provides operator '<'
Definition at line 103 of file compat_shared.h.
Referenced by Log::TcpLogger::appendRecord(), BandwidthBucket::applyQuota(), DelayBucket::bytesWanted(), DelayVector::Id::bytesWanted(), DelayTagged::Id::bytesWanted(), Aggregate::AggregateId::bytesWanted(), VectorPool::Id::bytesWanted(), ClassCHostPool::Id::bytesWanted(), Client::calcBufferSpaceToReserve(), comm_init(), SBuf::compare(), Store::Controller::configure(), Comm::Connection::connectTimeout(), MemBlob::consume(), SBuf::consume(), SBuf::copy(), mem_hdr::copyAvailable(), ShmWriter::copyToShmSlice(), Adaptation::Icap::ModXact::decideOnPreview(), diskerRead(), diskerWriteAttempts(), Ipc::StoreMap::entryLimit(), Rock::SwapDir::entryLimitActual(), fdAdjustReserved(), store_client::fileRead(), BodyPipe::getMoreData(), Adaptation::Icap::ServiceRep::handleNewOptions(), hashPrime(), idnsGrokReply(), idnsTickleQueue(), Ipc::StoreMap::Init(), Range< C, S >::intersection(), Store::Controller::keepForLocalMemoryCache(), Http::Stream::lengthToSend(), logfile_mod_daemon_append(), StatHist::logInit(), Acl::SplayInserter< DataValue >::MakeCombinedValue(), Store::Disk::maxObjectSize(), MemStore::maxObjectSize(), Comm::MortalReadTimeout(), ntlm_check_auth(), LowestMemReader::operator()(), ACLRandom::parse(), HttpHeaderEntry::parse(), parse_refreshpattern(), Http::One::TeChunkedParser::parseChunkBody(), Ftp::Server::parseOneRequest(), ParseParamValue(), ParseUnsignedDecimalInteger(), BodyPipe::putMoreData(), MessageBucket::quota(), SBuf::rawAppendFinish(), Rock::IoState::read_(), refreshCheck(), refreshStaleness(), Client::replyBodySpace(), SBuf::reserve(), rfc2671RROptPack(), Ftp::Client::scheduleReadControlReply(), Rock::SwapDir::slotLimitActual(), SSL_get_client_random(), SSL_SESSION_get_master_key(), HappyOrderEnforcer::startedWaiting(), Ipc::OneToOneUniQueue::statSamples(), STUB_RETVAL(), TestIoManip::testAsHex(), TestSBuf::testComparisons(), testComparisonStdOneWay(), TestSBuf::testReserve(), TestStatHist::testStatHistLog(), TestStore::testSwapMetaTypeClassification(), Comm::Connection::timeLeft(), Ip::Address::toStr(), StoreRebuildData::updateStartTime(), ipcache_entry::updateTtl(), Adaptation::Ecap::XactionRep::vbContent(), Adaptation::Ecap::XactionRep::vbContentShift(), Adaptation::Icap::ModXact::virginConsume(), Ipc::StoreMap::visitVictims(), IpcIoFile::WaitBeforePop(), mem_hdr::writeAvailable(), Adaptation::Icap::ModXact::writePreviewBody(), Adaptation::Icap::ModXact::writeSomeBody(), Rock::IoState::writeToBuffer(), xstrtoui(), and xstrtoul().
Variable Documentation
◆ failure_notify
void(* failure_notify) (const char *) |
Definition at line 12 of file compat.cc.
Referenced by fatal_dump(), SquidMain(), xcalloc(), xmalloc(), xrealloc(), xstrdup(), and xstrndup().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products