4.115
Line | |
---|
1 | /* |
---|
2 | * _calloc_r Implementation |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2007. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #if HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #if defined(RTEMS_NEWLIB) && !defined(HAVE__CALLOC_R) |
---|
19 | #include <sys/reent.h> |
---|
20 | #include <stdlib.h> |
---|
21 | |
---|
22 | void *_calloc_r( |
---|
23 | struct _reent *ignored __attribute__((unused)), |
---|
24 | size_t elements, |
---|
25 | size_t size |
---|
26 | ) |
---|
27 | { |
---|
28 | return calloc( elements, size ); |
---|
29 | } |
---|
30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.