<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-10-25)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>

        * psxmsgq01/init.c: Introduce fatal_posix_mqd.
        Replace fatal_posix_service_pointer_minus_one with fatal_posix_mqd.
        * psxsem01/init.c: Introduce fatal_posix_sem.
        Replace fatal_posix_service_pointer_minus_one with fatal_posix_sem.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.373&r2=text&tr2=1.374&diff_format=h">M</a></td><td width='1%'>1.374</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxmsgq01/init.c.diff?r1=text&tr1=1.28&r2=text&tr2=1.29&diff_format=h">M</a></td><td width='1%'>1.29</td><td width='100%'>testsuites/psxtests/psxmsgq01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxsem01/init.c.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>testsuites/psxtests/psxsem01/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.373 rtems/testsuites/psxtests/ChangeLog:1.374
--- rtems/testsuites/psxtests/ChangeLog:1.373   Tue Oct 25 10:12:08 2011
+++ rtems/testsuites/psxtests/ChangeLog Tue Oct 25 11:29:14 2011
</font><font color='#997700'>@@ -1,5 +1,12 @@
</font> 2011-10-25        Ralf Corsépius <ralf.corsepius@rtems.org>
 
<font color='#000088'>+   * psxmsgq01/init.c: Introduce fatal_posix_mqd.
+       Replace fatal_posix_service_pointer_minus_one with fatal_posix_mqd.
+       * psxsem01/init.c: Introduce fatal_posix_sem.
+       Replace fatal_posix_service_pointer_minus_one with fatal_posix_sem.
+
+2011-10-25     Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font>   * psxreaddir/test.c: Remove bogus casts.
        Fix fprintf format strings.
 

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxmsgq01/init.c:1.28 rtems/testsuites/psxtests/psxmsgq01/init.c:1.29
--- rtems/testsuites/psxtests/psxmsgq01/init.c:1.28     Sun Aug 21 14:59:51 2011
+++ rtems/testsuites/psxtests/psxmsgq01/init.c  Tue Oct 25 11:29:14 2011
</font><font color='#997700'>@@ -22,6 +22,16 @@
</font> #include <signal.h>   /* signal facilities */
 #include "test_support.h"
 
<font color='#000088'>+#define fatal_posix_mqd( _ptr, _msg ) \
+  if ( (_ptr != (mqd_t) -1) ) { \
+    check_dispatch_disable_level( 0 ); \
+    printf( "\n%s FAILED -- expected (-1) got (%" PRId32 " - %d/%s)\n", \
+           (_msg), _ptr, errno, strerror(errno) ); \
+    FLUSH_OUTPUT(); \
+    rtems_test_exit( -1 ); \
+  }
+
+
</font> typedef struct {
   char         msg[ 50 ];
   int          size;
<font color='#997700'>@@ -174,8 +184,7 @@
</font>   attr.mq_maxmsg = -1;
   puts( "Init: mq_open - Create with maxmsg (-1) (EINVAL)" );
   n_mq2 = mq_open( "mq2", O_CREAT | O_RDONLY, 0x777, &attr);
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    (void *)n_mq2, "mq_open error return status" );
</font><font color='#000088'>+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
</font>   fatal_posix_service_status( errno, EINVAL,  "mq_open errno EINVAL");
   attr.mq_maxmsg  = MAXMSG;
 
<font color='#997700'>@@ -186,8 +195,7 @@
</font>   attr.mq_msgsize = -1;
   puts( "Init: mq_open - Create with msgsize (-1) (EINVAL)" );
   n_mq2 = mq_open( "mq2", O_CREAT | O_RDONLY, 0x777, &attr);
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
</font><font color='#000088'>+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
</font>   fatal_posix_service_status( errno, EINVAL,  "mq_open errno EINVAL");
   attr.mq_msgsize = MSGSIZE;
 
<font color='#997700'>@@ -197,8 +205,7 @@
</font> 
   puts( "Init: mq_open - Open new mq without create flag (ENOENT)" );
   n_mq2 = mq_open( "mq3", O_EXCL | O_RDONLY, 0x777, NULL);
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
</font><font color='#000088'>+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
</font>   fatal_posix_service_status( errno, ENOENT,  "mq_open errno ENOENT");
 
   /*
<font color='#997700'>@@ -211,8 +218,7 @@
</font> 
   puts( "Init: mq_open - Open with too long of a name (ENAMETOOLONG)" );
   n_mq2 = mq_open( Get_Too_Long_Name(), O_CREAT | O_RDONLY, 0x777, NULL );
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
</font><font color='#000088'>+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
</font>   fatal_posix_service_status( errno, ENAMETOOLONG, "mq_open errno ENAMETOOLONG");
 
   /*
<font color='#997700'>@@ -231,8 +237,7 @@
</font> 
   n_mq2 = mq_open(
     Build_Queue_Name(0), O_CREAT | O_EXCL | O_RDONLY, 0x777, NULL);
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
</font><font color='#000088'>+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
</font>   fatal_posix_service_status( errno, EEXIST,  "mq_open errno EEXIST");
 
   status = mq_unlink( Build_Queue_Name(0) );
<font color='#997700'>@@ -273,8 +278,7 @@
</font> 
   puts( "Init: mq_open - system is out of resources (ENFILE)" );
   n_mq2 = mq_open( Build_Queue_Name(i), O_CREAT | O_RDONLY, 0x777, NULL );
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
</font><font color='#000088'>+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
</font>   fatal_posix_service_status( errno, ENFILE,  "mq_open errno ENFILE");
 
   /*

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxsem01/init.c:1.20 rtems/testsuites/psxtests/psxsem01/init.c:1.21
--- rtems/testsuites/psxtests/psxsem01/init.c:1.20      Tue Feb 22 03:47:35 2011
+++ rtems/testsuites/psxtests/psxsem01/init.c   Tue Oct 25 11:29:14 2011
</font><font color='#997700'>@@ -22,6 +22,16 @@
</font> #include <pmacros.h>
 #include "test_support.h"
 
<font color='#000088'>+#define fatal_posix_sem( _ptr, _msg ) \
+  if ( (_ptr != SEM_FAILED) ) { \
+    check_dispatch_disable_level( 0 ); \
+    printf( "\n%s FAILED -- expected (-1) got (%p - %d/%s)\n", \
+           (_msg), _ptr, errno, strerror(errno) ); \
+    FLUSH_OUTPUT(); \
+    rtems_test_exit( -1 ); \
+  }
+
+
</font> #define MAX_SEMS  10
 
 void *POSIX_Init(
<font color='#997700'>@@ -175,8 +185,7 @@
</font> 
   puts( "Init: sem_open - UNSUCCESSFUL (ENAMETOOLONG)" );
   n_sem1 = sem_open(Get_Too_Long_Name(), O_CREAT, 0777, 1 );
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    n_sem1, "sem_open error return status");
</font><font color='#000088'>+  fatal_posix_sem( n_sem1, "sem_open error return status" );
</font>   fatal_posix_service_status(
     errno, ENAMETOOLONG, "sem_open errorno ENAMETOOLONG" );
 
<font color='#997700'>@@ -191,14 +200,12 @@
</font> 
   puts( "Init: sem_open - Create an Existing sem (EEXIST)" );
   n_sem2 = sem_open("sem1", O_CREAT | O_EXCL, 0777, 1);
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    n_sem2, "sem_open error return status" );
</font><font color='#000088'>+  fatal_posix_sem( n_sem2, "sem_open error return status" );
</font>   fatal_posix_service_status( errno, EEXIST,  "sem_open errno EEXIST");
 
   puts( "Init: sem_open - Open new sem without create flag (ENOENT)" );
   n_sem2 = sem_open("sem3", O_EXCL, 0777, 1);
<font color='#880000'>-  fatal_posix_service_pointer_minus_one(
-    n_sem2, "sem_open error return status" );
</font><font color='#000088'>+  fatal_posix_sem( n_sem2, "sem_open error return status" );
</font>   fatal_posix_service_status( errno, ENOENT,  "sem_open errno EEXIST");
 
   /*
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>

        * support/include/tmacros.h:
        Remove fatal_posix_service_pointer_minus_one (unused).
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/ChangeLog.diff?r1=text&tr1=1.191&r2=text&tr2=1.192&diff_format=h">M</a></td><td width='1%'>1.192</td><td width='100%'>testsuites/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/support/include/tmacros.h.diff?r1=text&tr1=1.58&r2=text&tr2=1.59&diff_format=h">M</a></td><td width='1%'>1.59</td><td width='100%'>testsuites/support/include/tmacros.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/ChangeLog:1.191 rtems/testsuites/ChangeLog:1.192
--- rtems/testsuites/ChangeLog:1.191    Thu Oct 13 08:08:12 2011
+++ rtems/testsuites/ChangeLog  Tue Oct 25 11:30:35 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-10-25    Ralf Corsépius <ralf.corsepius@rtems.org>
+
+       * support/include/tmacros.h:<span style="background-color: #FF0000"> </span>
+       Remove fatal_posix_service_pointer_minus_one (unused).
+
</font> 2011-10-13        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * support/include/primode.h: New.

<font color='#006600'>diff -u rtems/testsuites/support/include/tmacros.h:1.58 rtems/testsuites/support/include/tmacros.h:1.59
--- rtems/testsuites/support/include/tmacros.h:1.58     Thu Sep 29 21:58:15 2011
+++ rtems/testsuites/support/include/tmacros.h  Tue Oct 25 11:30:35 2011
</font><font color='#997700'>@@ -122,15 +122,6 @@
</font> #define fatal_posix_service_status( _stat, _desired, _msg ) \
   fatal_posix_service_status_with_level( _stat, _desired, _msg, 0 )
 
<font color='#880000'>-#define fatal_posix_service_pointer_minus_one( _ptr, _msg ) \
-  if ( (_ptr != (void *)-1) ) { \
-    check_dispatch_disable_level( 0 ); \
-    printf( "\n%s FAILED -- expected (-1) got (%p - %d/%s)\n", \
-           (_msg), _ptr, errno, strerror(errno) ); \
-    FLUSH_OUTPUT(); \
-    rtems_test_exit( -1 ); \
-  }
-
</font> #define fatal_posix_service_status_with_level( _stat, _desired, _msg, _level ) \
   do { \
     check_dispatch_disable_level( _level ); \
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>