source:
rtems/cpukit/libcsupport/src/no_libc.c
@
8b08935
Last change on this file since 8b08935 was 8b08935, checked in by Joel Sherrill <joel.sherrill@…>, on 08/05/08 at 16:51:45 | |
---|---|
|
|
File size: 872 bytes |
Rev | Line | |
---|---|---|
[07a3253d] | 1 | /* |
[ac7d5ef0] | 2 | * This file contains stubs for the reentrancy hooks when |
3 | * an unknown C library is used. | |
4 | * | |
[08311cc3] | 5 | * COPYRIGHT (c) 1989-1999. |
[ac7d5ef0] | 6 | * On-Line Applications Research Corporation (OAR). |
7 | * | |
[98e4ebf5] | 8 | * The license and distribution terms for this file may be |
9 | * found in the file LICENSE in this distribution or at | |
[0eae36c7] | 10 | * http://www.rtems.com/license/LICENSE. |
[ac7d5ef0] | 11 | * |
12 | * $Id$ | |
13 | */ | |
14 | ||
[9c49db4] | 15 | #if HAVE_CONFIG_H |
16 | #include "config.h" | |
17 | #endif | |
[ac7d5ef0] | 18 | |
19 | #include <rtems.h> | |
[07a3253d] | 20 | #if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX) |
[ac7d5ef0] | 21 | |
[3ba74c73] | 22 | #include <rtems/libcsupport.h> |
[ac7d5ef0] | 23 | |
24 | #include <stdlib.h> /* for free() */ | |
25 | ||
[8b08935] | 26 | void libc_init(void) |
[07a3253d] | 27 | ) |
[ac7d5ef0] | 28 | { |
29 | } | |
30 | ||
31 | void libc_suspend_main(void) | |
32 | { | |
33 | } | |
34 | ||
35 | ||
[07a3253d] | 36 | void libc_global_exit( |
[83c5fc1] | 37 | uint32_t code |
[07a3253d] | 38 | ) |
[ac7d5ef0] | 39 | { |
40 | } | |
41 | ||
[07a3253d] | 42 | void _exit( |
43 | int status | |
44 | ) | |
[ac7d5ef0] | 45 | { |
46 | } | |
47 | ||
[0c35efe] | 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 | */ | |
54 | void no_libc_dummy_function( void ) | |
55 | { | |
56 | } | |
57 | ||
[ac7d5ef0] | 58 | #endif |
Note: See TracBrowser
for help on using the repository browser.