dhcpd-pools  2.28
ISC dhcpd lease usage analyser
Macros | Enumerations | Functions
malloca.h File Reference
#include <alloca.h>
#include <stddef.h>
#include <stdlib.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)
 
#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

#define freea   free

Referenced by __add_to_environ().

#define malloca (   N)    mmalloca (N)

Referenced by __add_to_environ().

#define nmalloca (   n,
 
)
Value:
((n) > (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) \
? NULL \
: malloca ((n) * (s)))
#define malloca(N)
Definition: malloca.h:60
#define NULL
Definition: getopt1.c:36
#define sa_alignof (   type)    offsetof (struct { char __slot1; type __slot2; }, __slot2)
#define safe_alloca (   N)    ((void) (N), NULL)

Enumeration Type Documentation

anonymous enum
Enumerator
sa_alignment_long 
sa_alignment_double 
sa_alignment_longdouble 
sa_alignment_max 
sa_increment 

Function Documentation

void* mmalloca ( size_t  n)