diff options
Diffstat (limited to 'pintos-progos/threads/malloc.h')
| -rw-r--r-- | pintos-progos/threads/malloc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pintos-progos/threads/malloc.h b/pintos-progos/threads/malloc.h new file mode 100644 index 0000000..bc55d36 --- /dev/null +++ b/pintos-progos/threads/malloc.h | |||
| @@ -0,0 +1,13 @@ | |||
| 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 */ | ||
