dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Enumerations | Functions
malloca.h File Reference
#include <alloca.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include "xalloc-oversized.h"
Include dependency graph for malloca.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define safe_alloca(N)   ((void) (N), NULL)
 
#define malloca(N)   mmalloca (N)
 
#define freea   free
 
#define nmalloca(n, s)   (xalloc_oversized (n, s) ? NULL : malloca ((n) * (s)))
 
#define sa_alignof(type)   offsetof (struct { char __slot1; type __slot2; }, __slot2)
 

Enumerations

enum  {
  sa_alignment_long = sa_alignof (long), sa_alignment_double = sa_alignof (double), sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max,
  sa_increment = ((sizeof (int) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max
}
 

Functions

void * mmalloca (size_t n)
 

Macro Definition Documentation

◆ freea

#define freea   free

◆ malloca

#define malloca (   N)    mmalloca (N)

◆ nmalloca

#define nmalloca (   n,
 
)    (xalloc_oversized (n, s) ? NULL : malloca ((n) * (s)))

◆ sa_alignof

#define sa_alignof (   type)    offsetof (struct { char __slot1; type __slot2; }, __slot2)

◆ safe_alloca

#define safe_alloca (   N)    ((void) (N), NULL)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
sa_alignment_long 
sa_alignment_double 
sa_alignment_longdouble 
sa_alignment_max 
sa_increment 

Function Documentation

◆ mmalloca()

void* mmalloca ( size_t  n)