SURFEX v8.1
General documentation of Surfex
Functions | Variables
memory_hook.c File Reference

Go to the source code of this file.

Functions

void * __wrap_malloc (size_t size, const void *caller)
 
void __attribute__ ((constructor))
 
void __attribute__ ((destructor))
 

Variables

static size_t align = 0
 
static unsigned char snan8 [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf4, 0x7f }
 
static unsigned char cinit [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
static unsigned char zero0 [] = { 0x00 }
 
static unsigned char * init = NULL
 
static int sizeof_init = 0
 
static int count = -1
 

Function Documentation

◆ __attribute__() [1/2]

void __attribute__ ( (constructor)  )

Definition at line 50 of file memory_hook.c.

◆ __attribute__() [2/2]

void __attribute__ ( (destructor)  )

Definition at line 93 of file memory_hook.c.

◆ __wrap_malloc()

void* __wrap_malloc ( size_t  size,
const void *  caller 
)

Definition at line 23 of file memory_hook.c.

Variable Documentation

◆ align

size_t align = 0
static

Definition at line 15 of file memory_hook.c.

◆ cinit

unsigned char cinit[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
static

Definition at line 17 of file memory_hook.c.

◆ count

int count = -1
static

Definition at line 21 of file memory_hook.c.

◆ init

unsigned char* init = NULL
static

Definition at line 19 of file memory_hook.c.

◆ sizeof_init

int sizeof_init = 0
static

Definition at line 20 of file memory_hook.c.

◆ snan8

unsigned char snan8[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf4, 0x7f }
static

Definition at line 16 of file memory_hook.c.

◆ zero0

unsigned char zero0[] = { 0x00 }
static

Definition at line 18 of file memory_hook.c.