5
Last change
on this file since 1c6926c1 was
01557b0,
checked in by Sebastian Huber <sebastian.huber@…>, on 11/27/14 at 10:44:48
|
libcsupport: Delete malloc statistics
Use the heap handler statistics instead. Add heap walk option to MALLOC
shell command.
close #1367
|
-
Property mode set to
100644
|
File size:
788 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup libcsupport |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * COPYRIGHT (c) 1989-2008. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.org/license/LICENSE. |
---|
14 | */ |
---|
15 | |
---|
16 | #if HAVE_CONFIG_H |
---|
17 | #include "config.h" |
---|
18 | #endif |
---|
19 | |
---|
20 | #ifdef RTEMS_NEWLIB |
---|
21 | #include "malloc_p.h" |
---|
22 | |
---|
23 | #include <stdlib.h> |
---|
24 | #include <errno.h> |
---|
25 | |
---|
26 | int posix_memalign( |
---|
27 | void **pointer, |
---|
28 | size_t alignment, |
---|
29 | size_t size |
---|
30 | ) |
---|
31 | { |
---|
32 | if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) |
---|
33 | return EINVAL; |
---|
34 | |
---|
35 | /* |
---|
36 | * rtems_memalign does all of the error checking work EXCEPT |
---|
37 | * for adding restrictionso on the alignment. |
---|
38 | */ |
---|
39 | return rtems_memalign( pointer, alignment, size ); |
---|
40 | } |
---|
41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.