TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Structures de données | Fonctions
Référence du fichier malloc.c
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <malloc.h>
#include <string.h>
Graphe des dépendances par inclusion de malloc.c:

Structures de données

struct  mem_list
 
struct  mem
 

Fonctions

void init_process_malloc ()
 
void * malloc (size_t size)
 
int free (void *p)
 
void malloc_print_mem ()
 
void * realloc (void *ptr, size_t size)
 Modifie la taille du bloc de mémoire. Plus de détails...
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010-2014 TacOS developers.

This program 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; either version 3 of the License, or (at your option) any later version.

This program 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 at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Description de ce que fait le fichier

Documentation des fonctions

void* realloc ( void *  ptr,
size_t  size 
)
Paramètres
ptrLe bloc mémoire à modifier.
sizeNouvelle taille.
Renvoie
nouvelle adresse.
  • the following implementation is BAD & SLOW
  • ptr should have been returned by an earlier call to malloc, calloc or realloc (standard)

Voici le graphe d'appel pour cette fonction :