提交 12e6b8a4 编写于 作者: W wonghiu45

add mallopt ohos_config related macro definitions

Issue: https://gitee.com/openharmony/third_party_musl/issues/I7TGMA
Test: Build & Boot devices
Signed-off-by: Nwonghiu45 <huangxiao35@huawei.com>
Change-Id: I9feaebd83c42679729998ed5740de9f58bf05b74
上级 dc6ae366
......@@ -19,6 +19,12 @@ extern "C" {
#define M_DELAYED_FREE_ENABLE 1
#define M_DELAYED_FREE_DISABLE 0
#define M_OHOS_CONFIG -1004
#define M_DISABLE_OPT_TCACHE 100
#define M_ENABLE_OPT_TCACHE 101
#define M_TCACHE_PERFORMANCE_MODE 102
#define M_TCACHE_NORMAL_MODE 103
void *malloc (size_t);
void *calloc (size_t, size_t);
void *realloc (void *, size_t);
......
......@@ -60,6 +60,12 @@ void malloc_stats_print(void (*write_cb) (void *, const char *), void *cbopaque,
#define M_DELAYED_FREE_ENABLE 1
#define M_DELAYED_FREE_DISABLE 0
#define M_OHOS_CONFIG -1004
#define M_DISABLE_OPT_TCACHE 100
#define M_ENABLE_OPT_TCACHE 101
#define M_TCACHE_PERFORMANCE_MODE 102
#define M_TCACHE_NORMAL_MODE 103
int mallopt(int param, int value);
ssize_t malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册