| File | Size | Modified |
|---|---|---|
| CMakeLists.txt | 908 | 2025-08-10 15:28 |
| 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/bitops.h | 739 | 2025-02-05 10:17 |
| include/dump.h | 370 | 2025-03-06 08:58 |
| include/fsb_arena.h | 1216 | 2025-08-10 13:44 |
| 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 | 296 | 2026-04-28 03:33 |
| 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_bitmap-0.c | 45002 | 2025-02-04 03:14 |
| src/allocator_bitmap-0.h | 4045 | 2025-02-04 03:14 |
| src/allocator_bitmap.md | 13181 | 2025-02-09 12:37 |
| src/allocator_debug.c | 5269 | 2026-05-23 05:06 |
| src/allocator_pet.c | 29345 | 2026-05-23 05:06 |
| 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/fsb_arena.c | 8229 | 2025-11-16 11:35 |
| 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 | 870 | 2026-04-28 03:33 |
| 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.