diff options
Diffstat (limited to 'testsuites/psxtests/psxrwlock01/test.c')
-rw-r--r-- | testsuites/psxtests/psxrwlock01/test.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxrwlock01/test.c b/testsuites/psxtests/psxrwlock01/test.c index 14ce849752..bf16548e86 100644 --- a/testsuites/psxtests/psxrwlock01/test.c +++ b/testsuites/psxtests/psxrwlock01/test.c @@ -1,7 +1,11 @@ -/* - * This test exercises the POSIX RWLock manager. +/** + * @file * - * COPYRIGHT (c) 1989-2010. + * This test exercises the POSIX RWLock manager. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -21,6 +25,11 @@ /* #define __USE_XOPEN2K XXX already defined on GNU/Linux */ #include <pthread.h> +/* forward declarations to avoid warnings */ +void *ReadLockThread(void *arg); +void *WriteLockThread(void *arg); +int test_main(void); + #if !HAVE_DECL_PTHREAD_RWLOCK_UNLOCK /* FIXME: Newlib should provide the decl. */ extern int pthread_rwlock_unlock(pthread_rwlock_t *rwlock); |