implement options handling for malloc_info

This commit is contained in:
Daniel Micay 2019-04-19 16:23:14 -04:00
parent 13ee04c8c3
commit 494436c904

View File

@ -1727,7 +1727,11 @@ EXPORT struct mallinfo h_mallinfo(void) {
#endif
#ifdef __GLIBC__
EXPORT int h_malloc_info(UNUSED int options, UNUSED FILE *fp) {
EXPORT int h_malloc_info(int options, UNUSED FILE *fp) {
if (options) {
errno = EINVAL;
return -1;
}
errno = ENOSYS;
return -1;
}