Musl
musl is a C standard library intended for operating systems based on the Linux kernel, released under the MIT License.[src] It was developed by Rich Felker to write a clean, efficient, and standards-conformant libc implementation.[src] Unlike glibc’s LGPL, musl’s MIT licence does not require distributors of statically linked applications to provide relinkable object files.[src]
musl is a C standard library intended for operating systems based on the Linux kernel, released under the MIT License.[src] It was developed by Rich Felker to write a clean, efficient, and standards-conformant libc implementation.[src] Unlike glibc’s LGPL, musl’s MIT licence does not require distributors of statically linked applications to provide relinkable object files.[src] ==Overview== musl was designed from scratch to allow efficient static linking and to have realtime-quality robustness by avoiding race conditions, internal failures on resource exhaustion, and various other bad worst-case behaviors present in existing implementations.[src] The dynamic runtime is a single file with stable ABI allowing race-free updates and the static linking support allows an application to be deployed as a single portable binary without significant size overhead.[src] It claims compatibility with the POSIX 2008 specification and the C11 standard.[src] It also implements most of the widely used non-standard Linux, BSD, and glibc functions.[src] There is partial ABI compatibility with the part of glibc required by Linux Standard Base.[src] Version 1.2.0 has support for (no longer current) Unicode 12.1.0 (while still having full UTF-8 support, more conformant/strict than glibc), and version 1.2.1 "features the new 'mallocng' malloc implementation, replacing musl's original dlmalloc-like allocator that suffered from fundamental design problems." ==Use== Linux distributions which use musl as their standard C library (some use only musl) include but are not limited to: Alpine Linux Dragora 3 Gentoo Linux OpenWrt Nura Sabotage Adélie Linux Morpheus Linux Chimera Linux Void Linux (but not for IA-32) KISS Linux A modified version of musl is available for userspace code written for the seL4 microkernel , requiring users to implement the parts of the Linux system call interface that the subset of musl they wish to use depends on.[src] Huawei's HarmonyOS NEXT operating system uses a fork of musl as its libc implementation.[src] For binaries that have been linked against glibc, gcompat and glibmus-hq can be used to execute them on musl-based distros.[src] ==See also== Bionic libc dietlibc EGLIBC klibc Newlib uClibc ==References== ==Sources== ==External links== Comparison of C/POSIX standard library implementations for Linux Matrix of C/POSIX standard libraries by architecture Project:Musl on Gentoo wiki[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Musl." encyclopegia.org, 2026, https://encyclopegia.org/wiki/musl. Accessed 06 December 2026.
Chicago
"Musl." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/musl.
APA
encyclopegia.org. (2026). Musl. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/musl
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON