about summary refs log tree commit diff stats
path: root/inc
diff options
context:
space:
mode:
authorRen Kararou <[email protected]>2025-01-30 06:12:18 -0600
committerRen Kararou <[email protected]>2025-01-30 06:12:18 -0600
commit1e468866fc4455193df8d33b1711b6519dd4c721 (patch)
tree4c8478fabe1b5b189e443efe0332cdb2319bc07e /inc
downloadlibspicy-1e468866fc4455193df8d33b1711b6519dd4c721.tar.gz
libspicy-1e468866fc4455193df8d33b1711b6519dd4c721.tar.bz2
libspicy-1e468866fc4455193df8d33b1711b6519dd4c721.zip
spicy allocator get!
Diffstat (limited to 'inc')
-rw-r--r--inc/salloc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/salloc.h b/inc/salloc.h
new file mode 100644
index 0000000..d9d85da
--- /dev/null
+++ b/inc/salloc.h
@@ -0,0 +1,12 @@
+#ifndef LIBSPICY_SALLOC_H
+#define LIBSPICY_SALLOC_H
+
+#include <stdlib.h>
+
+int salloc_configure(size_t pagesize, size_t max_pages, size_t max_allocs);
+void *salloc(size_t size);
+void *scalloc(size_t number, size_t count);
+void sfree(void *ptr);
+
+#endif
+