diff --git a/en/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md b/en/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md new file mode 100644 index 0000000000000000000000000000000000000000..5186624f3b4444e49ed013901f22ed53f594b9ed --- /dev/null +++ b/en/application-dev/reference/native-lib/third_party_libc/musl-peculiar-symbol.md @@ -0,0 +1,309 @@ +**Native API Symbols Not Exported** + +|Type|Symbol|Remarks| +| --- | --- | --- | +|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| diff --git a/en/application-dev/reference/native-lib/third_party_libc/musl.md b/en/application-dev/reference/native-lib/third_party_libc/musl.md new file mode 100644 index 0000000000000000000000000000000000000000..992ae3e0f3a09164bac4d9198d99dcdc0c74c6e4 --- /dev/null +++ b/en/application-dev/reference/native-lib/third_party_libc/musl.md @@ -0,0 +1,68 @@ +# Standard Libraries Supported by Native APIs + + + +## Introduction + + + +**Table 1** Standard libraries supported by OpenHarmony + +| Library | Description | +| :-------- | :----------------------------------------------------------- | +| C standard library | C11 standard library implemented by [libc, libm, and libdl](https://en.cppreference.com/w/c/header). | +| C++ standard library ([libc++](https://libcxx.llvm.org/))| An implementation of the C++ standard library. | +| [OpenSL ES](https://www.khronos.org/registry/OpenSL-ES/)| An embedded cross-platform audio processing library.| +| [zlib](https://zlib.net/) | A general data compression library implemented in C/C++.| + +## C Standard Library + + + +C11 standard library implemented by [libc, libm, and libdl](https://en.cppreference.com/w/c/header). + +libc: provides thread-related functions and a majority of standard functions. + +libm: provides basic mathematical functions. + +libdl: provides functions related to dynamic linking, such as dlopen. + +**Version** + +1.2.0 + +**Capabilities** + +C standard library includes a set of header files in accordance with standard C and provides common functions, such as the functions related to input/output (I/O) and string control. + +**musl** + +[Native API Symbols Not Exported](musl-peculiar-symbol.md) + +## C++ Standard Library + + + +[libc++](https://libcxx.llvm.org/) is an implementation of the C++ standard library. + +**Version** + +10.0.1 + +**Capabilities** + +The C++11 and C++14 standards are supported, and the C++17 and C++20 standards are on the way. + +## OpenSL ES + + + +[OpenSL ES](https://www.khronos.org/registry/OpenSL-ES/) is an embedded cross-platform audio processing library. + + + +## zlib + + + +[zlib](https://zlib.net/) is a general data compression library implemented in C/C++.