Changeset 3c8eda7 in rtems


Ignore:
Timestamp:
May 12, 2012, 4:01:26 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5f0cd34
Parents:
4f16ce0
git-author:
Joel Sherrill <joel.sherrill@…> (05/12/12 16:01:26)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/31/12 15:06:16)
Message:

sptests - Eliminate missing prototype warnings

Location:
testsuites/sptests
Files:
71 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp08/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18
    1619#define PRIxModes_Control       PRIx32
    1720#define PRIxrtems_mode          PRIxModes_Control
  • testsuites/sptests/sp10/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/sp18/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/sp2038/init.c

    r4f16ce0 r3c8eda7  
    2323
    2424#include <rtems.h>
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
    2528
    2629#define TEST_APPLICABLE \
  • testsuites/sptests/sp21/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <rtems/devzero.h>
    1717#include <rtems/libio.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
     21void do_test_io_manager(void);
     22void do_test_io_lookup_name(void);
     23void do_test_zero_driver(void);
    1824
    1925#define PRIurtems_device_major_number PRIu32
  • testsuites/sptests/sp27/init.c

    r4f16ce0 r3c8eda7  
    22 *  Test for rtems_semaphore_flush
    33 *
    4  *  COPYRIGHT (c) 1989-2009.
     4 *  COPYRIGHT (c) 1989-2012.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1717#include <tmacros.h>
    1818
     19#include <stdio.h>
     20#include <stdlib.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
    1924void starttask(int arg);
    2025rtems_task subtask(rtems_task_argument arg);
    21 
    22 #include <stdio.h>
    23 #include <stdlib.h>
     26void doTest(void);
    2427
    2528#define NTASK 4
  • testsuites/sptests/sp28/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1818#include <stdio.h>
    1919
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument argument);
    2022rtems_task subtask(rtems_task_argument arg);
    2123rtems_task Task_variable_deleter(rtems_task_argument ignored);
  • testsuites/sptests/sp32/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>  /* includes bsp.h, stdio, etc... */
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/sp40/init.c

    r4f16ce0 r3c8eda7  
    22 *  IO Manager Dynamic Registration
    33 *
    4  *  COPYRIGHT (c) 1989-2007.
     4 *  COPYRIGHT (c) 1989-2012.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1919
    2020#include <tmacros.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
    2124
    2225static rtems_device_driver test_open(
  • testsuites/sptests/sp41/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1515#include <tmacros.h>
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19void iterator(Thread_Control *thread);
    1620
    1721void iterator(
  • testsuites/sptests/sp49/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(rtems_task_argument ignored)
  • testsuites/sptests/sp50/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include "pritime.h"
    1616
     17/* forward declarations to avoid warnings */
     18rtems_timer_service_routine Timer_Routine(rtems_id id, void *ignored);
     19rtems_task Init(rtems_task_argument argument);
     20
    1721volatile int   Fired;
    1822volatile bool  timerRan;
    1923
    20 rtems_timer_service_routine Timer_Routine( rtems_id id, void *ignored )
     24rtems_timer_service_routine Timer_Routine(rtems_id id, void *ignored)
    2125{
    2226  rtems_status_code status;
  • testsuites/sptests/sp51/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/sp52/init.c

    r4f16ce0 r3c8eda7  
    2727
    2828#include <tmacros.h>
     29
     30/* forward declarations to avoid warnings */
     31rtems_task Init(rtems_task_argument argument);
     32rtems_timer_service_routine TIMER_service_routine(
     33  rtems_id  ignored_id,
     34  void     *user_data
     35);
    2936
    3037#define INITIAL_SECOND 10
  • testsuites/sptests/sp54/init.c

    r4f16ce0 r3c8eda7  
    1 /*  Odd Id Cases where API configured but No Threads
     1/**
     2 *  @@file
     3 *
     4 *  Odd Id Cases where API configured but No Threads
    25 *    + Possibly Valid Id passed to directive
    3  *
    4  *  COPYRIGHT (c) 1989-2011.
     6 */
     7
     8/*
     9 *  COPYRIGHT (c) 1989-2012.
    510 *  On-Line Applications Research Corporation (OAR).
    611 *
     
    1520
    1621#include <tmacros.h>
     22
     23/* forward declarations to avoid warnings */
     24rtems_task Init(rtems_task_argument argument);
    1725
    1826rtems_task Init(
  • testsuites/sptests/sp55/init.c

    r4f16ce0 r3c8eda7  
    1 /*  Broadcast to a message queue with pending messages
     1/**
     2 *  @file
    23 *
    3  *  COPYRIGHT (c) 1989-2009.
     4 *  Broadcast to a message queue with pending messages
     5 */
     6
     7/*
     8 *  COPYRIGHT (c) 1989-2012.
    49 *  On-Line Applications Research Corporation (OAR).
    510 *
     
    1419
    1520#include <tmacros.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
    1624
    1725rtems_task Init(
  • testsuites/sptests/sp56/init.c

    r4f16ce0 r3c8eda7  
    1 /*  Extension create fails
     1/**
     2 *  @file
    23 *
    3  *  COPYRIGHT (c) 1989-2009.
     4 *  Extension create fails
     5 */
     6
     7/*
     8 *  COPYRIGHT (c) 1989-2012.
    49 *  On-Line Applications Research Corporation (OAR).
    510 *
     
    1419
    1520#include <tmacros.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
     24bool task_create(Thread_Control *executing, Thread_Control *created);
    1625
    1726bool task_create(
  • testsuites/sptests/sp57/init.c

    r4f16ce0 r3c8eda7  
    1 /*  Restart a task which is delaying
     1/*
     2 *  @file
    23 *
    3  *  COPYRIGHT (c) 1989-2011.
     4 *  Restart a task which is delaying
     5 */
     6
     7/*
     8 *  COPYRIGHT (c) 1989-2012.
    49 *  On-Line Applications Research Corporation (OAR).
    510 *
     
    1419
    1520#include <tmacros.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
     24rtems_task Delay_task(rtems_task_argument ignored);
    1625
    1726rtems_task Delay_task(
  • testsuites/sptests/sp58/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <rtems/score/timespec.h>
    1818#include <rtems/score/threadq.h>
     19
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument argument);
     22void timespec_divide_by_zero(void);
     23void timespec_greater_than_lhs_sec_less(void);
    1924
    2025void timespec_divide_by_zero(void)
  • testsuites/sptests/sp59/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18rtems_task Blocking_task(rtems_task_argument ignored);
    1519
    1620#define ALLOC_SIZE 400
  • testsuites/sptests/sp60/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/sp62/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include <unistd.h>
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19rtems_task Blocker(rtems_task_argument ignored);
    1620
    1721rtems_id      Region;
  • testsuites/sptests/sp63/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18void test_case_one(void);
     19void test_case_two(void);
     20void test_case_three(void);
    1521
    1622#define MAX 256
  • testsuites/sptests/sp64/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include "tmacros.h"
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619uint32_t Area1[50] CPU_STRUCTURE_ALIGNMENT;
  • testsuites/sptests/sp65/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <unistd.h>
    1616
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19rtems_task Task_1(rtems_task_argument arg);
     20
    1721#if defined(INHERIT_CEILING)
    1822  #define TEST_NAME                "66"
     
    2226  #define TASK_PRIORITY            1
    2327#endif
    24 
    25 rtems_task Task_1(
    26   rtems_task_argument arg
    27 );
    2828
    2929rtems_task Init(
  • testsuites/sptests/sp67/init.c

    r4f16ce0 r3c8eda7  
    1616
    1717#include <tmacros.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
     21rtems_timer_service_routine TIMER_service_routine(
     22  rtems_id  ignored_id,
     23  void     *user_data
     24);
    1825
    1926/*
  • testsuites/sptests/sp68/init.c

    r4f16ce0 r3c8eda7  
    2626#include <tmacros.h>
    2727
     28/* forward declarations to avoid warnings */
     29rtems_task Init(rtems_task_argument argument);
     30
    2831#define TIMER_COUNT 6
    2932
  • testsuites/sptests/sp69/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include "test_support.h"
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
    1720
    1821rtems_task Init(
  • testsuites/sptests/sp70/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include "test_support.h"
    1616
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19void create_helper(int task);
     20void delete_helper(int task);
     21 
    1722rtems_id          TaskID[10];
    1823
     
    3338}
    3439
    35 void delete_helper( int task )
     40void delete_helper(int task)
    3641{
    3742  rtems_status_code status;
  • testsuites/sptests/sp71/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616
    1717#define PER_ALLOCATION 8000
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
    1821
    1922rtems_task Init(
  • testsuites/sptests/sp72/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include "test_support.h"
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19rtems_task Test_task(rtems_task_argument argument);
    1620
    1721rtems_id Semaphore_id;
  • testsuites/sptests/sp73/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <inttypes.h>
    1616#include "tmacros.h"
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20rtems_task Test_task(rtems_task_argument argument);
    1721
    1822rtems_id   Task_id[ 4 ];         /* array of task ids */
  • testsuites/sptests/sp74/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18rtems_task Test_task(rtems_task_argument argument);
    1619
    1720rtems_task Test_task(
  • testsuites/sptests/sp75/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include "test_support.h"
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
    1720
    1821rtems_task Init(
  • testsuites/sptests/sp76/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18rtems_task Test_task(rtems_task_argument index);
    1519
    1620rtems_task Test_task(
  • testsuites/sptests/spassoc01/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <stdio.h>
    1818#include <rtems/assoc.h>
     19
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument argument);
    1922
    2023const rtems_assoc_t assoc_table_null[] =
  • testsuites/sptests/spcbssched03/tasks_periodic.c

    r4f16ce0 r3c8eda7  
    2020#include "system.h"
    2121
    22 void overrun_handler_task_4 (
     22/* forward declarations to avoid warnings */
     23void overrun_handler_task_4(rtems_cbs_server_id server_id);
     24
     25void overrun_handler_task_4(
    2326  rtems_cbs_server_id server_id
    2427)
  • testsuites/sptests/spchain/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include <rtems/chain.h>
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
    1619
    1720#define EVENT RTEMS_EVENT_13
  • testsuites/sptests/spclockget/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include "pritime.h"
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
    1619
    1720rtems_task Init(
  • testsuites/sptests/spcoverage/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include "tmacros.h"
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/sperror01/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include "rtems/error.h"
    1717#include <errno.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
    1821
    1922rtems_task Init(
  • testsuites/sptests/sperror02/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <errno.h>
    1717#include <rtems/error.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
    1821
    1922rtems_task Init(
  • testsuites/sptests/sperror03/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include "test_support.h"
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
    1619
    1720rtems_task Init(
  • testsuites/sptests/spfatal21/testcase.h

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <rtems/libcsupport.h>
    1717#include <rtems/malloc.h>
     18#include <unistd.h>
    1819
    1920/* Safe information on real heap */
  • testsuites/sptests/spfatal_support/consume_sems.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <rtems.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_device_driver consume_semaphores_initialize(
     18  rtems_device_major_number major __attribute__((unused)),
     19  rtems_device_minor_number minor __attribute__((unused)),
     20  void *pargp __attribute__((unused))
     21);
    1522
    1623#define MAXIMUM 20
  • testsuites/sptests/spfifo01/init.c

    r4f16ce0 r3c8eda7  
    1919
    2020#include "tmacros.h"
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
    2124
    2225#define FIFO_PATH "/fifo01"
  • testsuites/sptests/spfifo02/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121#include <errno.h>
    2222#include <rtems/libcsupport.h>
     23
     24/* forward declarations to avoid warnings */
     25rtems_task Init(rtems_task_argument argument);
     26void create_all_barriers(void);
     27void create_all_semaphores(void);
     28void delete_barrier(void);
     29void delete_semaphore(void);
     30void create_fifo(void);
     31void open_fifo(int expected, int flags);
    2332
    2433#define MAXIMUM 10
  • testsuites/sptests/spfifo03/init.c

    r4f16ce0 r3c8eda7  
    1 /*  Init
    2  *
    3  *  This routine is the initialization task for this test program.
    4  *  It is a user initialization task and has the responsibility
    5  *  of invoking the test routine
    6  *
    7  *  Input parameters:
    8  *    not_used
    9  *
    10  *  Output parameters:  NONE
    11  *
    12  *  COPYRIGHT (c) 1989-1999.
     1/*
     2 *  COPYRIGHT (c) 1989-2012.
    133 *  On-Line Applications Research Corporation (OAR).
    144 *
     
    3424#include <rtems/libio.h>
    3525
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
     28rtems_task read_task(rtems_task_argument not_used);
     29void test_main(void);
     30
    3631#define SEND_RCV_BUFSIZ 12
    3732rtems_id Barrier;
     
    9287}
    9388
    94 
    95 void test_main(void) //Also acts as the write task
     89void test_main(void) /* Also acts as the write task */
    9690{
    9791
  • testsuites/sptests/spfifo04/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#include <rtems.h>
    2424#include <rtems/libio.h>
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
    2528
    2629#define SEND_RCV_BUFSIZ 12
  • testsuites/sptests/spfifo05/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2525#include <rtems/libio.h>
    2626
     27/* forward declarations to avoid warnings */
     28rtems_task Init(rtems_task_argument argument);
     29rtems_task read_task(rtems_task_argument not_used);
     30
    2731#define SEND_RCV_BUFSIZ       (PIPE_BUF+20)
    2832
     
    3337char sendBuf[SEND_RCV_BUFSIZ] = {0};
    3438
    35 rtems_task read_task( rtems_task_argument not_used )
     39rtems_task read_task(rtems_task_argument not_used)
    3640{
    3741  int fd = 0;
     
    117121  rtems_task_delete( RTEMS_SELF );
    118122}
    119 
    120 
    121123
    122124rtems_task Init(
  • testsuites/sptests/spintrcritical01/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include <intrcritical.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
     21Thread_blocking_operation_States getState(void);
    1722
    1823#if defined(FIFO_NO_TIMEOUT)
  • testsuites/sptests/spintrcritical06/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include <intrcritical.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
     21rtems_task Secondary_task(rtems_task_argument arg);
    1722
    1823/* common parameters */
  • testsuites/sptests/spintrcritical08/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include <intrcritical.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
     21rtems_rate_monotonic_period_states getState(void);
    1722
    1823rtems_id Main_task;
  • testsuites/sptests/spintrcritical09/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include <intrcritical.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
     21Thread_blocking_operation_States getState(void);
    1722
    1823rtems_id Main_task;
  • testsuites/sptests/spintrcritical10/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <tmacros.h>
    1616#include <intrcritical.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
    1720
    1821rtems_id Main_task;
  • testsuites/sptests/spintrcritical11/init.c

    r4f16ce0 r3c8eda7  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include <intrcritical.h>
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
    1620
    1721rtems_id Main_task;
  • testsuites/sptests/spintrcritical13/init.c

    r4f16ce0 r3c8eda7  
    2727#else
    2828  #error "Test Mode not defined"
     29#endif
    2930
    30 #endif
     31/* forward declarations to avoid warnings */
     32rtems_task Init(rtems_task_argument argument);
     33rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
     34rtems_timer_service_routine TimerMethod(rtems_id  timer, void *arg);
    3135
    3236rtems_id Main_task;
  • testsuites/sptests/spintrcritical15/init.c

    r4f16ce0 r3c8eda7  
    1515#include <intrcritical.h>
    1616
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19rtems_task Secondary_task(rtems_task_argument ignored);
     20
    1721#define TEST_NAME          "15"
    1822#define INIT_PRIORITY      2
     
    3034
    3135  while (1) {
    32 
    3336    sc = rtems_semaphore_obtain( Semaphore, RTEMS_DEFAULT_OPTIONS, 1 );
    3437    fatal_directive_status( sc, RTEMS_TIMEOUT, "rtems_semaphore_obtain" );
  • testsuites/sptests/spintrcritical16/init.c

    r4f16ce0 r3c8eda7  
    1515#include <tmacros.h>
    1616#include <intrcritical.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
     21Thread_blocking_operation_States getState(void);
    1722
    1823#define TEST_NAME          "16"
  • testsuites/sptests/spintrcritical17/init.c

    r4f16ce0 r3c8eda7  
    1818#include <tmacros.h>
    1919#include <intrcritical.h>
     20
     21/* forward declarations to avoid warnings */
     22rtems_task Init(rtems_task_argument argument);
    2023
    2124#define TIMER_COUNT 4
  • testsuites/sptests/spmountmgr01/init.c

    r4f16ce0 r3c8eda7  
    1818#include <rtems/libcsupport.h>
    1919
    20 int fs_mount( rtems_filesystem_mount_table_entry_t *mt_entry,
    21               const void                           *data )
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument argument);
     22int fs_mount(
     23  rtems_filesystem_mount_table_entry_t *mt_entry,
     24  const void                           *data
     25);
     26
     27int fs_mount(
     28  rtems_filesystem_mount_table_entry_t *mt_entry,
     29  const void                           *data
     30)
    2231{
    2332  return 0;
     
    3039  int status = 0;
    3140  void *alloc_ptr = (void *)0;
    32  
     41
    3342  puts( "\n\n*** TEST MOUNT MANAGER ROUTINE - 01 ***" );
    3443
     
    5160  puts( "Init - attempt to make target(NULL) and mount - expect EINVAL" );
    5261  status = mount_and_make_target_path(
    53              NULL,
    54              NULL,
    55              "fs",
    56              0,
    57              NULL );
     62             NULL,
     63             NULL,
     64             "fs",
     65             0,
     66             NULL );
    5867  rtems_test_assert( status == -1 );
    5968  rtems_test_assert( errno == EINVAL );
     
    6170  puts( "Init - attempt to make target and mount - expect EINVAL" );
    6271  status = mount_and_make_target_path(
    63              NULL,
    64              "/tmp",
    65              "fs",
    66              2,
    67              NULL );
     72             NULL,
     73             "/tmp",
     74             "fs",
     75             2,
     76             NULL );
    6877  rtems_test_assert( status == -1 );
    6978  rtems_test_assert( errno == EINVAL );
    7079
    71              
    7280  puts( "Init - register filesystem fs - expect EINVAL" );
    7381  status = rtems_filesystem_register( "fs", fs_mount );
     
    8391  rtems_test_assert( status == -1 );
    8492  rtems_test_assert( errno == EINVAL );
    85  
     93
    8694  puts( "Init - attempt to unregister with bad args - expect EINVAL" );
    8795  status = rtems_filesystem_unregister( NULL );
     
    92100  status = rtems_filesystem_unregister( "fs" );
    93101  rtems_test_assert( status == 0 );
    94  
     102
    95103  puts( "Init - attempt to unregister fs again - expect ENOENT" );
    96104  status = rtems_filesystem_unregister( "fs" );
     
    101109  status = rtems_filesystem_unregister( "bfs" );
    102110  rtems_test_assert( status == 0 );
    103  
     111
    104112  puts( "Init - attempt to unregister bfs again - expect ENOENT" );
    105113  status = rtems_filesystem_unregister( "bfs" );
  • testsuites/sptests/spnotepad01/init.c

    r4f16ce0 r3c8eda7  
    1313
    1414#include "tmacros.h"
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/spprintk/init.c

    r4f16ce0 r3c8eda7  
    1616#include <tmacros.h>
    1717#include <rtems/bspIo.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
     21int test_getchar(void);
     22void do_getchark(void);
     23void do_putk(void);
     24void do_printk(void);
    1825
    1926int test_getchar(void)
  • testsuites/sptests/spprivenv01/init.c

    r4f16ce0 r3c8eda7  
    1818#include <rtems/libcsupport.h>
    1919
    20 rtems_task task_routine( rtems_task_argument not_used )
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument argument);
     22rtems_task task_routine(rtems_task_argument not_used);
     23
     24rtems_task task_routine(rtems_task_argument not_used)
    2125{
    2226  rtems_status_code sc;
     
    4044  rtems_id                task_id;
    4145  rtems_name              another_task_name;
    42   Heap_Information_block  Info;
    43  
     46
    4447  puts( "\n\n*** TEST USER ENVIRONMENT ROUTINE - 01 ***" );
    4548
  • testsuites/sptests/sprbtree01/init.c

    r4f16ce0 r3c8eda7  
    1313#include <tmacros.h>
    1414#include <rtems/rbtree.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619int numbers[20] = {
  • testsuites/sptests/spsimplesched01/init.c

    r4f16ce0 r3c8eda7  
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18rtems_task Test_task(rtems_task_argument unused);
    1519
    1620/*
  • testsuites/sptests/spsimplesched02/init.c

    r4f16ce0 r3c8eda7  
    1 /* 
     1/*
    22 *  COPYRIGHT (c) 2011.
    33 *  On-Line Applications Research Corporation (OAR).
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18rtems_task Test_task(rtems_task_argument argument);
     19void ObtainRelease(bool suspendIdle);
    1520
    1621/*
     
    3843}
    3944
    40 void ObtainRelease( bool suspendIdle ) 
     45void ObtainRelease( bool suspendIdle )
    4146{
    4247  rtems_status_code   status;
     
    129134#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    130135
    131 #define CONFIGURE_MAXIMUM_TASKS             3 
     136#define CONFIGURE_MAXIMUM_TASKS             3
    132137#define CONFIGURE_MAXIMUM_SEMAPHORES        2
    133138
  • testsuites/sptests/spsimplesched03/init.c

    r4f16ce0 r3c8eda7  
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619rtems_task Init(
  • testsuites/sptests/spstkalloc/init.c

    r4f16ce0 r3c8eda7  
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
    1518
    1619#define MAXIMUM_STACKS 3
  • testsuites/sptests/spthreadq01/init.c

    r4f16ce0 r3c8eda7  
    1616#include <sys/types.h>
    1717#include <rtems/score/threadq.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
     21void threadq_first_empty(
     22  const char               *discipline_string,
     23  Thread_queue_Disciplines  discipline
     24);
    1825
    1926void threadq_first_empty(
  • testsuites/sptests/spwkspace/init.c

    r4f16ce0 r3c8eda7  
    1919
    2020#include <rtems/score/wkspace.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument argument);
    2124
    2225static void test_workspace_string_duplicate(void)
Note: See TracChangeset for help on using the changeset viewer.