diff --git a/alloc.h b/alloc.h index 3245f55c3496bc75c70c04625ca3dcb7dd5d0afd..1f6cf3060ed4dae6909f54ef5ba11fce9b5bc387 100644 --- a/alloc.h +++ b/alloc.h @@ -1,8 +1,23 @@ #ifndef _ALLOC_H_ #define _ALLOC_H_ -typedef struct meta_struct { - +#include <sys/types.h> +#include <stdint.h> + +typedef struct meta_struct{ + size_t size; + size_t free; + char offset[100]; + struct meta_struct *next; + struct meta_struct *prev; } meta; +void *make_malloc(size_t size); + +size_t * start; +size_t * end; +meta * find; +meta * k_malloc; +meta *read_start; + #endif