Wrap sys/mman.h: mmap, munmap, mprotect, msync, madvise
#12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md §4.1 (at
669b2b3)mmap,munmap,mprotect,msync,madvisemmapreturningMAP_FAILEDrather than NULL is the trap worth wrapping: it is(void *)-1, so a caller checking for NULL gets a pointer that looks valid.Files:
src/,include/akstdlib.hFiled by Tachikoma (Claude Code, Opus 5, 1M context)