source: rtems/testsuites/samples/iostream/init.cc @ c0ec0d82

4.104.115
Last change on this file since c0ec0d82 was c0ec0d82, checked in by Chris Johns <chrisj@…>, on 04/28/09 at 05:04:11

2009-04-28 Chris Johns <chrisj@…>

  • fileio/init.c, fileio/system.h, iostream/init.cc, loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if BSP_SMALL_MEMORY is defined. Remove this code once a better way is supported by the build system.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *  It is called from init_exec and has the responsibility for creating
5 *  and starting the tasks that make up the test.  If the time of day
6 *  clock is required for the test, it should also be set to a known
7 *  value by this function.
8 *
9 *  Input parameters:  NONE
10 *
11 *  Output parameters:  NONE
12 *
13 *  COPYRIGHT (c) 1989-2008.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 *
20 *  $Id$
21 */
22
23#define CONFIGURE_INIT
24#include "system.h"
25
26#if BSP_SMALL_MEMORY
27#include <stdio.h>
28#else
29#include <iostream>
30#endif
31
32#include <stdlib.h>
33
34rtems_task Init(
35  rtems_task_argument ignored
36)
37{
38#if BSP_SMALL_MEMORY
39  printf ("NO STDC++. MEMORY TOO SMALL");
40#else
41  std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
42  std::cout << "Hello World" << std::endl;
43  std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
44#endif
45  exit( 0 );
46}
47
Note: See TracBrowser for help on using the repository browser.