#3583 closed enhancement (fixed)
Add rtems_malloc() and rtems_calloc()
Reported by: | Sebastian Huber | Owned by: | Sebastian Huber |
---|---|---|---|
Priority: | normal | Milestone: | 5.1 |
Component: | rtems | Version: | 5 |
Severity: | normal | Keywords: | qualification |
Cc: | Blocked By: | ||
Blocking: |
Description
The standard C/POSIX functions malloc() and calloc() set errno in case of an error. A dependency to errno pulls in getreent() which pulls in a lot of data structures and functions. This is an issue in low level code especially in the area of a basic board support package initialization and device drivers.
Provide rtems_malloc() and rtems_calloc() functions declared in <rtems/malloc.h> which do the same as the corresponding C/POSIX functions except setting errno.
The posix_memalign() and aligned_alloc() functions do not have this issue with the errno.
Change History (3)
comment:1 Changed on 11/12/18 at 14:43:46 by Sebastian Huber <sebastian.huber@…>
comment:2 Changed on 11/12/18 at 14:43:54 by Sebastian Huber <sebastian.huber@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In 6efc831/rtems:
comment:3 Changed on 06/23/21 at 07:16:03 by Sebastian Huber
Keywords: | qualification added |
---|
Note: See
TracTickets for help on using
tickets.
In c1f3c2b8/rtems: