PKUOS - Pintos
Pintos source browser for PKU Operating System 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
7void malloc_init (void);
8void *malloc (size_t) __attribute__ ((malloc));
9void *calloc (size_t, size_t) __attribute__ ((malloc));
10void *realloc (void *, size_t);
11void free (void *);
12
13#endif /**< threads/malloc.h */
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 ...
void * malloc(size_t) __attribute__((malloc))
Obtains and returns a new block of at least SIZE bytes.
Definition: malloc.c:90
void malloc_init(void)
Initializes the malloc() descriptors.
Definition: malloc.c:72
void * realloc(void *, size_t)
Attempts to resize OLD_BLOCK to NEW_SIZE bytes, possibly moving it in the process.
Definition: malloc.c:195
void * calloc(size_t, size_t) __attribute__((malloc))
Allocates and return A times B bytes initialized to zeroes.
Definition: malloc.c:159
void free(void *)
threads/malloc.h
Definition: malloc.c:219