From c63f95c634168d1307d4394638ac56e3dbf70261 Mon Sep 17 00:00:00 2001
From: kdh422 <superb422@naver.com>
Date: Sat, 16 Jun 2018 19:20:01 +0900
Subject: [PATCH] only make malloc

---
 alloc.h | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/alloc.h b/alloc.h
index 3245f55..1f6cf30 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
-- 
GitLab