source: rtems/cpukit/libcsupport/include/rtems/libcsupport.h @ 62fbfe37

4.104.115
Last change on this file since 62fbfe37 was 62fbfe37, checked in by Joel Sherrill <joel.sherrill@…>, on 09/26/09 at 15:48:43

2009-09-26 Joel Sherrill <joel.sherrill@…>

  • libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc_reent.c: Eliminate use of deprecated rtems_extension.
  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[4d3017a]1/**
2 * @file rtems/libcsupport.h
3 */
4
[ac7d5ef0]5/*  libcsupport.h
6 *
7 *  This include file contains the information regarding the
8 *  RTEMS specific support for the standard C library.
9 *
[08311cc3]10 *  COPYRIGHT (c) 1989-1999.
[ac7d5ef0]11 *  On-Line Applications Research Corporation (OAR).
12 *
[98e4ebf5]13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
[0eae36c7]15 *  http://www.rtems.com/license/LICENSE.
[ac7d5ef0]16 *
17 *  $Id$
18 */
19
[7945944]20#ifndef _RTEMS_RTEMS_LIBCSUPPORT_H
21#define _RTEMS_RTEMS_LIBCSUPPORT_H
[ac7d5ef0]22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
[780428f]27#include <stdint.h>
28
[ac7d5ef0]29#include <sys/types.h>
30
31void RTEMS_Malloc_Initialize(
[7c411bd]32  void *heap_begin,
33  uintptr_t heap_size,
34  size_t sbrk_amount
[ac7d5ef0]35);
36
[c64e4ed4]37extern void malloc_dump(void);
[b1c215e]38extern void malloc_walk(size_t source, size_t printf_enabled);
[8b08935]39extern void libc_init(void);
[c64e4ed4]40extern int  host_errno(void);
41extern void fix_syscall_errno(void);
[df3021ad]42extern size_t malloc_free_space(void);
[1487880d]43extern void open_dev_console(void);
[ac7d5ef0]44
[c3db01d0]45/*
46 *  Prototypes required to install newlib reentrancy user extension
47 */
[d40da79b]48bool newlib_create_hook(
[c3db01d0]49  rtems_tcb *current_task,
50  rtems_tcb *creating_task
51);
52
53#if defined(RTEMS_UNIX) && !defined(hpux)
[62fbfe37]54  void newlib_begin_hook(rtems_tcb *current_task);
[d40da79b]55  #define __RTEMS_NEWLIB_BEGIN newlib_begin_hook
[c3db01d0]56#else
57  #define __RTEMS_NEWLIB_BEGIN 0
58#endif
59
[62fbfe37]60void newlib_delete_hook(
[c3db01d0]61  rtems_tcb *current_task,
62  rtems_tcb *deleted_task
63);
64
65#define RTEMS_NEWLIB_EXTENSION \
66{ \
[d40da79b]67  newlib_create_hook,     /* rtems_task_create  */ \
68  0,                      /* rtems_task_start   */ \
69  0,                      /* rtems_task_restart */ \
70  newlib_delete_hook,     /* rtems_task_delete  */ \
71  0,                      /* task_switch  */ \
72  __RTEMS_NEWLIB_BEGIN,   /* task_begin   */ \
73  0,                      /* task_exitted */ \
74  0                       /* fatal        */ \
[c3db01d0]75}
76
[ac7d5ef0]77#ifdef __cplusplus
78}
79#endif
80
81#endif
82/* end of include file */
Note: See TracBrowser for help on using the repository browser.