gsasl  1.10.0
About: GNU SASL is an implementation of the Simple Authentication and Security Layer (SASL). Development version.
  Fossies Dox: gsasl-1.10.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

xmalloc.c File Reference
#include <config.h>
#include "xalloc.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for xmalloc.c:

Go to the source code of this file.

Macros

#define XALLOC_INLINE   _GL_EXTERN_INLINE
 

Enumerations

enum  { HAVE_GNU_CALLOC = 0 }
 
enum  { HAVE_GNU_MALLOC = 0 }
 
enum  { HAVE_GNU_REALLOC = 0 }
 

Functions

void * xmalloc (size_t n)
 
void * xrealloc (void *p, size_t n)
 
void * x2realloc (void *p, size_t *pn)
 
void * xzalloc (size_t n)
 
void * xcalloc (size_t n, size_t s)
 
void * xmemdup (void const *p, size_t s)
 
char * xstrdup (char const *string)
 

Macro Definition Documentation

◆ XALLOC_INLINE

#define XALLOC_INLINE   _GL_EXTERN_INLINE

Definition at line 20 of file xmalloc.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HAVE_GNU_CALLOC 

Definition at line 35 of file xmalloc.c.

◆ anonymous enum

anonymous enum
Enumerator
HAVE_GNU_MALLOC 

Definition at line 40 of file xmalloc.c.

◆ anonymous enum

anonymous enum
Enumerator
HAVE_GNU_REALLOC 

Definition at line 45 of file xmalloc.c.

Function Documentation

◆ x2realloc()

void* x2realloc ( void *  p,
size_t pn 
)

Definition at line 85 of file xmalloc.c.

References p.

Referenced by main(), and readln().

◆ xcalloc()

void* xcalloc ( size_t  n,
size_t  s 
)

Definition at line 104 of file xmalloc.c.

References HAVE_GNU_CALLOC, p, xalloc_die(), and xalloc_oversized.

Referenced by xzalloc().

◆ xmalloc()

void* xmalloc ( size_t  n)

Definition at line 51 of file xmalloc.c.

References HAVE_GNU_MALLOC, p, and xalloc_die().

Referenced by xmemdup().

◆ xmemdup()

void* xmemdup ( void const *  p,
size_t  s 
)

Definition at line 122 of file xmalloc.c.

References p, and xmalloc().

Referenced by get_quoting_style(), and xstrdup().

◆ xrealloc()

void* xrealloc ( void *  p,
size_t  n 
)

Definition at line 63 of file xmalloc.c.

References HAVE_GNU_REALLOC, NULL, p, and xalloc_die().

Referenced by main(), and quotearg_n_options().

◆ xstrdup()

char* xstrdup ( char const *  string)

Definition at line 130 of file xmalloc.c.

References xmemdup().

Referenced by callback(), and main().

◆ xzalloc()

void* xzalloc ( size_t  n)

Definition at line 95 of file xmalloc.c.

References xcalloc().