From 1fd869c8bc6e22c95ea1e775b816e939a814d7ba Mon Sep 17 00:00:00 2001 From: chenjianwen Date: Wed, 9 Mar 2022 13:53:38 +0800 Subject: [PATCH] Add ndk Signed-off-by: chenjianwen --- .../third_party_libc/musl-peculiar-symbol.md | 309 ++++++++++++++++++ .../native-lib/third_party_libc/musl.md | 74 +++++ 2 files changed, 383 insertions(+) create mode 100644 zh-cn/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md create mode 100644 zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md diff --git a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md new file mode 100644 index 00000000000..87162b3ea96 --- /dev/null +++ b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md @@ -0,0 +1,309 @@ +**NDK中没有导出的符号列表** + +|符号类型|符号名|备注| +| --- | --- | --- | +|OBJECT|___environ|| +|OBJECT|__daylight|| +|OBJECT|__environ|| +|OBJECT|__hook_enable_hook_flag|| +|OBJECT|__libc_malloc_default_dispatch|| +|OBJECT|__musl_libc_globals|| +|OBJECT|__optpos|| +|OBJECT|__optreset|| +|OBJECT|__progname_full|| +|OBJECT|__signgam|| +|OBJECT|__timezone|| +|OBJECT|__tzname|| +|OBJECT|_dl_debug_addr|| +|OBJECT|_environ|| +|OBJECT|function_of_shared_lib|| +|OBJECT|h_errno|| +|OBJECT|ohos_malloc_hook_shared_liibrary|| +|OBJECT|program_invocation_name|| +|OBJECT|program_invocation_short_name|| +|FUNC|__adjtime64|| +|FUNC|__aio_suspend_time64|| +|FUNC|__clock_gettime64|| +|FUNC|__ctype_b_loc|| +|FUNC|__ctype_tolower_loc|| +|FUNC|__ctype_toupper_loc|| +|FUNC|__dls2b|| +|FUNC|__dls3|| +|FUNC|__fgetwc_unlocked|| +|FUNC|__flt_rounds|| +|FUNC|__fputwc_unlocked|| +|FUNC|__freadahead|| +|FUNC|__freadptr|| +|FUNC|__freadptrinc|| +|FUNC|__freelocale|| +|FUNC|__fstat_time64|| +|FUNC|__ftime64|| +|FUNC|__fxstat64|| +|FUNC|__fxstatat64|| +|FUNC|__getdelim|| +|FUNC|__isalnum_l|| +|FUNC|__isalpha_l|| +|FUNC|__isblank_l|| +|FUNC|__iscntrl_l|| +|FUNC|__isdigit_l|| +|FUNC|__isgraph_l|| +|FUNC|__islower_l|| +|FUNC|__isoc99_fscanf|| +|FUNC|__isoc99_fwscanf|| +|FUNC|__isoc99_scanf|| +|FUNC|__isoc99_sscanf|| +|FUNC|__isoc99_swscanf|| +|FUNC|__isoc99_vfscanf|| +|FUNC|__isoc99_vfwscanf|| +|FUNC|__isoc99_vscanf|| +|FUNC|__isoc99_vsscanf|| +|FUNC|__isoc99_vswscanf|| +|FUNC|__isoc99_vwscanf|| +|FUNC|__isoc99_wscanf|| +|FUNC|__isprint_l|| +|FUNC|__ispunct_l|| +|FUNC|__isspace_l|| +|FUNC|__isupper_l|| +|FUNC|__iswalnum_l|| +|FUNC|__iswalpha_l|| +|FUNC|__iswblank_l|| +|FUNC|__iswcntrl_l|| +|FUNC|__iswctype_l|| +|FUNC|__iswdigit_l|| +|FUNC|__iswgraph_l|| +|FUNC|__iswlower_l|| +|FUNC|__iswprint_l|| +|FUNC|__iswpunct_l|| +|FUNC|__iswspace_l|| +|FUNC|__iswupper_l|| +|FUNC|__iswxdigit_l|| +|FUNC|__isxdigit_l|| +|FUNC|__lgammal_r|| +|FUNC|__libc_free|| +|FUNC|__libc_malloc|| +|FUNC|__libc_start_main|| +|FUNC|__lstat_time64|| +|FUNC|__lxstat64|| +|FUNC|__mq_timedreceive_time64|| +|FUNC|__mq_timedsend_time64|| +|FUNC|__nanosleep_time64|| +|FUNC|__newlocale|| +|FUNC|__nl_langinfo|| +|FUNC|__nl_langinfo_l|| +|FUNC|__overflow|| +|FUNC|__posix_getopt|| +|FUNC|__pthread_cond_timedwait_time64|| +|FUNC|__pthread_gettid_np|| +|FUNC|__pthread_timedjoin_np_time64|| +|FUNC|__res_state|| +|FUNC|__setjmp|| +|FUNC|__sigsetjmp|| +|FUNC|__stat_time64|| +|FUNC|__stime64|| +|FUNC|__strcasecmp_l|| +|FUNC|__strcoll_l|| +|FUNC|__strerror_l|| +|FUNC|__strncasecmp_l|| +|FUNC|__strtod_l|| +|FUNC|__strtof_l|| +|FUNC|__strtoimax_internal|| +|FUNC|__strtol_internal|| +|FUNC|__strtold_l|| +|FUNC|__strtoll_internal|| +|FUNC|__strtoul_internal|| +|FUNC|__strtoull_internal|| +|FUNC|__strtoumax_internal|| +|FUNC|__strxfrm_l|| +|FUNC|__sysv_signal|| +|FUNC|__tolower_l|| +|FUNC|__toupper_l|| +|FUNC|__towctrans_l|| +|FUNC|__towlower_l|| +|FUNC|__towupper_l|| +|FUNC|__uflow|| +|FUNC|__uselocale|| +|FUNC|__utimensat_time64|| +|FUNC|__wait3_time64|| +|FUNC|__wcscoll_l|| +|FUNC|__wcsftime_l|| +|FUNC|__wcsxfrm_l|| +|FUNC|__wctrans_l|| +|FUNC|__wctype_l|| +|FUNC|__xmknod|| +|FUNC|__xmknodat|| +|FUNC|__xpg_basename|| +|FUNC|__xpg_strerror_r|| +|FUNC|__xstat64|| +|FUNC|_dl_debug_state|| +|FUNC|_dlstart|| +|FUNC|_fini|| +|FUNC|_init|| +|FUNC|_IO_feof_unlocked|| +|FUNC|_IO_ferror_unlocked|| +|FUNC|_IO_getc|| +|FUNC|_IO_getc_unlocked|| +|FUNC|_IO_putc|| +|FUNC|_IO_putc_unlocked|| +|FUNC|a64l|| +|FUNC|addmntent|| +|FUNC|adjtime|| +|FUNC|aio_cancel|| +|FUNC|aio_cancel64|| +|FUNC|aio_error|| +|FUNC|aio_error64|| +|FUNC|aio_fsync|| +|FUNC|aio_fsync64|| +|FUNC|aio_read|| +|FUNC|aio_read64|| +|FUNC|aio_return|| +|FUNC|aio_return64|| +|FUNC|aio_suspend|| +|FUNC|aio_suspend64|| +|FUNC|aio_write|| +|FUNC|aio_write64|| +|FUNC|bcmp|| +|FUNC|bind_textdomain_codeset|| +|FUNC|bindtextdomain|| +|FUNC|confstr|| +|FUNC|copy_file_range|| +|FUNC|crypt|| +|FUNC|crypt_r|| +|FUNC|cuserid|| +|FUNC|dcgettext|| +|FUNC|dcngettext|| +|FUNC|dgettext|| +|FUNC|dlinfo|| +|FUNC|dngettext|| +|FUNC|eaccess|| +|FUNC|ecvt|| +|FUNC|encrypt|| +|FUNC|endspent|| +|FUNC|endusershell|| +|FUNC|endutxent|| +|FUNC|ether_hostton|| +|FUNC|ether_line|| +|FUNC|ether_ntohost|| +|FUNC|euidaccess|| +|FUNC|exp10|| +|FUNC|exp10f|| +|FUNC|exp10l|| +|FUNC|explicit_bzero|| +|FUNC|fanotify_init|| +|FUNC|fanotify_mark|| +|FUNC|fcvt|| +|FUNC|fgetgrent|| +|FUNC|fgetpwent|| +|FUNC|fgetspent|| +|FUNC|fgetwc_unlocked|| +|FUNC|fgetws_unlocked|| +|FUNC|finish_install_ohos_malloc_hooks|| +|FUNC|fmtmsg|| +|FUNC|fopencookie|| +|FUNC|fputwc_unlocked|| +|FUNC|fputws_unlocked|| +|FUNC|gcvt|| +|FUNC|get_current_dir_name|| +|FUNC|getdate|| +|FUNC|getdents64|| +|FUNC|gethostid|| +|FUNC|getpass|| +|FUNC|getservbyname_r|| +|FUNC|getservbyport_r|| +|FUNC|getspent|| +|FUNC|getspnam|| +|FUNC|getspnam_r|| +|FUNC|gettext|| +|FUNC|getusershell|| +|FUNC|getutid|| +|FUNC|getutline|| +|FUNC|getutxent|| +|FUNC|getutxid|| +|FUNC|getutxline|| +|FUNC|getw|| +|FUNC|getwc_unlocked|| +|FUNC|getwchar_unlocked|| +|FUNC|glob64|| +|FUNC|globfree64|| +|FUNC|init_malloc_hook_shared_library|| +|FUNC|isastream|| +|FUNC|l64a|| +|FUNC|lchmod|| +|FUNC|lckpwdf|| +|FUNC|lio_listio|| +|FUNC|lio_listio64|| +|FUNC|load_malloc_hook_shared_library|| +|FUNC|log_print|| +|FUNC|membarrier|| +|FUNC|mq_close|| +|FUNC|mq_getattr|| +|FUNC|mq_notify|| +|FUNC|mq_open|| +|FUNC|mq_receive|| +|FUNC|mq_send|| +|FUNC|mq_setattr|| +|FUNC|mq_timedreceive|| +|FUNC|mq_timedsend|| +|FUNC|mq_unlink|| +|FUNC|name_to_handle_at|| +|FUNC|ngettext|| +|FUNC|ohos_malloc_hook_init_function|| +|FUNC|open_by_handle_at|| +|FUNC|pivot_root|| +|FUNC|posix_close|| +|FUNC|posix_spawn_file_actions_addchdir_np|| +|FUNC|posix_spawn_file_actions_addfchdir_np|| +|FUNC|pow10|| +|FUNC|pow10f|| +|FUNC|pow10l|| +|FUNC|pthread_cancel|| +|FUNC|pthread_getaffinity_np|| +|FUNC|pthread_getattr_default_np|| +|FUNC|pthread_getconcurrency|| +|FUNC|pthread_mutex_consistent|| +|FUNC|pthread_mutex_getprioceiling|| +|FUNC|pthread_mutex_setprioceiling|| +|FUNC|pthread_mutexattr_getrobust|| +|FUNC|pthread_mutexattr_setrobust|| +|FUNC|pthread_setaffinity_np|| +|FUNC|pthread_setattr_default_np|| +|FUNC|pthread_setcancelstate|| +|FUNC|pthread_setcanceltype|| +|FUNC|pthread_setconcurrency|| +|FUNC|pthread_testcancel|| +|FUNC|pthread_timedjoin_np|| +|FUNC|pthread_tryjoin_np|| +|FUNC|putgrent|| +|FUNC|putpwent|| +|FUNC|putspent|| +|FUNC|pututxline|| +|FUNC|putwc_unlocked|| +|FUNC|putwchar_unlocked|| +|FUNC|remap_file_pages|| +|FUNC|rindex|| +|FUNC|secure_getenv|| +|FUNC|setkey|| +|FUNC|setspent|| +|FUNC|setusershell|| +|FUNC|setutxent|| +|FUNC|shm_open|| +|FUNC|shm_unlink|| +|FUNC|sigandset|| +|FUNC|sigisemptyset|| +|FUNC|sigorset|| +|FUNC|sockatmark|| +|FUNC|stime|| +|FUNC|strfmon|| +|FUNC|strfmon_l|| +|FUNC|strverscmp|| +|FUNC|textdomain|| +|FUNC|ualarm|| +|FUNC|ulckpwdf|| +|FUNC|ulimit|| +|FUNC|updwtmp|| +|FUNC|updwtmpx|| +|FUNC|utmpxname|| +|FUNC|versionsort|| +|FUNC|versionsort64|| +|FUNC|vhangup|| +|FUNC|wordexp|| +|FUNC|wordfree|| \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md new file mode 100644 index 00000000000..be554fac5b2 --- /dev/null +++ b/zh-cn/application-dev/reference/native-lib/third_party_libc/musl.md @@ -0,0 +1,74 @@ +# Native API中支持的标准库 + + + +## 简介 + + + +**表1** HarmonyOS支持的标准库 + +| 名称 | 简介 | +| :-------- | :----------------------------------------------------------- | +| 标准C库 | [libc、libm、libdl](https://zh.cppreference.com/w/c/header)组合实现C11标准C库。 | +| 标准C++库 | [libc++](https://libcxx.llvm.org/) 是C++标准库的一种实现。 | +| OpenSL ES | [OpenSL ES](https://www.khronos.org/registry/OpenSL-ES/)是一个嵌入式跨平台的音频处理库。 | +| zlib | [Zlib](https://zlib.net/)是基于C/C++语言实现的一个通用的数据压缩库。 | + +## 标准C库 + + + +[libc、libm、libdl](https://zh.cppreference.com/w/c/header)组合实现C11标准C库。 + +libc:包含线程相关接口,以及大部分标准接口。 + +libm:数学库函数接口。 + +libdl:dlopen等动态链接器接口。 + +**版本** + +1.2.0 + +**支持的能力** + +C标准函数库是在C语言程序设计中,所有符合标准的头文件的集合,以及常用的函数库实现程序(如I/O输入输出和字符串控制)。 + +**musl** + +[NDK中没有导出的符号列表](musl-peculiar-symbol.md) + +## 标准C++库 + + + +[libc++](https://libcxx.llvm.org/)是C++标准库的一种实现。 + +**版本** + +10.0.1 + +**支持的能力** + +C++11、C++14标准已完全支持,C++17和C++20标准正在完善。 + +## OpenSL ES + + + +[OpenSL ES](https://www.khronos.org/registry/OpenSL-ES/)是一个嵌入式跨平台的音频处理库。 + + + +## zlib + + + +[Zlib](https://zlib.net/)是基于C/C++语言实现的一个通用的数据压缩库。 + + + + + + -- Gitee