xalloc.cc File Reference
#include "squid.h"
#include "compat/xalloc.h"
#include "profiler/Profiler.h"
Include dependency graph for xalloc.cc:

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

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 169 of file xalloc.cc.

References free, free_const(), PROF_start, and PROF_stop.

Referenced by free_const(), and xfree().

void* xcalloc ( size_t  n,
size_t  sz 
)

xcalloc() - same as calloc(3). Used for portability. Never returns NULL; fatal on error.

Define failure_notify to receive error message. otherwise perror() is used to display it.

Definition at line 72 of file xalloc.cc.

References failure_notify, NULL, p, PROF_start, PROF_stop, and xcalloc().

Referenced by xcalloc().

void* xmalloc ( size_t  sz)

xmalloc() - same as malloc(3). Used for portability. Never returns NULL; fatal on error.

Define failure_notify to receive error message. otherwise perror() is used to display it.

Definition at line 106 of file xalloc.cc.

References failure_notify, NULL, p, PROF_start, PROF_stop, and xmalloc().

Referenced by xmalloc().

void* xrealloc ( void *  s,
size_t  sz 
)

xrealloc() - same as realloc(3). Used for portability. Never returns NULL; fatal on error.

Definition at line 137 of file xalloc.cc.

References failure_notify, NULL, p, PROF_start, PROF_stop, and xrealloc().

Referenced by _heap_grow(), add_User_Group(), cbdataInternalInitType(), memReallocBuf(), parseOneConfigFile(), snmpAddNodeChild(), snmpCreateOidFromStr(), storeReplAdd(), WIN32_build_argv(), and xrealloc().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors