#4503 new enhancement

Add glibc malloc family extension malloc_usable_size()

Reported by: Joel Sherrill Owned by:
Priority: normal Milestone: 6.1
Component: lib Version: 6
Severity: normal Keywords: small, tasks, SoC, libc
Cc: Blocked By:
Blocking:

Description (last modified by Joel Sherrill)

RTEMS already has this functionality so it should not be hard to implement this.

https://man7.org/linux/man-pages/man3/malloc_usable_size.3.html
https://www.freebsd.org/cgi/man.cgi?query=malloc_usable_size

The prototype may need to be added to the appropriate newlib header file with the same guard as Linux and FreeBSD.

Add implementation and test code to the malloc family in libcsupport/. The required functionality should already be in the underlying score/ capability used.

The method would need to be fully tested.

The method would need to be documented.

Change History (2)

comment:1 Changed on Sep 8, 2021 at 8:21:50 PM by Joel Sherrill

Description: modified (diff)

comment:2 Changed on Sep 9, 2021 at 8:26:22 AM by Chris Johns

Is glibc some sort of new standard?

Note: See TracTickets for help on using tickets.