5
Last change
on this file since f59d435d was
f59d435d,
checked in by Chris Johns <chrisj@…>, on 04/12/18 at 07:46:49
|
libdl: Remove _t from all structures as this is reserved for the standards
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 2012, 2018 Chris Johns <chrisj@rtems.org> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | /** |
---|
9 | * @file |
---|
10 | * |
---|
11 | * @ingroup rtems_rtl |
---|
12 | * |
---|
13 | * @brief RTEMS Run-Time Linker Allocator for the standard heap. |
---|
14 | */ |
---|
15 | |
---|
16 | #if !defined (_RTEMS_RTL_ALLOC_HEAP_H_) |
---|
17 | #define _RTEMS_RTL_ALLOC_HEAP_H_ |
---|
18 | |
---|
19 | #include <rtems/rtl/rtl-allocator.h> |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif /* __cplusplus */ |
---|
24 | |
---|
25 | /** |
---|
26 | * Allocator handler for the standard libc heap. |
---|
27 | * |
---|
28 | * @param allocation If true the request is to allocate memory else free. |
---|
29 | * @param tag The type of allocation request. |
---|
30 | * @param address Pointer to the memory address. If an allocation the value is |
---|
31 | * unspecific on entry and the allocated address or NULL on |
---|
32 | * exit. The NULL value means the allocation failed. If a delete |
---|
33 | * or free request the memory address is the block to free. A |
---|
34 | * free request of NULL is silently ignored. |
---|
35 | * @param size The size of the allocation if an allocation request and |
---|
36 | * not used if deleting or freeing a previous allocation. |
---|
37 | */ |
---|
38 | void rtems_rtl_alloc_heap(bool allocate, |
---|
39 | rtems_rtl_alloc_tag tag, |
---|
40 | void** address, |
---|
41 | size_t size); |
---|
42 | |
---|
43 | #ifdef __cplusplus |
---|
44 | } |
---|
45 | #endif /* __cplusplus */ |
---|
46 | |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.