source: rtems/cpukit/libcsupport/include/rtems/libcsupport.h @ 9b4422a2

4.11
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file rtems/libcsupport.h
3 *
4 * This include file contains the information regarding the
5 * RTEMS specific support for the standard C library.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2011.
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.com/license/LICENSE.
15 */
16
17#ifndef _RTEMS_RTEMS_LIBCSUPPORT_H
18#define _RTEMS_RTEMS_LIBCSUPPORT_H
19
20#include <sys/types.h>
21#include <stdint.h>
22
23#include <rtems/score/heap.h>
24#include <rtems/rtems/tasks.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30void RTEMS_Malloc_Initialize(
31  void *heap_begin,
32  uintptr_t heap_size,
33  size_t sbrk_amount
34);
35
36extern void malloc_dump(void);
37extern void malloc_walk(size_t source, size_t printf_enabled);
38void malloc_set_heap_pointer(Heap_Control *new_heap);
39Heap_Control *malloc_get_heap_pointer( void );
40extern void libc_init(void);
41extern int  host_errno(void);
42extern void fix_syscall_errno(void);
43extern size_t malloc_free_space(void);
44extern void open_dev_console(void);
45
46extern int malloc_info(Heap_Information_block *the_info);
47
48/*
49 *  Prototypes required to install newlib reentrancy user extension
50 */
51bool newlib_create_hook(
52  rtems_tcb *current_task,
53  rtems_tcb *creating_task
54);
55
56#define __RTEMS_NEWLIB_BEGIN 0
57
58void newlib_delete_hook(
59  rtems_tcb *current_task,
60  rtems_tcb *deleted_task
61);
62
63#define RTEMS_NEWLIB_EXTENSION \
64{ \
65  newlib_create_hook,     /* rtems_task_create  */ \
66  0,                      /* rtems_task_start   */ \
67  0,                      /* rtems_task_restart */ \
68  newlib_delete_hook,     /* rtems_task_delete  */ \
69  0,                      /* task_switch  */ \
70  __RTEMS_NEWLIB_BEGIN,   /* task_begin   */ \
71  0,                      /* task_exitted */ \
72  0                       /* fatal        */ \
73}
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif
80/* end of include file */
Note: See TracBrowser for help on using the repository browser.