source: rtems/cpukit/libcsupport/src/malloc_p.h @ 4088d01d

4.104.114.95
Last change on this file since 4088d01d was 4088d01d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/01/08 at 11:42:19

Convert using "bool".

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  RTEMS Malloc Family Internal Header
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#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
15#include <rtems.h>
16#include <rtems/libcsupport.h>
17#include <rtems/score/protectedheap.h>
18#include <rtems/malloc.h>
19
20#ifdef RTEMS_NEWLIB
21#include <sys/reent.h>
22#endif
23
24#include <stdint.h>
25#include <inttypes.h>
26#include <rtems/chain.h>
27
28#ifndef HAVE_UINTMAX_T
29  /* Fall back to unsigned long if uintmax_t is not available */
30  #define unsigned long uintmax_t
31
32  #ifndef PRIuMAX
33    #define PRIuMAX             "lu"
34  #endif
35#endif
36
37/*
38 * Basic management data
39 */
40extern Heap_Control  RTEMS_Malloc_Heap;
41
42/*
43 *  Malloc Statistics Structure
44 */
45extern rtems_malloc_statistics_t rtems_malloc_statistics;
46
47#define MSBUMP(_f,_n)    rtems_malloc_statistics._f += (_n)
48
49/*
50 *  Process deferred free operations
51 */
52bool malloc_is_system_state_OK(void);
53void malloc_deferred_frees_initialize(void);
54void malloc_deferred_frees_process(void);
55void malloc_deferred_free(void *);
Note: See TracBrowser for help on using the repository browser.