#malloc #single-threaded #freestanding #errno #extract #programs #musl-libc

freestanding-musl-malloc

Extraction of musl-libc's malloc, made single-threaded and freestanding

1 stable release

Uses old Rust 2015

1.0.0 Apr 25, 2016

#9 in #freestanding

26 downloads per month

MIT license

16KB
521 lines

A malloc implementation pulled out of musl-libc and made freestanding. Importantly, all notion of thread safety was removed - this crate can only be used in single-threaded programs!

Depends on the symbols memcpy, mmap, mremap, munmap, and madvise being defined. Defines own errno, named musl_alloc_errno.

No runtime deps