source: rtems/cpukit/libcsupport/src/_calloc_r.c @ 98b785e

4.115
Last change on this file since 98b785e was a13c3df, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/30/09 at 06:15:39

Rework autoconf defines.

  • Property mode set to 100644
File size: 604 bytes
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
22void *_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.