mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 23:05:37 +08:00
psxtmtests - Eliminate missing prototype warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user