| File | Size | Modified |
|---|---|---|
| CMakeLists.txt | 888 | 2025-12-02 13:36 |
| include/alignment.h | 1083 | 2025-11-14 05:19 |
| include/allocator.h | 2298 | 2025-11-13 18:09 |
| include/arena.h | 1740 | 2025-11-13 18:01 |
| include/dump.h | 370 | 2025-03-06 08:58 |
| include/mmarray.h | 1261 | 2025-11-13 17:26 |
| include/ringbuffer.h | 2332 | 2025-11-13 18:11 |
| include/sync.h | 411 | 2025-02-11 17:30 |
| include/timespec.h | 237 | 2025-02-11 17:55 |
| LICENSE | 155 | 2025-03-22 05:11 |
| README.md | 996 | 2025-03-22 06:07 |
| src/allocator.c | 58 | 2025-11-13 18:05 |
| src/allocator_debug.c | 5260 | 2025-11-13 18:10 |
| src/allocator_pet.c | 29345 | 2025-11-16 11:34 |
| src/allocator_stdlib.c | 2092 | 2025-11-13 18:11 |
| src/arena.c | 5235 | 2025-11-14 05:15 |
| src/dump_bitmap.c | 1687 | 2025-01-26 18:27 |
| src/dump_hex.c | 5783 | 2025-04-07 08:26 |
| src/mmarray.c | 4507 | 2025-11-14 06:28 |
| src/ringbuffer_base.c | 6267 | 2025-11-14 05:18 |
| src/ringbuffer_sync.c | 2272 | 2025-11-13 18:14 |
| src/sync_event.c | 1904 | 2025-02-11 18:14 |
| src/timespec.c | 558 | 2025-02-11 18:07 |
| src/word.h | 794 | 2025-11-16 11:34 |
libpussy: collection of basic things
Everything is work in progress and subject to change.
Allocators
arena allocator
Uses mmap as underlying allocator.
pet allocator
The main allocator is bitmap-based. Other twos are for debugging purposes:
- wrapper for malloc/realloc/free
- debug allocator that detects bubblewrap corruption around allocated blocks
Dump functions
Hex and bitmap dump functions.
MMarray
Simple dynamic array using mmap as allocator.
Ring buffers
Basic and thread-safe implementations of ring buffer.
Using mmap as allocator.
Synchronization primitives
Synchronization primitives based on condition variable.
Event implementation only for now.
Timespec utils
Utilities that work with struct timespec.