diff options
Diffstat (limited to 'cpukit/libcsupport/src/_calloc_r.c')
-rw-r--r-- | cpukit/libcsupport/src/_calloc_r.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/_calloc_r.c b/cpukit/libcsupport/src/_calloc_r.c new file mode 100644 index 0000000000..1b515d2464 --- /dev/null +++ b/cpukit/libcsupport/src/_calloc_r.c @@ -0,0 +1,30 @@ +/* + * _calloc_r Implementation + * + * COPYRIGHT (c) 1989-2007. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#if defined(RTEMS_NEWLIB) && !defined(HAVE__CALLOC_R) +#include <sys/reent.h> +#include <stdlib.h> + +void *_calloc_r( + struct _reent *ignored __attribute__((unused)), + size_t elements, + size_t size +) +{ + return calloc( elements, size ); +} +#endif |