• Home
Name Date Size #Lines LOC

..--

Benchmark/07-Sep-2024-10,6348,821

arch/07-Sep-2024-20,55018,686

compat/time32/07-Sep-2024-1,105934

config/07-Sep-2024-351269

crt/07-Sep-2024-466370

dist/07-Sep-2024-3725

docs/07-Sep-2024-199161

etc/07-Sep-2024-4641

fuzztest/07-Sep-2024-169103

include/07-Sep-2024-19,94715,703

ldso/07-Sep-2024-11,3049,438

libc-test/07-Sep-2024-296,486241,372

porting/07-Sep-2024-202,541163,849

scripts/07-Sep-2024-1,9681,577

src/07-Sep-2024-98,90478,088

third_party/07-Sep-2024-349198

tools/07-Sep-2024-1,069833

.gitignoreD07-Sep-202461 98

.mailmapD07-Sep-202454 21

BUILD.gnD07-Sep-202413.7 KiB496430

COPYRIGHTD07-Sep-20246.1 KiB194170

INSTALLD07-Sep-20246.6 KiB192142

MakefileD07-Sep-20247.3 KiB238159

OAT.xmlD07-Sep-20246.9 KiB9342

README.OpenSourceD07-Sep-20241.5 KiB3129

README.mdD07-Sep-20241,020 2217

README_zh.mdD07-Sep-20241.9 KiB4128

VERSIOND07-Sep-20246 21

WHATSNEWD07-Sep-202488.6 KiB2,3301,837

bundle.jsonD07-Sep-2024787 3332

configureD07-Sep-202424.7 KiB813564

dynamic.listD07-Sep-2024508 5442

libc.map.txtD07-Sep-202433.2 KiB2,0352,033

musl_config.gniD07-Sep-20243.9 KiB143129

musl_src.gniD07-Sep-202467.3 KiB2,4672,440

musl_template.gniD07-Sep-202432.7 KiB1,1711,051

README.OpenSource

1[
2    {
3        "Name"                  : "musl",
4        "License"               : "MIT License",
5        "License File"          : "COPYRIGHT",
6        "Version Number"        : "1.2.3",
7        "Owner"                 : "jianghan2@huawei.com",
8        "Upstream URL"          : "https://musl.libc.org",
9        "Description"           : "musl is an MIT-licensed implementation of the standard C library"
10    },
11    {
12        "Name"                  : "OpenBSD",
13        "License"               : "BSD License",
14        "License File"          : "LICENSE",
15        "Version Number"        : "7.4",
16        "Owner"                 : "fangting12@huawei.com",
17        "Upstream URL"          : "https://cvsweb.openbsd.org/src/lib/libc/string/",
18        "Description"           : "The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like operating system. We introduce some basic interface files to improve the interface performance of Musl"
19    },
20    {
21        "Name"                  : "NetBSD",
22        "License"               : "BSD License",
23        "License File"          : "LICEMSE",
24        "Version Number"        : "9.0",
25        "Owner"                 : "fangting12@huawei.com",
26        "Upstream URL"          : "https://github.com/NetBSD/src/tree/netbsd-9",
27        "Description"           : "NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. We introduce some basic interface files to improve the interface performance of Musl"
28    }
29]
30
31

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-  mallocng堆内存分配器安全增强,默认开启meta指针混淆。地址随机化通过MALLOC_SECURE_ALL宏开关。可在编译命令中增加--gn-args="musl_secure_level=3"开启
32
33等。在新增特性基础上,也进行了对于musl接口功能的完善与错误的修复。
34
35## Musl使用文档
36
37有关完整musl目标编译器工具链、系统的信息bootstrapping和基于musl构建的Linux发行版可以在官方网站上找到:http://www.musl-libc.org/
38
39有关基本安装说明,请参阅附带的[INSTALL](https://gitee.com/openharmony/third_party_musl/blob/master/INSTALL)文件。
40
41musl参考手册:https://musl.libc.org/doc/1.1.24/manual.html