9 Commits

Author SHA1 Message Date
f67a3cc335 Fix arena_delete() 2024-01-16 01:38:49 +01:00
0af6582a64 Add flag option to not align allocations 2024-01-15 16:32:19 +01:00
d11557a4fe Fix bug and handle more errors
Fix bug where mprotect calls don't match the arena cap increase
(https://github.com/olemorud/arena-allocator/issues/1)

Handle syscall errors in arena_new()

Check for syscall errors in arena_delete() and switch from void to int
to return error status.
2024-01-15 15:02:43 +01:00
Ole Morud
069f6b11dc Full rewrite 2023-08-19 01:18:32 +02:00
Ole Morud
e5fa743d85 Add arena_free() 2023-08-19 00:49:51 +02:00
Ole Morud
45e6023d42 Add arena_delete() 2023-08-19 00:49:51 +02:00
Ole Morud
d3754e64e5 Rewrite everything 2023-08-19 00:49:51 +02:00
Ole Morud
57979892f8 Add arena_realloc_tail() 2023-08-19 00:49:51 +02:00
olemorud
51feaf1d00 Move header files to include/ 2023-08-19 00:49:51 +02:00