source: rtems/cpukit/libcsupport/src/no_libc.c @ 8b08935

4.104.114.95
Last change on this file since 8b08935 was 8b08935, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 5, 2008 at 4:51:45 PM

2008-08-05 Joel Sherrill <joel.sherrill@…>

PR 537/bsps

  • libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc.c, libcsupport/src/no_libc.c, libcsupport/src/unixlibc.c: Eliminate vestiges of ticks_per_timeslice controlling newlib reentrancy. The parameter was ignored in libc_init().
  • Property mode set to 100644
File size: 872 bytes
Line 
1/*
2 *  This file contains stubs for the reentrancy hooks when
3 *  an unknown C library is used.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems.h>
20#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
21
22#include <rtems/libcsupport.h>
23
24#include <stdlib.h>             /* for free() */
25
26void libc_init(void)
27)
28{
29}
30
31void libc_suspend_main(void)
32{
33}
34
35
36void libc_global_exit(
37  uint32_t   code
38)
39{
40}
41
42void _exit(
43  int status
44)
45{
46}
47
48#else
49
50/* remove ANSI errors.
51 *  A program must contain at least one external-declaration
52 *  (X3.159-1989 p.82,L3).
53 */
54void no_libc_dummy_function( void )
55{
56}
57
58#endif
Note: See TracBrowser for help on using the repository browser.