source: rtems/testsuites/samples/iostream/init.cc @ 8502b16

4.104.115
Last change on this file since 8502b16 was 558a5f48, checked in by Chris Johns <chrisj@…>, on 06/02/10 at 00:47:15

2010-06-02 Chris Johns <chrisj@…>

  • fileio/init.c: Update to new mount API.
  • iostream/init.cc: Hack to work around confdefs.h in C++.
  • iostream/system.h: Add comment about base miniIMFS.
  • 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
23extern "C" {
24
25#define CONFIGURE_INIT
26#include "system.h"
27}
28
29#if BSP_SMALL_MEMORY
30#include <stdio.h>
31#else
32#include <iostream>
33#endif
34
35#include <stdlib.h>
36
37
38rtems_task Init(
39  rtems_task_argument ignored
40)
41{
42#if BSP_SMALL_MEMORY
43  printf ("NO STDC++. MEMORY TOO SMALL");
44#else
45  std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
46  std::cout << "Hello World" << std::endl;
47  std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
48#endif
49  exit( 0 );
50}
51
Note: See TracBrowser for help on using the repository browser.