Index: testsuites/psxtests/ChangeLog
===================================================================
--- testsuites/psxtests/ChangeLog	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/ChangeLog	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -1,2 +1,14 @@
+2011-10-17	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
+
+	* psxhdrs/signal01.c, psxhdrs/signal02.c, psxhdrs/signal03.c,
+	psxhdrs/signal04.c, psxhdrs/signal05.c, psxhdrs/signal06.c,
+	psxhdrs/signal07.c, psxhdrs/signal08.c, psxhdrs/signal09.c,
+	psxhdrs/signal10.c, psxhdrs/signal11.c, psxhdrs/signal12.c,
+	psxhdrs/signal13.c, psxhdrs/signal14.c, psxhdrs/signal15.c,
+	psxhdrs/signal16.c, psxhdrs/signal17.c, psxhdrs/signal18.c,
+	psxhdrs/signal19.c, psxhdrs/signal20.c, psxhdrs/signal21.c,
+	psxhdrs/signal22.c, psxhdrs/signal23.c:
+	Let test() return values (avoid warnings).
+
 2011-10-15	Ralf CorsÃ©pius <ralf.corsepius@rtems.org>
 
Index: testsuites/psxtests/psxhdrs/signal01.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal01.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal01.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
@@ -30,3 +30,5 @@
 
   result = sigaddset( &signal_set, signal_number );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal02.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal02.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal02.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
@@ -30,3 +30,5 @@
 
   result = sigdelset( &signal_set, signal_number );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal03.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal03.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal03.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
@@ -27,3 +27,5 @@
 
   result = sigfillset( &signal_set );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal04.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal04.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal04.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
@@ -30,3 +30,5 @@
 
   result = sigismember( &signal_set, signal_number );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal05.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal05.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal05.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
@@ -27,3 +27,5 @@
 
   result = sigemptyset( &signal_set );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal06.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal06.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal06.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int              signal_number;
@@ -42,3 +42,5 @@
 
   result = sigaction( signal_number, &act, &oact );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal07.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal07.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal07.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -23,7 +23,7 @@
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pthread_t  thread;
@@ -35,3 +35,5 @@
 
   result = pthread_kill( thread, signal_number );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal08.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal08.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal08.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -23,7 +23,7 @@
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int       how;
@@ -37,3 +37,5 @@
 
   result = pthread_sigmask( how, &set, &oset );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal09.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal09.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal09.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -20,7 +20,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pid;
@@ -32,3 +32,5 @@
 
   result = kill( pid, signal_number );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal10.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal10.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal10.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  set;
@@ -28,3 +28,5 @@
 
   result = sigwait( &set, &sig );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal11.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal11.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal11.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int      signal_number;
@@ -29,3 +29,5 @@
 
   result = raise( signal_number );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal12.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal12.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal12.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   void (*signal_function_pointer)(int);
@@ -29,3 +29,5 @@
 
   signal_function_pointer = signal( signal_number, SIG_IGN );
+
+  return (signal_function_pointer == SIG_ERR) ? -1 : 0;
 }
Index: testsuites/psxtests/psxhdrs/signal13.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal13.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal13.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int       how;
@@ -35,3 +35,5 @@
 
   result = sigprocmask( how, &set, &oset );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal14.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal14.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal14.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  set;
@@ -29,3 +29,5 @@
 
   result = sigpending( &set );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal15.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal15.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal15.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  sigmask;
@@ -29,3 +29,5 @@
 
   result = sigsuspend( &sigmask );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal16.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal16.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal16.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -23,7 +23,7 @@
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int       how;
@@ -39,3 +39,5 @@
 
   result = pthread_sigmask( how, &set, &oset );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal17.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal17.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal17.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  set;
@@ -30,3 +30,5 @@
 
   result = sigwaitinfo( &set, &info );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal18.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal18.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal18.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t        set;
@@ -28,6 +28,8 @@
   int             result;
 
-  (void) sigemptyset( &set );
+  sigemptyset( &set );
 
   result = sigtimedwait( &set, &info, &timeout );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal19.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal19.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal19.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t        set;
@@ -30,3 +30,5 @@
 
   result = sigwait( &set, &sig );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal20.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal20.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal20.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   unsigned int seconds;
@@ -29,3 +29,5 @@
 
   result = alarm( seconds );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal21.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal21.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal21.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,10 +19,12 @@
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int result;
 
   result = pause();
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal22.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal22.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal22.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -19,7 +19,7 @@
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   unsigned int seconds;
@@ -29,3 +29,5 @@
 
   result = sleep( seconds );
+
+  return result;
 }
Index: testsuites/psxtests/psxhdrs/signal23.c
===================================================================
--- testsuites/psxtests/psxhdrs/signal23.c	(revision 63f4be9999040d271803fba5ca4b57b5d576a01f)
+++ testsuites/psxtests/psxhdrs/signal23.c	(revision e94ce2fd8ed8525d3c1bd6cf478c3e2ba88c1754)
@@ -23,7 +23,7 @@
 
 useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   useconds_t useconds;
@@ -35,3 +35,5 @@
 
   result = ualarm( useconds, interval );
+
+  return (result == 0) ? 0 : -1;
 }
