psxtmtests - Eliminate missing prototype warnings

This commit is contained in:
Joel Sherrill
2012-05-11 09:15:40 -05:00
parent 65c6425de9
commit 991a3cc1c9
31 changed files with 167 additions and 32 deletions
+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
@@ -16,6 +16,10 @@
#include "test_support.h"
#include <pthread.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
static void benchmark_pthread_barrier_init(void);
pthread_barrier_t barrier;
static void benchmark_pthread_barrier_init(void)
+6 -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
@@ -19,6 +19,11 @@
#include <pthread.h>
#include <sched.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_barrier_t barrier;
void *Low(
+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
@@ -19,6 +19,10 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Blocker(void *argument);
#define N 2
pthread_barrier_t barrier;
+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
@@ -17,6 +17,9 @@
#include <pthread.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
pthread_key_t Key;
static void benchmark_pthread_key_create(void)
+6 -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,11 @@
#include <pthread.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void benchmark_pthread_setspecific(void *value_p);
void benchmark_pthread_getspecific( void *expected );
pthread_key_t Key;
int Value1;
+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
@@ -19,6 +19,9 @@
#include <mqueue.h>
#include <signal.h> /* signal facilities */
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
#define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int)
+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
@@ -17,6 +17,9 @@
#include <pthread.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
pthread_mutex_t MutexId;
static void test_mutex_create(void)
+6 -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
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_mutex_t MutexId;
void *Low(
+9 -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
@@ -17,6 +17,14 @@
#include <pthread.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void benchmark_mutex_lock_available(void);
void benchmark_mutex_unlock_no_threads_waiting(void);
void benchmark_mutex_trylock_available(void);
void benchmark_mutex_trylock_not_available(void);
void benchmark_mutex_timedlock_available(void);
pthread_mutex_t MutexId;
void benchmark_mutex_lock_available(void)
@@ -76,7 +84,6 @@ void benchmark_mutex_trylock_available(void)
);
}
void benchmark_mutex_trylock_not_available(void)
{
benchmark_timer_t end_time;
+6 -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
@@ -19,6 +19,11 @@
#include <pthread.h>
#include <sched.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_mutex_t MutexId;
void *Low(
+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
@@ -19,6 +19,10 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Blocker(void *argument);
pthread_mutex_t MutexId;
void *Blocker(
+6 -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
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_mutex_t MutexId;
void *Low(
+6 -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,11 @@
#include <pthread.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void test_mutex_setprioceiling(void);
void test_mutex_getprioceiling(void);
pthread_mutex_t MutexId;
void test_mutex_setprioceiling(void)
@@ -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 <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *POSIX_Init(
void *argument
)
@@ -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,11 @@
#include <pthread.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
void *Low(
void *argument
)
+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
@@ -16,6 +16,9 @@
#include <pthread.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
pthread_rwlock_t rwlock;
static void benchmark_pthread_rwlock_init(void)
+6 -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
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_rwlock_t rwlock;
void *Low(
+6 -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
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_rwlock_t rwlock;
struct timespec abstime;
+6 -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
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_rwlock_t rwlock;
void *Low(
+6 -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
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_rwlock_t rwlock;
struct timespec abstime;
+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
@@ -19,6 +19,10 @@
#include "test_support.h"
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Blocker(void *argument);
pthread_rwlock_t rwlock;
void *Blocker(
+6 -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
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
pthread_rwlock_t rwlock;
void *Low(
+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
@@ -19,6 +19,9 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
#define MAX_SEMS 2
sem_t sem1;
+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
@@ -19,6 +19,9 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
sem_t sem1;
sem_t *n_sem1;
+6 -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
@@ -21,6 +21,11 @@
#include <pthread.h>
#include <sched.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
#define MAX_SEMS 2
sem_t sem1;
+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
@@ -22,6 +22,10 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Blocker(void *argument);
#define MAX_SEMS 2
sem_t sem1;
+6 -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
@@ -22,6 +22,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
#define MAX_SEMS 2
sem_t sem1;
+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
@@ -17,6 +17,9 @@
#include <unistd.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *POSIX_Init(
void *argument
)
+6 -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,11 @@
#include <pthread.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
void *Low(
void *argument
)
+5 -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
@@ -18,6 +18,10 @@
#include <pthread.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *TestThread(void *argument);
pthread_t ThreadId;
void *TestThread(
+6 -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
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Middle(void *argument);
void *Low(void *argument);
void *Low(
void *argument
)