change log for rtems (2011-10-17)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 17 08:10:48 UTC 2011


 *ralf*:
2011-10-17	Ralf Corsépius <ralf.corsepius at 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).

M  1.366  testsuites/psxtests/ChangeLog
M   1.11  testsuites/psxtests/psxhdrs/signal01.c
M   1.11  testsuites/psxtests/psxhdrs/signal02.c
M   1.11  testsuites/psxtests/psxhdrs/signal03.c
M   1.11  testsuites/psxtests/psxhdrs/signal04.c
M   1.11  testsuites/psxtests/psxhdrs/signal05.c
M   1.12  testsuites/psxtests/psxhdrs/signal06.c
M   1.12  testsuites/psxtests/psxhdrs/signal07.c
M   1.12  testsuites/psxtests/psxhdrs/signal08.c
M   1.11  testsuites/psxtests/psxhdrs/signal09.c
M   1.11  testsuites/psxtests/psxhdrs/signal10.c
M   1.11  testsuites/psxtests/psxhdrs/signal11.c
M   1.12  testsuites/psxtests/psxhdrs/signal12.c
M   1.11  testsuites/psxtests/psxhdrs/signal13.c
M   1.11  testsuites/psxtests/psxhdrs/signal14.c
M   1.11  testsuites/psxtests/psxhdrs/signal15.c
M   1.11  testsuites/psxtests/psxhdrs/signal16.c
M   1.11  testsuites/psxtests/psxhdrs/signal17.c
M   1.11  testsuites/psxtests/psxhdrs/signal18.c
M   1.11  testsuites/psxtests/psxhdrs/signal19.c
M   1.12  testsuites/psxtests/psxhdrs/signal20.c
M   1.12  testsuites/psxtests/psxhdrs/signal21.c
M   1.12  testsuites/psxtests/psxhdrs/signal22.c
M    1.7  testsuites/psxtests/psxhdrs/signal23.c

diff -u rtems/testsuites/psxtests/ChangeLog:1.365 rtems/testsuites/psxtests/ChangeLog:1.366
--- rtems/testsuites/psxtests/ChangeLog:1.365	Sat Oct 15 04:19:50 2011
+++ rtems/testsuites/psxtests/ChangeLog	Mon Oct 17 02:18:21 2011
@@ -1,3 +1,15 @@
+2011-10-17	Ralf Corsépius <ralf.corsepius at 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 at rtems.org>
 
 	* psxhdrs/key01.c, psxhdrs/key02.c, psxhdrs/key03.c,

diff -u rtems/testsuites/psxtests/psxhdrs/signal01.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal01.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal01.c:1.10	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal01.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
   int      signal_number;
@@ -29,4 +29,6 @@
   signal_number = SIGALRM;
 
   result = sigaddset( &signal_set, signal_number );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal02.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal02.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal02.c:1.10	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal02.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
   int      signal_number;
@@ -29,4 +29,6 @@
   signal_number = SIGALRM;
 
   result = sigdelset( &signal_set, signal_number );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal03.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal03.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal03.c:1.10	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal03.c	Mon Oct 17 02:18:21 2011
@@ -18,12 +18,14 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
   int      result;
 
   result = sigfillset( &signal_set );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal04.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal04.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal04.c:1.10	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal04.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
   int      signal_number;
@@ -29,4 +29,6 @@
   signal_number = SIGALRM;
 
   result = sigismember( &signal_set, signal_number );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal05.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal05.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal05.c:1.10	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal05.c	Mon Oct 17 02:18:21 2011
@@ -18,12 +18,14 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t signal_set;
   int      result;
 
   result = sigemptyset( &signal_set );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal06.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal06.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal06.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal06.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int              signal_number;
   struct sigaction act;
@@ -41,4 +41,6 @@
   act.sa_sigaction = NULL;
 
   result = sigaction( signal_number, &act, &oact );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal07.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal07.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal07.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal07.c	Mon Oct 17 02:18:21 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have pthread_kill"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pthread_t  thread;
   int        signal_number;
@@ -34,4 +34,6 @@
   signal_number = SIGALRM;
 
   result = pthread_kill( thread, signal_number );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal08.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal08.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal08.c:1.11	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal08.c	Mon Oct 17 02:18:21 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have pthread_sigmask"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int       how;
   sigset_t  set;
@@ -36,4 +36,6 @@
   how = SIG_SETMASK;
 
   result = pthread_sigmask( how, &set, &oset );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal09.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal09.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal09.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal09.c	Mon Oct 17 02:18:21 2011
@@ -19,9 +19,9 @@
 #include <sys/types.h>
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pid;
   int   signal_number;
@@ -31,4 +31,6 @@
   signal_number = SIGALRM;
 
   result = kill( pid, signal_number );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal10.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal10.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal10.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal10.c	Mon Oct 17 02:18:21 2011
@@ -18,13 +18,15 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  set;
   int       sig;
   int       result;
 
   result = sigwait( &set, &sig );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal11.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal11.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal11.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal11.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int      signal_number;
   int      result;
@@ -28,4 +28,6 @@
   signal_number = SIGALRM;
 
   result = raise( signal_number );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal12.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal12.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal12.c:1.11	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal12.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   void (*signal_function_pointer)(int);
   int  signal_number;
@@ -28,4 +28,6 @@
   signal_number = SIGALRM;
 
   signal_function_pointer = signal( signal_number, SIG_IGN );
+
+  return (signal_function_pointer == SIG_ERR) ? -1 : 0;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal13.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal13.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal13.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal13.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int       how;
   sigset_t  set;
@@ -34,4 +34,6 @@
   (void) sigemptyset( &set );
 
   result = sigprocmask( how, &set, &oset );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal14.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal14.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal14.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal14.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  set;
   int       result;
@@ -28,4 +28,6 @@
   (void) sigemptyset( &set );
 
   result = sigpending( &set );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal15.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal15.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal15.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal15.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  sigmask;
   int       result;
@@ -28,4 +28,6 @@
   (void) sigemptyset( &sigmask );
 
   result = sigsuspend( &sigmask );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal16.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal16.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal16.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal16.c	Mon Oct 17 02:18:21 2011
@@ -22,9 +22,9 @@
 #define "rtems is supposed to have pthread_sigmask"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int       how;
   sigset_t  set;
@@ -38,4 +38,6 @@
   (void) sigemptyset( &set );
 
   result = pthread_sigmask( how, &set, &oset );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal17.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal17.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal17.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal17.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t  set;
   siginfo_t info;
@@ -29,4 +29,6 @@
   (void) sigemptyset( &set );
 
   result = sigwaitinfo( &set, &info );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal18.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal18.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal18.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal18.c	Mon Oct 17 02:18:21 2011
@@ -18,16 +18,18 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t        set;
   siginfo_t       info;
   struct timespec timeout;
   int             result;
 
-  (void) sigemptyset( &set );
+  sigemptyset( &set );
 
   result = sigtimedwait( &set, &info, &timeout );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal19.c:1.10 rtems/testsuites/psxtests/psxhdrs/signal19.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/signal19.c:1.10	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal19.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <signal.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   sigset_t        set;
   int             sig;
@@ -29,4 +29,6 @@
   (void) sigemptyset( &set );
 
   result = sigwait( &set, &sig );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal20.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal20.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal20.c:1.11	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal20.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   unsigned int seconds;
   unsigned int result;
@@ -28,4 +28,6 @@
   seconds = 10;
 
   result = alarm( seconds );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal21.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal21.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal21.c:1.11	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal21.c	Mon Oct 17 02:18:21 2011
@@ -18,11 +18,13 @@
 
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int result;
 
   result = pause();
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal22.c:1.11 rtems/testsuites/psxtests/psxhdrs/signal22.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/signal22.c:1.11	Tue Feb 22 03:47:34 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal22.c	Mon Oct 17 02:18:21 2011
@@ -18,9 +18,9 @@
 
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   unsigned int seconds;
   unsigned int result;
@@ -28,4 +28,6 @@
   seconds = 10;
 
   result = sleep( seconds );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/signal23.c:1.6 rtems/testsuites/psxtests/psxhdrs/signal23.c:1.7
--- rtems/testsuites/psxtests/psxhdrs/signal23.c:1.6	Thu Oct 13 12:20:11 2011
+++ rtems/testsuites/psxtests/psxhdrs/signal23.c	Mon Oct 17 02:18:21 2011
@@ -22,9 +22,9 @@
  * POSIX.1-2008 removes the specification of ualarm(). */
 
 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;
   useconds_t interval;
@@ -34,4 +34,6 @@
   interval = 10;
 
   result = ualarm( useconds, interval );
+
+  return (result == 0) ? 0 : -1;
 }



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111017/16bde32f/attachment.html>


More information about the vc mailing list