Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

musl

From Wikipedia, the free encyclopedia
Implementation of C standard library for Linux operating system
For the American lottery organization MUSL, seeMulti-State Lottery Association.
musl
DevelopersRich Felker (dalias) and others
Initial releaseFebruary 11, 2011; 15 years ago (2011-02-11)[1]
Stable release
1.2.5[2] / February 29, 2024; 23 months ago (2024-02-29)
Operating systemLinux 2.6 or later
Platformx86,x86_64,ARM,loongarch64,MIPS,Microblaze,PowerPC,powerpc64,x32,RISC-V,OpenRISC,s390x,SuperH
Type
LicenseMIT License
Websitemusl.libc.org
Repository

musl is aC standard library intended foroperating systems based on theLinux kernel, released under theMIT License.[3] It was developed by Rich Felker to write a clean, efficient, and standards-conformantlibc implementation.[4]

Overview

[edit]

musl was designed from scratch to allow efficientstatic linking and to have realtime-quality robustness by avoidingrace conditions, internal failures on resource exhaustion, and various other bad worst-case behaviors present in existing implementations.[4] The dynamic runtime is a single file with stableABI 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 thePOSIX 2008 specification and theC11 standard. It also implements most of the widely used non-standardLinux,BSD, andglibc functions.[5] There is partial ABI compatibility with the part of glibc required byLinux Standard Base.[6]

Version 1.2.0 has support for (no longer current)Unicode 12.1.0 (while still having fullUTF-8 support,[7] more conformant/strict thanglibc), and version 1.2.1 "features the new 'mallocng'malloc implementation, replacing musl's originaldlmalloc-like allocator that suffered from fundamental design problems."[2]

Use

[edit]

Linux distributions which use musl as their standard C library (some useonly musl) include but are not limited to:

TheseL4 microkernel[17] ships with musl.

For binaries that have been linked against glibc, gcompat and[18] glibmus-hq[19] can be used to execute them on musl-based distros.

See also

[edit]

References

[edit]
  1. ^"musl - obsolete versions".musl-libc.org. 2017-10-31. Retrieved2018-01-14.>
  2. ^ab"musl libc Release History".musl.libc.org.Archived from the original on 2021-10-16. Retrieved2020-08-13.
  3. ^Rich Felker; et al. (2016-04-29)."COPYRIGHT".Archived from the original on 2021-10-16. Retrieved2016-09-26.
  4. ^ab"Introduction to musl". 2016-04-21.Archived from the original on 2021-10-16. Retrieved2016-09-26.
  5. ^"Compatibility".wiki.musl-libc.org. 2014-05-27.Archived from the original on 2021-10-16. Retrieved2016-09-26.
  6. ^"Comparison of C/POSIX standard library implementations for Linux".www.etalabs.net.Archived from the original on 2021-10-16.
  7. ^"musl libc - Functional differences from glibc".wiki.musl-libc.org.Archived from the original on 2021-10-16. Retrieved2020-08-13.
  8. ^"About".Alpine Linux. Retrieved18 June 2022.
  9. ^Larabel, Michael (30 September 2018)."Dragora 3.0 Alpha 2 Released As One Of The Libre GNU/Linux Platforms".Phoronix. Phoronix Media. Retrieved18 June 2022.
  10. ^Gentoo Authors (20 July 2021)."Additional stage downloads for amd64, ppc, x86, arm available".Gentoo Linux. Retrieved18 June 2022.
  11. ^Fietkau, Felix (16 Jun 2015)."OpenWrt switches to musl by default". Archived fromthe original on 28 July 2015.
  12. ^"About postmarketOS - postmarketOS Wiki".wiki.postmarketos.org. Retrieved2024-08-07.
  13. ^README.md onGitHub
  14. ^"morpheus". Archived fromthe original on 2021-10-16. Retrieved2018-06-15.
  15. ^"Chimera Linux - About".Chimera Linux. Retrieved2023-05-10.
  16. ^"Enter the void".Void Linux. Retrieved18 June 2022.
  17. ^seL4/musllibc, seL4 microkernel and related repositories, 2020-08-30,archived from the original on 2021-10-16, retrieved2020-09-05
  18. ^"Adélie Linux / gcompat".GitLab.Archived from the original on 2021-10-16. Retrieved2019-10-21.
  19. ^"Manoel-linux-gitlab / GlibMus-HQ · GitLab".

External links

[edit]
Features
Standard library
Implementations
Compilers
IDEs
Comparison with
other languages
Descendant
languages
Designer
Retrieved from "https://en.wikipedia.org/w/index.php?title=Musl&oldid=1320783998"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp