mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
implement options handling for malloc_info
This commit is contained in:
parent
13ee04c8c3
commit
494436c904
1 changed files with 5 additions and 1 deletions
|
@ -1727,7 +1727,11 @@ EXPORT struct mallinfo h_mallinfo(void) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
#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;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue