Go to the source code of this file.
Functions | |
void * | xcalloc (size_t n, size_t sz) |
void * | xmalloc (size_t sz) |
void * | xrealloc (void *s, size_t sz) |
void | free_const (const void *s_const) |
Function Documentation
◆ free_const()
void free_const | ( | const void * | s | ) |
free_const() - Same as free(3). Used for portability. Accepts pointers to dynamically allocated const data.
Define failure_notify to receive error message. otherwise perror() is used to display it.
Definition at line 153 of file xalloc.cc.
Referenced by xfree().
◆ xcalloc()
xcalloc() - same as calloc(3). Used for portability. Never returns nullptr; fatal on error.
Define failure_notify to receive error message. otherwise perror() is used to display it.
Definition at line 71 of file xalloc.cc.
References failure_notify.
Referenced by accessLogReader(), MemPoolMalloc::allocate(), asnAddNet(), authDigestNonceEncode(), buildUrlFromHost(), cacheCreate(), cacheEntryCreate(), Comm::CallbackTableInit(), configDoConfigure(), icp_common_t::CreateMessage(), createRemovalPolicy_heap(), createRemovalPolicy_lru(), StatHist::deltaPctile(), do_open(), errorInitialize(), fileIteratorCreate(), FileMap::FileMap(), ftpListParseParts(), FileMap::grow(), Fs::Ufs::UFSSwapDir::HandleCleanEvent(), hash_create(), hashFreeItems(), heap_walkInit(), html_quote(), idnsAddPathComponent(), SharedMemory::init(), CacheDigest::init(), fde::Init(), StatHist::init(), ipc_thread_1(), ipc_thread_2(), LoadSecurityDll(), logfile_mod_daemon_open(), logfile_mod_stdio_open(), logfile_mod_udp_open(), logfileNewBuffer(), Debug::LogMessage(), lru_purgeInit(), lru_walkInit(), main(), MemChunk::MemChunk(), netdbDump(), netdbPeerAdd(), netdbPurgeLRU(), netdbReloadState(), new_heap(), StatHist::operator=(), parse_hostdomaintype(), parse_IpAddress_list(), ConnStateData::parseHttpRequest(), prepareAcceleratedURL(), ConnStateData::prepareTlsSwitchingURL(), prepareTransparentURL(), PutEnvironment(), Format::QuoteMimeBlob(), read_passwd_file(), rfc1035MessageUnpack(), rfc1738_do_escape(), Comm::SelectLoopInit(), snmpHandleUdp(), squidaio_shutdown(), StatHist::StatHist(), storeRebuildStart(), swapStateReader(), urnParseReply(), wccp2_add_service_list(), wccp2AssignBuckets(), wccp2HandleUdp(), wccp2Init(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ xmalloc()
void* xmalloc | ( | size_t | sz | ) |
xmalloc() - same as malloc(3). Used for portability. Never returns nullptr; fatal on error.
Define failure_notify to receive error message. otherwise perror() is used to display it.
Definition at line 100 of file xalloc.cc.
References failure_notify.
◆ xrealloc()
void* xrealloc | ( | void * | s, |
size_t | sz | ||
) |
xrealloc() - same as realloc(3). Used for portability. Never returns nullptr; fatal on error.
Definition at line 126 of file xalloc.cc.
References failure_notify.
Referenced by _heap_grow(), add_User_Group(), cbdataInternalAddType(), memReallocBuf(), parseOneConfigFile(), snmpAddNodeChild(), snmpCreateOidFromStr(), storeReplAdd(), and WIN32_build_argv().
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