[RTEMS Project] #3583: Add rtems_malloc() and rtems_calloc()

RTEMS trac trac at rtems.org
Wed Nov 7 11:56:08 UTC 2018


#3583: Add rtems_malloc() and rtems_calloc()
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  enhancement      |     Status:  assigned
  Priority:  normal           |  Milestone:  5.1
 Component:  rtems            |    Version:  5
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 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.

--
Ticket URL: <http://devel.rtems.org/ticket/3583>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list