source: rtems/cpukit/libcsupport/src/_calloc_r.c @ 1c6926c1

5
Last change on this file since 1c6926c1 was f97536d, checked in by Sebastian Huber <sebastian.huber@…>, on 10/16/15 at 06:21:48

basdefs.h: Add and use RTEMS_UNUSED

  • Property mode set to 100644
File size: 647 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief Allocate Space for Array in Memory
5 *  @ingroup libcsupport
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2007.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#if defined(RTEMS_NEWLIB) && !defined(HAVE__CALLOC_R)
22#include <sys/reent.h>
23#include <stdlib.h>
24
25void *_calloc_r(
26  struct _reent *ignored,
27  size_t         elements,
28  size_t         size
29)
30{
31  (void) ignored;
32  return calloc( elements, size );
33}
34#endif
Note: See TracBrowser for help on using the repository browser.