summaryrefslogtreecommitdiff
path: root/buddy.h
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2024-05-16 03:25:25 -0700
committerMatthew Sotoudeh <matthew@masot.net>2024-05-16 03:25:25 -0700
commit74df5748fb0b1b2fdb3098be76cb671e5204a845 (patch)
tree89ff58273549df6e3609e13939d8ad5949d5d020 /buddy.h
parentb4891cf13848e1bee1068565037ae65b58edab84 (diff)
attempt at a preallocation feature
Diffstat (limited to 'buddy.h')
-rw-r--r--buddy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/buddy.h b/buddy.h
index 8a2ccac..45e62a7 100644
--- a/buddy.h
+++ b/buddy.h
@@ -12,3 +12,7 @@ void *allocate(size_t size);
void liberate(void *base, size_t size);
void debug_buddy(void);
+
+// "advanced features"
+void *reallocate(void *old, size_t old_size, size_t new_size);
+void preallocate(void *start, size_t size);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback