public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH newlib] libc/include/malloc.h: Add prototype for GNU extension malloc_usable_size()
@ 2022-03-15 15:16 Joel Sherrill
       [not found] ` <BN2P110MB1544D6E89DF3E9BB09EC091D9A109@BN2P110MB1544.NAMP110.PROD.OUTLOOK.COM>
  2022-03-15 15:47 ` Mike Frysinger
  0 siblings, 2 replies; 10+ messages in thread
From: Joel Sherrill @ 2022-03-15 15:16 UTC (permalink / raw)
  To: newlib

This is not provided by the newlib malloc implementation but may
be available in external implementations.
---
 newlib/libc/include/malloc.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h
index a9dc5bca6..e73095e1e 100644
--- a/newlib/libc/include/malloc.h
+++ b/newlib/libc/include/malloc.h
@@ -137,6 +137,10 @@ extern void __malloc_lock(struct _reent *);
 
 extern void __malloc_unlock(struct _reent *);
 
+#if __GNU_VISIBLE
+extern size_t malloc_usable_size(void *);
+#endif
+
 /* A compatibility routine for an earlier version of the allocator.  */
 
 extern void mstats (char *);
-- 
2.24.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-03-15 23:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 15:16 [PATCH newlib] libc/include/malloc.h: Add prototype for GNU extension malloc_usable_size() Joel Sherrill
     [not found] ` <BN2P110MB1544D6E89DF3E9BB09EC091D9A109@BN2P110MB1544.NAMP110.PROD.OUTLOOK.COM>
2022-03-15 15:38   ` C Howland
2022-03-15 15:44     ` Joel Sherrill
2022-03-15 15:54       ` C Howland
2022-03-15 15:47 ` Mike Frysinger
2022-03-15 18:42   ` Sebastian Huber
2022-03-15 20:36     ` Mike Frysinger
2022-03-15 21:14       ` Joel Sherrill
2022-03-15 20:54     ` Joel Sherrill
2022-03-15 23:50       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).