sptests - Eliminate missing prototype warnings

This commit is contained in:
Joel Sherrill
2012-05-31 10:06:16 -05:00
parent 4f16ce03d2
commit 3c8eda77b9
71 changed files with 388 additions and 106 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#define PRIxModes_Control PRIx32
#define PRIxrtems_mode PRIxModes_Control
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+3
View File
@@ -23,6 +23,9 @@
#include <rtems.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#define TEST_APPLICABLE \
(CPU_TIMESTAMP_USE_INT64 == TRUE || CPU_TIMESTAMP_USE_INT64_INLINE == TRUE)
+7 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,12 @@
#include <rtems/devzero.h>
#include <rtems/libio.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void do_test_io_manager(void);
void do_test_io_lookup_name(void);
void do_test_zero_driver(void);
#define PRIurtems_device_major_number PRIu32
#define STUB_DRIVER_MAJOR 0x2
+7 -4
View File
@@ -1,7 +1,7 @@
/*
* Test for rtems_semaphore_flush
*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,12 +16,15 @@
#include <bsp.h>
#include <tmacros.h>
void starttask(int arg);
rtems_task subtask(rtems_task_argument arg);
#include <stdio.h>
#include <stdlib.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void starttask(int arg);
rtems_task subtask(rtems_task_argument arg);
void doTest(void);
#define NTASK 4
#if defined(USE_COUNTING_SEMAPHORE)
+3 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,8 @@
#include <rtems/error.h>
#include <stdio.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task subtask(rtems_task_argument arg);
rtems_task Task_variable_deleter(rtems_task_argument ignored);
void starttask(int arg);
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h> /* includes bsp.h, stdio, etc... */
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
) {
+4 -1
View File
@@ -1,7 +1,7 @@
/*
* IO Manager Dynamic Registration
*
* COPYRIGHT (c) 1989-2007.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* Copyright (c) 2009 embedded brains GmbH.
@@ -19,6 +19,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
static rtems_device_driver test_open(
rtems_device_major_number minor,
rtems_device_minor_number major,
+5 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void iterator(Thread_Control *thread);
void iterator(
Thread_Control *thread
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(rtems_task_argument ignored)
{
rtems_status_code sc;
+6 -2
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,10 +14,14 @@
#include <tmacros.h>
#include "pritime.h"
/* forward declarations to avoid warnings */
rtems_timer_service_routine Timer_Routine(rtems_id id, void *ignored);
rtems_task Init(rtems_task_argument argument);
volatile int Fired;
volatile bool timerRan;
rtems_timer_service_routine Timer_Routine( rtems_id id, void *ignored )
rtems_timer_service_routine Timer_Routine(rtems_id id, void *ignored)
{
rtems_status_code status;
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+7
View File
@@ -27,6 +27,13 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine TIMER_service_routine(
rtems_id ignored_id,
void *user_data
);
#define INITIAL_SECOND 10
volatile bool _timer_passage = FALSE;
+11 -3
View File
@@ -1,7 +1,12 @@
/* Odd Id Cases where API configured but No Threads
* + Possibly Valid Id passed to directive
/**
* @@file
*
* COPYRIGHT (c) 1989-2011.
* Odd Id Cases where API configured but No Threads
* + Possibly Valid Id passed to directive
*/
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,6 +20,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+10 -2
View File
@@ -1,6 +1,11 @@
/* Broadcast to a message queue with pending messages
/**
* @file
*
* COPYRIGHT (c) 1989-2009.
* Broadcast to a message queue with pending messages
*/
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +19,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+11 -2
View File
@@ -1,6 +1,11 @@
/* Extension create fails
/**
* @file
*
* COPYRIGHT (c) 1989-2009.
* Extension create fails
*/
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +19,10 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
bool task_create(Thread_Control *executing, Thread_Control *created);
bool task_create(
Thread_Control *executing,
Thread_Control *created
+11 -2
View File
@@ -1,6 +1,11 @@
/* Restart a task which is delaying
/*
* @file
*
* COPYRIGHT (c) 1989-2011.
* Restart a task which is delaying
*/
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +19,10 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Delay_task(rtems_task_argument ignored);
rtems_task Delay_task(
rtems_task_argument ignored
)
+6 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,11 @@
#include <rtems/score/timespec.h>
#include <rtems/score/threadq.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void timespec_divide_by_zero(void);
void timespec_greater_than_lhs_sec_less(void);
void timespec_divide_by_zero(void)
{
struct timespec t1;
+5 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,10 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Blocking_task(rtems_task_argument ignored);
#define ALLOC_SIZE 400
uint8_t Region_Memory[512] CPU_STRUCTURE_ALIGNMENT;
rtems_id Region;
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+5 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
#include <tmacros.h>
#include <unistd.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Blocker(rtems_task_argument ignored);
rtems_id Region;
uint32_t Region_Memory[256] CPU_STRUCTURE_ALIGNMENT;
volatile bool case_hit;
+7 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,12 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void test_case_one(void);
void test_case_two(void);
void test_case_three(void);
#define MAX 256
uint32_t Memory[MAX];
Heap_Control Heap;
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include "tmacros.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
uint32_t Area1[50] CPU_STRUCTURE_ALIGNMENT;
uint32_t Area2[50] CPU_STRUCTURE_ALIGNMENT;
+5 -5
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
#include <tmacros.h>
#include <unistd.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Task_1(rtems_task_argument arg);
#if defined(INHERIT_CEILING)
#define TEST_NAME "66"
#define TASK_PRIORITY 2
@@ -22,10 +26,6 @@
#define TASK_PRIORITY 1
#endif
rtems_task Task_1(
rtems_task_argument arg
);
rtems_task Init(
rtems_task_argument ignored
)
+7
View File
@@ -16,6 +16,13 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine TIMER_service_routine(
rtems_id ignored_id,
void *user_data
);
/*
* We have to extern this rather than use __RTEMS_VIOLATE_KERNEL_VISIBILITY__
* because this variable isn't actually in any .h.
+3
View File
@@ -25,6 +25,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#define TIMER_COUNT 6
#define OBTAIN 0
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,6 +15,9 @@
#include <tmacros.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+7 -2
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,11 @@
#include <tmacros.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void create_helper(int task);
void delete_helper(int task);
rtems_id TaskID[10];
void create_helper(int task)
@@ -32,7 +37,7 @@ void create_helper(int task)
directive_failed( status, "rtems_task_create" );
}
void delete_helper( int task )
void delete_helper(int task)
{
rtems_status_code status;
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,9 @@
#define PER_ALLOCATION 8000
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+5 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
#include <tmacros.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Test_task(rtems_task_argument argument);
rtems_id Semaphore_id;
rtems_task Test_task(
+5 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,6 +15,10 @@
#include <inttypes.h>
#include "tmacros.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Test_task(rtems_task_argument argument);
rtems_id Task_id[ 4 ]; /* array of task ids */
rtems_name Task_name[ 4 ]; /* array of task names */
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Test_task(rtems_task_argument argument);
rtems_task Test_task(
rtems_task_argument index
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,6 +15,9 @@
#include <tmacros.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+5 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,10 @@
#include <tmacros.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Test_task(rtems_task_argument index);
rtems_task Test_task(
rtems_task_argument index
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,9 @@
#include <stdio.h>
#include <rtems/assoc.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
const rtems_assoc_t assoc_table_null[] =
{
{ NULL , 0 , 0 },
@@ -19,7 +19,10 @@
#include "system.h"
void overrun_handler_task_4 (
/* forward declarations to avoid warnings */
void overrun_handler_task_4(rtems_cbs_server_id server_id);
void overrun_handler_task_4(
rtems_cbs_server_id server_id
)
{
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,9 @@
#include <tmacros.h>
#include <rtems/chain.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#define EVENT RTEMS_EVENT_13
#define TIMEOUT 1
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2011.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,9 @@
#include <tmacros.h>
#include "pritime.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2009.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
#include "tmacros.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument ignored
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,9 @@
#include "rtems/error.h"
#include <errno.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,9 @@
#include <errno.h>
#include <rtems/error.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -14,6 +14,9 @@
#include <tmacros.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Init(
rtems_task_argument argument
)
+2 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,6 +15,7 @@
#include <rtems/libcsupport.h>
#include <rtems/malloc.h>
#include <unistd.h>
/* Safe information on real heap */
extern rtems_malloc_sbrk_functions_t *rtems_malloc_sbrk_helpers;
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -13,6 +13,13 @@
#include <rtems.h>
/* forward declarations to avoid warnings */
rtems_device_driver consume_semaphores_initialize(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
);
#define MAXIMUM 20
rtems_id Semaphores[MAXIMUM];
+3
View File
@@ -19,6 +19,9 @@
#include "tmacros.h"
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#define FIFO_PATH "/fifo01"
static void test_main(void)
+10 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -21,6 +21,15 @@
#include <errno.h>
#include <rtems/libcsupport.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
void create_all_barriers(void);
void create_all_semaphores(void);
void delete_barrier(void);
void delete_semaphore(void);
void create_fifo(void);
void open_fifo(int expected, int flags);
#define MAXIMUM 10
#define NUM_OPEN_REQ 26
+8 -14
View File
@@ -1,15 +1,5 @@
/* Init
*
* This routine is the initialization task for this test program.
* It is a user initialization task and has the responsibility
* of invoking the test routine
*
* Input parameters:
* not_used
*
* Output parameters: NONE
*
* COPYRIGHT (c) 1989-1999.
/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -33,6 +23,11 @@
#include <rtems.h>
#include <rtems/libio.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task read_task(rtems_task_argument not_used);
void test_main(void);
#define SEND_RCV_BUFSIZ 12
rtems_id Barrier;
@@ -91,8 +86,7 @@ rtems_task read_task(rtems_task_argument not_used)
rtems_task_delete( RTEMS_SELF );
}
void test_main(void) //Also acts as the write task
void test_main(void) /* Also acts as the write task */
{
rtems_id readTaskID;
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -23,6 +23,9 @@
#include <rtems.h>
#include <rtems/libio.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#define SEND_RCV_BUFSIZ 12
rtems_task Init(
+6 -4
View File
@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2010.
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -24,6 +24,10 @@
#include <rtems.h>
#include <rtems/libio.h>
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task read_task(rtems_task_argument not_used);
#define SEND_RCV_BUFSIZ (PIPE_BUF+20)
rtems_id rBarrier;
@@ -32,7 +36,7 @@ rtems_id wBarrier;
char recvBuf[SEND_RCV_BUFSIZ] = {0};
char sendBuf[SEND_RCV_BUFSIZ] = {0};
rtems_task read_task( rtems_task_argument not_used )
rtems_task read_task(rtems_task_argument not_used)
{
int fd = 0;
int status = -1;
@@ -117,8 +121,6 @@ rtems_task read_task( rtems_task_argument not_used )
rtems_task_delete( RTEMS_SELF );
}
rtems_task Init(
rtems_task_argument not_used
)

Some files were not shown because too many files have changed in this diff Show More