Musl

musl is a C standard library intended for operating systems based on the Linux kernel, released under the MIT License.

It was developed by Rich Felker to write a clean, efficient, and standards-conformant libc implementation.

musl
Developer(s)Rich Felker (dalias) and others
Initial releaseFebruary 11, 2011; 13 years ago (2011-02-11)
Stable release
1.2.5 / February 29, 2024; 58 days ago (2024-02-29)
Repository
Operating systemLinux 2.6 or later
Platformx86, x86_64, ARM, MIPS, Microblaze, PowerPC, powerpc64, x32, riscv64, OpenRISC, s390x, SuperH
Type
LicenseMIT License
Websitemusl.libc.org

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. 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.

It claims compatibility with the POSIX 2008 specification and the C11 standard. It also implements most of the widely used non-standard Linux, BSD, and glibc functions. There is partial ABI compatibility with the part of glibc required by Linux Standard Base.

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

Some Linux distributions that can use musl as the standard C library include Alpine Linux, Dragora 3, Gentoo Linux, OpenWrt, Sabotage, Morpheus Linux, Chimera Linux, and Void Linux. The seL4 microkernel ships with musl. For binaries that have been linked against glibc, gcompat can be used to execute them on musl-based distros.

See also

References


Tags:

Musl OverviewMuslC standard libraryLibcLinux kernelMIT LicenseOperating system

🔥 Trending searches on Wiki English:

Ballerina (upcoming film)John F. KennedyDwayne JohnsonXXXXArtificial intelligenceDetachment (film)March 27Vande Bharat ExpressSwedenCharlotte FlairRyan ReynoldsLondonEarth2023 French pension reform strikesMurder Mystery (film)Sandra BullockPremier LeagueCzech RepublicRenfield (film)Sydney SweeneyStephen HawkingI See You (2019 film)Jim CarreyWhatsAppJason SegelBella RamseyGame of ThronesJason StathamMalaysiaList of ethnic slursDusty MayFast & FuriousShamier AndersonRyan GoslingJulia RobertsAtomic bombings of Hiroshima and NagasakiJared FogleBBC World ServiceChristina RicciWhitney HoustonNikki Catsouras photographs controversyMammoottyGPT-4Stevie NicksLove Is Blind (TV series)IslamConor McGregorInternetFleetwood MacTornado outbreak of March 24–26, 2023Amritpal SinghFIFA World CupBette DavisBetter Call SaulSam AltmanBabylon (2022 film)2023 IBA Women's World Boxing ChampionshipsKhalistan movementBanzhaf power indexHiroyuki SanadaHTTP cookieBukayo SakaShou Zi ChewList of Hindi films of 2023Nicole KidmanThe Mandalorian (season 3)Robert KraftRic FlairJason RitterXXXX GoldStellan SkarsgårdYou (season 4)InstagramNCAA Division I men's basketball tournamentIran🡆 More