change log for rtems (2011-10-17)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 17 10:11:55 UTC 2011


 *ralf*:
2011-10-17	Ralf Corsépius <ralf.corsepius at rtems.org>

	* psxhdrs/sched01.c, psxhdrs/sched02.c, psxhdrs/sched03.c,
	psxhdrs/sched04.c, psxhdrs/sched05.c, psxhdrs/sched06.c,
	psxhdrs/sched07.c, psxhdrs/sched08.c:
	Let test() return values (avoid warnings).

M  1.367  testsuites/psxtests/ChangeLog
M   1.14  testsuites/psxtests/psxhdrs/sched01.c
M   1.12  testsuites/psxtests/psxhdrs/sched02.c
M   1.14  testsuites/psxtests/psxhdrs/sched03.c
M   1.12  testsuites/psxtests/psxhdrs/sched04.c
M   1.12  testsuites/psxtests/psxhdrs/sched05.c
M   1.13  testsuites/psxtests/psxhdrs/sched06.c
M   1.13  testsuites/psxtests/psxhdrs/sched07.c
M   1.12  testsuites/psxtests/psxhdrs/sched08.c

diff -u rtems/testsuites/psxtests/ChangeLog:1.366 rtems/testsuites/psxtests/ChangeLog:1.367
--- rtems/testsuites/psxtests/ChangeLog:1.366	Mon Oct 17 02:18:21 2011
+++ rtems/testsuites/psxtests/ChangeLog	Mon Oct 17 04:53:17 2011
@@ -1,5 +1,12 @@
 2011-10-17	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* psxhdrs/sched01.c, psxhdrs/sched02.c, psxhdrs/sched03.c,
+	psxhdrs/sched04.c, psxhdrs/sched05.c, psxhdrs/sched06.c,
+	psxhdrs/sched07.c, psxhdrs/sched08.c:
+	Let test() return values (avoid warnings).
+
+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,

diff -u rtems/testsuites/psxtests/psxhdrs/sched01.c:1.13 rtems/testsuites/psxtests/psxhdrs/sched01.c:1.14
--- rtems/testsuites/psxtests/psxhdrs/sched01.c:1.13	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched01.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_setparam"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t  pid;
   struct sched_param param;
@@ -46,4 +46,6 @@
 #endif
 
   result = sched_setparam( pid, &param );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched02.c:1.11 rtems/testsuites/psxtests/psxhdrs/sched02.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/sched02.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched02.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_getparam"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t  pid;
   struct sched_param param;
@@ -33,4 +33,6 @@
   pid = 0;
 
   result = sched_getparam( pid, &param );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched03.c:1.13 rtems/testsuites/psxtests/psxhdrs/sched03.c:1.14
--- rtems/testsuites/psxtests/psxhdrs/sched03.c:1.13	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched03.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_setscheduler"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t  pid;
   int    policy;
@@ -54,4 +54,6 @@
 #endif
 
   result = sched_setscheduler( pid, policy, &param );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched04.c:1.11 rtems/testsuites/psxtests/psxhdrs/sched04.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/sched04.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched04.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_getscheduler"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t  pid;
   int    result;
@@ -32,4 +32,6 @@
   pid = 0;
 
   result = sched_getscheduler( pid );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched05.c:1.11 rtems/testsuites/psxtests/psxhdrs/sched05.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/sched05.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched05.c	Mon Oct 17 04:53:17 2011
@@ -22,11 +22,13 @@
 #error "rtems is supposed to have sched_yield"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int    result;
 
   result = sched_yield();
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched06.c:1.12 rtems/testsuites/psxtests/psxhdrs/sched06.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/sched06.c:1.12	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched06.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_get_priority_max"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int    policy;
   int    result;
@@ -37,4 +37,6 @@
 #endif
 
   result = sched_get_priority_max( policy );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched07.c:1.12 rtems/testsuites/psxtests/psxhdrs/sched07.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/sched07.c:1.12	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched07.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_get_priority_min"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   int    policy;
   int    result;
@@ -37,4 +37,6 @@
 #endif
 
   result = sched_get_priority_min( policy );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/sched08.c:1.11 rtems/testsuites/psxtests/psxhdrs/sched08.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/sched08.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/sched08.c	Mon Oct 17 04:53:17 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have sched_rr_get_interval"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t  pid;
   struct timespec interval;
@@ -33,4 +33,6 @@
   pid = 0;
 
   result = sched_rr_get_interval( pid, &interval );
+
+  return result;
 }


 *ralf*:
Remove whitespaces.

M   1.12  testsuites/psxtests/psxhdrs/clock01.c
M   1.12  testsuites/psxtests/psxhdrs/clock02.c
M   1.12  testsuites/psxtests/psxhdrs/clock03.c
M   1.12  testsuites/psxtests/psxhdrs/clock04.c
M   1.12  testsuites/psxtests/psxhdrs/clock06.c
M   1.13  testsuites/psxtests/psxhdrs/key01.c
M   1.13  testsuites/psxtests/psxhdrs/key02.c
M   1.13  testsuites/psxtests/psxhdrs/key03.c
M   1.12  testsuites/psxtests/psxhdrs/key04.c
M   1.12  testsuites/psxtests/psxhdrs/timer01.c

diff -u rtems/testsuites/psxtests/psxhdrs/clock01.c:1.11 rtems/testsuites/psxtests/psxhdrs/clock01.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/clock01.c:1.11	Sat Oct 15 00:31:25 2011
+++ rtems/testsuites/psxtests/psxhdrs/clock01.c	Mon Oct 17 04:59:02 2011
@@ -31,6 +31,6 @@
   int              result;
 
   result = clock_gettime( clock_id, &tp );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/clock02.c:1.11 rtems/testsuites/psxtests/psxhdrs/clock02.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/clock02.c:1.11	Sat Oct 15 00:31:25 2011
+++ rtems/testsuites/psxtests/psxhdrs/clock02.c	Mon Oct 17 04:59:03 2011
@@ -31,6 +31,6 @@
   int              result;
 
   result = clock_settime( clock_id, &tp );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/clock03.c:1.11 rtems/testsuites/psxtests/psxhdrs/clock03.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/clock03.c:1.11	Sat Oct 15 00:31:25 2011
+++ rtems/testsuites/psxtests/psxhdrs/clock03.c	Mon Oct 17 04:59:03 2011
@@ -31,6 +31,6 @@
   int              result;
 
   result = clock_getres( clock_id, &res );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/clock04.c:1.11 rtems/testsuites/psxtests/psxhdrs/clock04.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/clock04.c:1.11	Sat Oct 15 00:31:26 2011
+++ rtems/testsuites/psxtests/psxhdrs/clock04.c	Mon Oct 17 04:59:03 2011
@@ -31,6 +31,6 @@
   int        result;
 
   result = clock_getcpuclockid( pid, &clock_id );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/clock06.c:1.11 rtems/testsuites/psxtests/psxhdrs/clock06.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/clock06.c:1.11	Sat Oct 15 00:31:26 2011
+++ rtems/testsuites/psxtests/psxhdrs/clock06.c	Mon Oct 17 04:59:03 2011
@@ -34,6 +34,6 @@
   int        result;
 
   result = clock_getenable_attr( clock_id, &attr );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key01.c:1.12 rtems/testsuites/psxtests/psxhdrs/key01.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/key01.c:1.12	Sat Oct 15 04:19:50 2011
+++ rtems/testsuites/psxtests/psxhdrs/key01.c	Mon Oct 17 04:59:03 2011
@@ -37,6 +37,6 @@
   int              result;
 
   result = pthread_key_create( &key, key_destructor );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key02.c:1.12 rtems/testsuites/psxtests/psxhdrs/key02.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/key02.c:1.12	Sat Oct 15 04:19:50 2011
+++ rtems/testsuites/psxtests/psxhdrs/key02.c	Mon Oct 17 04:59:03 2011
@@ -34,6 +34,6 @@
   value = 0;
 
   result = pthread_setspecific( key, &value );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key03.c:1.12 rtems/testsuites/psxtests/psxhdrs/key03.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/key03.c:1.12	Sat Oct 15 04:19:50 2011
+++ rtems/testsuites/psxtests/psxhdrs/key03.c	Mon Oct 17 04:59:03 2011
@@ -32,6 +32,6 @@
   key = 0;
 
   value = pthread_getspecific( key );
-  
+
   return (value != 0);
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key04.c:1.11 rtems/testsuites/psxtests/psxhdrs/key04.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/key04.c:1.11	Sat Oct 15 04:19:50 2011
+++ rtems/testsuites/psxtests/psxhdrs/key04.c	Mon Oct 17 04:59:03 2011
@@ -30,6 +30,6 @@
   int              result;
 
   result = pthread_key_delete( key );
-  
+
   return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/timer01.c:1.11 rtems/testsuites/psxtests/psxhdrs/timer01.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/timer01.c:1.11	Tue Oct 11 23:15:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/timer01.c	Mon Oct 17 04:59:03 2011
@@ -39,6 +39,6 @@
   evp.sigev_value.sival_ptr = NULL;
 
   result = timer_create( clock_id, &evp, &timerid );
-  
+
   return result;
 }


 *ralf*:
2011-10-17	Ralf Corsépius <ralf.corsepius at rtems.org>

	* psxhdrs/proc01.c, psxhdrs/proc02.c, psxhdrs/proc03.c,
	psxhdrs/proc04.c, psxhdrs/proc05.c, psxhdrs/proc06.c,
	psxhdrs/proc07.c, psxhdrs/proc08.c, psxhdrs/proc09.c,
	psxhdrs/proc10.c, psxhdrs/proc11.c, psxhdrs/proc12.c,
	psxhdrs/proc13.c, psxhdrs/proc14.c:
	Let test() return values (avoid warnings).

M  1.368  testsuites/psxtests/ChangeLog
M   1.12  testsuites/psxtests/psxhdrs/proc01.c
M   1.12  testsuites/psxtests/psxhdrs/proc02.c
M   1.12  testsuites/psxtests/psxhdrs/proc03.c
M   1.12  testsuites/psxtests/psxhdrs/proc04.c
M   1.12  testsuites/psxtests/psxhdrs/proc05.c
M   1.12  testsuites/psxtests/psxhdrs/proc06.c
M   1.12  testsuites/psxtests/psxhdrs/proc07.c
M   1.12  testsuites/psxtests/psxhdrs/proc08.c
M   1.12  testsuites/psxtests/psxhdrs/proc09.c
M   1.12  testsuites/psxtests/psxhdrs/proc10.c
M   1.13  testsuites/psxtests/psxhdrs/proc11.c
M   1.12  testsuites/psxtests/psxhdrs/proc12.c
M   1.12  testsuites/psxtests/psxhdrs/proc13.c
M   1.13  testsuites/psxtests/psxhdrs/proc14.c

diff -u rtems/testsuites/psxtests/ChangeLog:1.367 rtems/testsuites/psxtests/ChangeLog:1.368
--- rtems/testsuites/psxtests/ChangeLog:1.367	Mon Oct 17 04:53:17 2011
+++ rtems/testsuites/psxtests/ChangeLog	Mon Oct 17 05:05:43 2011
@@ -1,5 +1,14 @@
 2011-10-17	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* psxhdrs/proc01.c, psxhdrs/proc02.c, psxhdrs/proc03.c,
+	psxhdrs/proc04.c, psxhdrs/proc05.c, psxhdrs/proc06.c,
+	psxhdrs/proc07.c, psxhdrs/proc08.c, psxhdrs/proc09.c,
+	psxhdrs/proc10.c, psxhdrs/proc11.c, psxhdrs/proc12.c,
+	psxhdrs/proc13.c, psxhdrs/proc14.c:
+	Let test() return values (avoid warnings).
+
+2011-10-17	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* psxhdrs/sched01.c, psxhdrs/sched02.c, psxhdrs/sched03.c,
 	psxhdrs/sched04.c, psxhdrs/sched05.c, psxhdrs/sched06.c,
 	psxhdrs/sched07.c, psxhdrs/sched08.c:

diff -u rtems/testsuites/psxtests/psxhdrs/proc01.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc01.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc01.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc01.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pid;
 
   pid = getpid();
+
+  return pid;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc02.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc02.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc02.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc02.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pid;
 
   pid = getppid();
+
+  return pid;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc03.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc03.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc03.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc03.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   uid_t uid;
 
   uid = getuid();
+
+  return uid;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc04.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc04.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc04.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc04.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   uid_t uid;
 
   uid = geteuid();
+
+  return uid;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc05.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc05.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc05.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc05.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   gid_t gid;
 
   gid = getgid();
+
+  return gid;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc06.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc06.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc06.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc06.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   gid_t gid;
 
   gid = getegid();
+
+  return gid;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc07.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc07.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc07.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc07.c	Mon Oct 17 05:05:43 2011
@@ -19,9 +19,9 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   uid_t uid;
   int   result;
@@ -29,4 +29,6 @@
   uid = 0;
 
   result = setuid( uid );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc08.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc08.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc08.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc08.c	Mon Oct 17 05:05:43 2011
@@ -19,9 +19,9 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   gid_t gid;
   int   result;
@@ -29,4 +29,6 @@
   gid = 0;
 
   result = setgid( gid );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc09.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc09.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc09.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc09.c	Mon Oct 17 05:05:43 2011
@@ -19,9 +19,9 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   gid_t grouplist[ 20 ];
   int   gidsetsize;
@@ -30,4 +30,6 @@
   gidsetsize = 20;
 
   result = getgroups( gidsetsize, grouplist );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc10.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc10.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc10.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc10.c	Mon Oct 17 05:05:43 2011
@@ -19,11 +19,13 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   char *loginname;
 
   loginname = getlogin();
+
+  return (loginname == NULL) ? -1 : 0;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc11.c:1.12 rtems/testsuites/psxtests/psxhdrs/proc11.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/proc11.c:1.12	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc11.c	Mon Oct 17 05:05:43 2011
@@ -20,12 +20,14 @@
 #include <unistd.h>
 #include <limits.h>   /* for LOGIN_NAME_MAX */
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   char  loginnamebuffer[ LOGIN_NAME_MAX ];
   int   result;
 
   result = getlogin_r( loginnamebuffer, LOGIN_NAME_MAX );
+
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc12.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc12.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc12.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc12.c	Mon Oct 17 05:05:44 2011
@@ -19,11 +19,13 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pgrp;
 
   pgrp = getpgrp();
+
+  return (pgrp == -1) ? -1 : 0;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc13.c:1.11 rtems/testsuites/psxtests/psxhdrs/proc13.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/proc13.c:1.11	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc13.c	Mon Oct 17 05:05:44 2011
@@ -19,11 +19,13 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pid;
 
   pid = setsid();
+
+  return (pid == -1) ? -1 : 0;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/proc14.c:1.12 rtems/testsuites/psxtests/psxhdrs/proc14.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/proc14.c:1.12	Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/proc14.c	Mon Oct 17 05:05:44 2011
@@ -19,13 +19,15 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pid_t pid = 0;
   pid_t pgid = 0;
   int   result;
 
   result = setpgid( pid, pgid );
+
+  return result;
 }



--

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/5a0d37a0/attachment-0001.html>


More information about the vc mailing list