aboutsummaryrefslogtreecommitdiff
path: root/src/un_mem_linux_x64.c
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-08-23 01:28:41 +0300
committerbonmas14 <bonmas14@gmail.com>2025-08-23 01:28:41 +0300
commit8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (patch)
tree205413ed09ac001e37267889d429a363c37008f2 /src/un_mem_linux_x64.c
parentc96c355b360f18f982459e1a866dcbf5864efdb8 (diff)
downloadungrateful-main.tar.gz
ungrateful-main.zip
Ungrateful changes, added more stuffHEADmain
Diffstat (limited to 'src/un_mem_linux_x64.c')
-rw-r--r--src/un_mem_linux_x64.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/un_mem_linux_x64.c b/src/un_mem_linux_x64.c
new file mode 100644
index 0000000..3d498bc
--- /dev/null
+++ b/src/un_mem_linux_x64.c
@@ -0,0 +1,16 @@
+// @todo: mmap
+
+static ALLOCATOR_PROC_SIGNATURE(un_std_alloc_proc) {
+ UNUSED(data);
+
+ switch (message) {
+ case UN_ALLOC_MSG_ALLOCATE:
+ return calloc(1, size);
+ case UN_ALLOC_MSG_FREE:
+ free(p);
+ break;
+ case UN_ALLOC_MSG_SELF_DELETE: break;
+ }
+
+ return NULL;
+}