[RTEMS Project] #4503: Add glibc malloc family extension malloc_usable_size()

RTEMS trac trac at rtems.org
Wed Sep 8 20:21:50 UTC 2021


#4503: Add glibc malloc family extension malloc_usable_size()
-------------------------------------+---------------------
 Reporter:  Joel Sherrill            |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  6.1
Component:  lib                      |     Version:  6
 Severity:  normal                   |  Resolution:
 Keywords:  small, tasks, SoC, libc  |  Blocked By:
 Blocking:                           |
-------------------------------------+---------------------
Description changed by Joel Sherrill:

Old description:

> The man page for this method is at:
>
> https://man7.org/linux/man-pages/man3/malloc_usable_size.3.html
>
> Add implementation and test code to the malloc family in libcsupport/.
> The required functionality should be in the underlying score/ capability
> used.

New description:

 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.

--

--
Ticket URL: <http://devel.rtems.org/ticket/4503#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list