• Home
Name Date Size #Lines LOC

..--

arch/12-May-2024-19,89518,028

compat/time32/12-May-2024-1,105934

crt/12-May-2024-413340

dist/12-May-2024-3725

fuzztest/12-May-2024-169103

include/12-May-2024-17,20114,150

ldso/12-May-2024-2,4642,085

libc-test/12-May-2024-205,450165,204

ndk-test/12-May-2024-4,2222,831

ndk_musl_include/12-May-2024-17,41214,031

ndk_script/12-May-2024-2,0341,972

porting/12-May-2024-189,305153,211

scripts/12-May-2024-864700

src/12-May-2024-78,37361,748

tools/12-May-2024-1,067831

.gitignoreD12-May-202461 98

.mailmapD12-May-202454 21

BUILD.gnD12-May-202412.2 KiB428370

COPYRIGHTD12-May-20246 KiB191168

INSTALLD12-May-20246.6 KiB192142

MakefileD12-May-20247.3 KiB237158

OAT.xmlD12-May-20246.9 KiB9342

README.OpenSourceD12-May-2024419 1211

README.mdD12-May-20241,020 2217

README_zh.mdD12-May-20241.7 KiB4027

VERSIOND12-May-20246 21

WHATSNEWD12-May-202483.5 KiB2,2031,734

bundle.jsonD12-May-2024848 3636

configureD12-May-202423.8 KiB786550

dynamic.listD12-May-2024446 5140

libc.map.txtD12-May-202433.5 KiB2,0642,063

musl_config.gniD12-May-20242.1 KiB7063

musl_src.gniD12-May-202457.6 KiB2,1482,127

musl_template.gniD12-May-202426.1 KiB931824

README.OpenSource

1[
2    {
3        "Name"                  : "musl",
4        "License"               : "MIT License",
5        "License File"          : "COPYRIGHT",
6        "Version Number"        : "1.2.0",
7        "Owner"                 : "jianghan2@huawei.com",
8        "Upstream URL"          : "http://www.musl-libc.org/",
9        "Description"           : "musl is an MIT-licensed implementation of the standard C library"
10    }
11]
12

README.md

1# musl libc
2
3musl, pronounced like the word "mussel", is an MIT-licensed
4implementation of the standard C library targetting the Linux syscall
5API, suitable for use in a wide range of deployment environments. musl
6offers efficient static and dynamic linking support, lightweight code
7and low runtime overhead, strong fail-safe guarantees under correct
8usage, and correctness in the sense of standards conformance and
9safety. musl is built on the principle that these goals are best
10achieved through simple code that is easy to understand and maintain.
11
12The 1.1 release series for musl features coverage for all interfaces
13defined in ISO C99 and POSIX 2008 base, along with a number of
14non-standardized interfaces for compatibility with Linux, BSD, and
15glibc functionality.
16
17For basic installation instructions, see the included INSTALL file.
18Information on full musl-targeted compiler toolchains, system
19bootstrapping, and Linux distributions built on musl can be found on
20the project website:http://www.musl-libc.org/
21
22

README_zh.md

1# Musl libc
2
3musl,是MIT授权的针对Linux系统调用的API的标准C库实现,适用于广泛的部署环境。musl提供了高效的静态和动态链接支持, 为轻量级代码并且运行时开销低,在正确使用时具有强大的故障安全保证,以及标准一致性意义上的正确性和安全性。musl建立的原则是使用便于理解和维护的简单代码来实现目标。
4
5musl的1.1版本系列涵盖了所有在ISO C99和POSIX 2008基础中定义的接口,以及一些非标准的为了与Linux、BSD和glibc功能兼容的接口。
6
7## 目录结构
8
9```
10README_zh.md            #中文说明
11include					#musl头文件
12ldso					#动态链接器
13libc-test				#关于musl的测试用例
14ndk_musl_include		#生成ndk版本的头文件
15ndk_script				#生成ndk版本的脚本
16porting                 #linux liteos平台对musl适配文件
17src						#musl文件源
18scripts					#测试用脚本
19```
20
21## Openharmony对于musl的适配
22
23musl编译框架时编译,使用BUILD.gn进行配置编译。
24
25基于openharmony的需求,为musl新增的特性:
26
27-  加载器地址随机化,RELRO共享机制
28-  提供加载器namespace机制
29-  OHOS容器中能够运行依赖bionic的库
30-  musl全球化接口适配locale数据能力
31
32等。在新增特性基础上,也进行了对于musl接口功能的完善与错误的修复。
33
34## Musl使用文档
35
36有关完整musl目标编译器工具链、系统的信息bootstrapping和基于musl构建的Linux发行版可以在官方网站上找到:http://www.musl-libc.org/
37
38有关基本安装说明,请参阅附带的[INSTALL](https://gitee.com/openharmony/third_party_musl/blob/master/INSTALL)文件。
39
40musl参考手册:https://musl.libc.org/doc/1.1.24/manual.html