The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
platform.c File Reference

malloc wrappers More...

#include <stddef.h>
#include <stdlib.h>
#include <mm/dymelor.h>
#include <core/core.h>
+ Include dependency graph for platform.c:

Go to the source code of this file.

Functions

void * __real_malloc (size_t)
 
void __real_free (void *)
 
void * __real_realloc (void *, size_t)
 
void * __real_calloc (size_t, size_t)
 
void * rsalloc (size_t size)
 
void rsfree (void *ptr)
 
void * rsrealloc (void *ptr, size_t size)
 
void * rscalloc (size_t nmemb, size_t size)
 

Detailed Description

malloc wrappers

For security reasons we poison standard malloc calls. These are wrappers used in ROOT-Sim, which also make some quick checks.

This file is part of ROOT-Sim (ROme OpTimistic Simulator).

ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.

ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Author
Alessandro Pellegrini

Definition in file platform.c.