summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorElizabeth Myers <elizabeth@interlinked.me>2018-04-03 03:31:56 -0500
committerElizabeth Myers <elizabeth@interlinked.me>2018-04-03 03:31:56 -0500
commitb26d8891927f7aedb0fc7e20d3a7e9a57e452599 (patch)
tree1bc681d590396bde4c281fd9f2c723686b5426c6 /libgcompat
parent081efd96833196da3a6bd889ac9c80b8e1c3ea17 (diff)
downloadgcompat-b26d8891927f7aedb0fc7e20d3a7e9a57e452599.tar.gz
gcompat-b26d8891927f7aedb0fc7e20d3a7e9a57e452599.tar.bz2
gcompat-b26d8891927f7aedb0fc7e20d3a7e9a57e452599.tar.xz
gcompat-b26d8891927f7aedb0fc7e20d3a7e9a57e452599.zip
malloc: add malloc_trim function
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/malloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgcompat/malloc.c b/libgcompat/malloc.c
index e0b5851..6e519f4 100644
--- a/libgcompat/malloc.c
+++ b/libgcompat/malloc.c
@@ -85,3 +85,9 @@ struct mallinfo mallinfo(void)
memset(&info, 0, sizeof(info));
return info;
}
+
+int malloc_trim(size_t pad)
+{
+ /* This concept doesn't really map to musl's malloc */
+ return 0;
+}