source: rtems/c/src/lib/libbsp/unix/posix/startup/bspclean.c @ c1403ef1

4.104.114.84.95
Last change on this file since c1403ef1 was c1403ef1, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 11, 1995 at 2:30:27 PM

Added flush of output on exit. On some UNIX's using the native library
resulted in no output when the output was redirected until this was done.
Redirection is important because runtest redirects test output.

Added support for numerous environment variables which make it easier
to run a multi-node system using a single executable and to tailor
the size of the workspace and heap.

  • Property mode set to 100644
File size: 960 bytes
Line 
1/*  bsp_cleanup()
2 *
3 *  This routine normally is part of start.s and returns
4 *  control to a monitor but on the UNIX simulator
5 *  we do that directly from main.c.
6 *
7 *  INPUT:  NONE
8 *
9 *  OUTPUT: NONE
10 *
11 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
12 *  On-Line Applications Research Corporation (OAR).
13 *  All rights assigned to U.S. Government, 1994.
14 *
15 *  This material may be reproduced by or for the U.S. Government pursuant
16 *  to the copyright license under the clause at DFARS 252.227-7013.  This
17 *  notice must appear in all copies of this file and its derivatives.
18 *
19 *  $Id$
20 */
21
22#include <rtems.h>
23#include <bsp.h>
24
25#include <stdio.h>
26
27/*
28 * The app has "exited" (called rtems_shutdown_executive)
29 */
30
31void bsp_cleanup( void )
32{
33    /*
34     * Invoke any fatal error extension and "halt"
35     * By definition, rtems_fatal_error_occurred does not return.
36     */
37
38fflush(stdout);
39fflush(stderr);
40
41    rtems_fatal_error_occurred(0);
42}
Note: See TracBrowser for help on using the repository browser.