OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libcsupport/] [src/] [no_libc.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
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.OARcorp.com/rtems/license.html.
11
 *
12
 *  no_libc.c,v 1.13 2001/01/08 18:26:44 joel Exp
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
 
26
void libc_init(
27
  int reentrant
28
)
29
{
30
}
31
 
32
void libc_suspend_main(void)
33
{
34
}
35
 
36
 
37
void libc_global_exit(
38
  rtems_unsigned32 code
39
)
40
{
41
}
42
 
43
void _exit(
44
  int status
45
)
46
{
47
}
48
 
49
#else
50
 
51
/* remove ANSI errors.
52
 *  A program must contain at least one external-declaration
53
 *  (X3.159-1989 p.82,L3).
54
 */
55
void no_libc_dummy_function( void )
56
{
57
}
58
 
59
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.