CS318 - Pintos
Pintos source browser for JHU CS318 course
malloc.h
Go to the documentation of this file.
1 #ifndef THREADS_MALLOC_H
2 #define THREADS_MALLOC_H
3 
4 #include <debug.h>
5 #include <stddef.h>
6 
7 void malloc_init (void);
8 void *malloc (size_t) __attribute__ ((malloc));
9 void *calloc (size_t, size_t) __attribute__ ((malloc));
10 void *realloc (void *, size_t);
11 void free (void *);
12 
13 #endif /**< threads/malloc.h */
free
void free(void *)
threads/malloc.h
Definition: malloc.c:219
realloc
void * realloc(void *, size_t)
Attempts to resize OLD_BLOCK to NEW_SIZE bytes, possibly moving it in the process.
Definition: malloc.c:195
calloc
void * calloc(size_t, size_t) __attribute__((malloc))
Allocates and return A times B bytes initialized to zeroes.
Definition: malloc.c:159
malloc
void * malloc(size_t) __attribute__((malloc))
Obtains and returns a new block of at least SIZE bytes.
Definition: malloc.c:90
malloc_init
void malloc_init(void)
Initializes the malloc() descriptors.
Definition: malloc.c:72
__attribute__
static char dst[8192] __attribute__((section(".testEndmem,\"aw\",@nobits#")))
Utility function for tests that try to break system calls by passing them data that crosses from one ...
stddef.h
debug.h