提交 877d4888 编写于 作者: S sosnin-vladimir

Revert the NDK API changes of mallinfo/mallinfo2 because they aren't yet...

Revert the NDK API changes of mallinfo/mallinfo2 because they aren't yet approved. The respective new API is still available for internal use via the porting layer.
Signed-off-by: Nsosnin-vladimir <sosninvladimir@huawei.com>
上级 1be8f2fa
...@@ -18,21 +18,31 @@ void *memalign(size_t, size_t); ...@@ -18,21 +18,31 @@ void *memalign(size_t, size_t);
size_t malloc_usable_size(void *); size_t malloc_usable_size(void *);
#define __MALLINFO_BODY \ struct mallinfo {
size_t arena; \ int arena;
size_t ordblks; \ int ordblks;
size_t smblks; \ int smblks;
size_t hblks; \ int hblks;
size_t hblkhd; \ int hblkhd;
size_t usmblks; \ int usmblks;
size_t fsmblks; \ int fsmblks;
size_t uordblks; \ int uordblks;
size_t fordblks; \ int fordblks;
int keepcost;
};
struct mallinfo2 {
size_t arena;
size_t ordblks;
size_t smblks;
size_t hblks;
size_t hblkhd;
size_t usmblks;
size_t fsmblks;
size_t uordblks;
size_t fordblks;
size_t keepcost; size_t keepcost;
};
struct mallinfo { __MALLINFO_BODY };
struct mallinfo2 { __MALLINFO_BODY };
#ifdef __cplusplus #ifdef __cplusplus
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册