<!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-07-19)</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-07-19 Joel Sherrill <joel.sherrilL@OARcorp.com>

        PR 1838/filesystem
        * psxfchx01/init.c, psxfchx01/psxfchx01.scn: fchmod() does not need a
        writeable file descriptor.
</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.344&r2=text&tr2=1.345&diff_format=h">M</a></td><td width='1%'>1.345</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/psxfchx01/init.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/psxtests/psxfchx01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/psxtests/psxfchx01/psxfchx01.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.344 rtems/testsuites/psxtests/ChangeLog:1.345
--- rtems/testsuites/psxtests/ChangeLog:1.344   Mon Jun 20 00:51:51 2011
+++ rtems/testsuites/psxtests/ChangeLog Tue Jul 19 08:10:46 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-07-19    Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+       PR 1838/filesystem
+       * psxfchx01/init.c, psxfchx01/psxfchx01.scn: fchmod() does not need a
+       writeable file descriptor.
+
</font> 2011-06-20        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * psxautoinit01/Makefile.am, psxautoinit02/Makefile.am,

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfchx01/init.c:1.2 rtems/testsuites/psxtests/psxfchx01/init.c:1.3
--- rtems/testsuites/psxtests/psxfchx01/init.c:1.2      Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxfchx01/init.c  Tue Jul 19 08:10:46 2011
</font><font color='#997700'>@@ -1,5 +1,5 @@
</font> /*
<font color='#880000'>- *  COPYRIGHT (c) 1989-2010.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2011.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -55,7 +55,7 @@
</font>   rtems_test_assert( status == -1 );
   rtems_test_assert( errno == EINVAL );
 
<font color='#880000'>-  puts(" Init - closing /newfile -- OK" );
</font><font color='#000088'>+  puts( "Init - closing /newfile -- OK" );
</font>   status = close( fd );
   rtems_test_assert( status == 0 );
 
<font color='#997700'>@@ -140,12 +140,11 @@
</font>   fd = open( "/newfile", O_RDONLY | O_CREAT, S_IRWXU );
   rtems_test_assert( fd != -1 );
   
<font color='#880000'>-  puts( "Init - fchmod, with the opened file descriptor - expect EINVAL" );
</font><font color='#000088'>+  puts( "Init - fchmod, with the opened file descriptor -- OK" );
</font>   status = fchmod( fd, 0 );
<font color='#880000'>-  rtems_test_assert( status == -1 );
-  rtems_test_assert( errno == EINVAL );
</font><font color='#000088'>+  rtems_test_assert( status == 0 );
</font> 
<font color='#880000'>-  puts(" Init - close and remove /newfile" );
</font><font color='#000088'>+  puts( "Init - close and remove /newfile" );
</font>   status = close( fd );
   status |= unlink( "/newfile" );
   rtems_test_assert( status == 0 );
<font color='#997700'>@@ -158,7 +157,7 @@
</font>   status = fchmod( fd, S_IRUSR );
   rtems_test_assert( status == 0 );
 
<font color='#880000'>-  puts(" Init - close and remove /newfile -- OK" );
</font><font color='#000088'>+  puts( "Init - close and remove /newfile -- OK" );
</font>   status = close( fd );
   status |= unlink( "/newfile" );
   rtems_test_assert( status == 0 );
<font color='#997700'>@@ -190,7 +189,7 @@
</font>   rtems_test_assert( status == -1 );
   rtems_test_assert( errno == EINVAL );
 
<font color='#880000'>-  puts(" Init - close and remove /newfile" );
</font><font color='#000088'>+  puts( "Init - close and remove /newfile" );
</font>   status = close( fd );
   status |= unlink( "/newfile" );
   rtems_test_assert( status == 0 );
<font color='#997700'>@@ -203,7 +202,7 @@
</font>   status = fchown( fd, 1, 0 );
   rtems_test_assert( status == 0 );
 
<font color='#880000'>-  puts(" Init - close and remove /newfile -- OK" );
</font><font color='#000088'>+  puts( "Init - close and remove /newfile -- OK" );
</font>   status = close( fd );
   status |= unlink( "/newfile" );
   rtems_test_assert( status == 0 );

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn:1.1 rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn:1.2
--- rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn:1.1       Tue Jul 13 16:13:12 2010
+++ rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn   Tue Jul 19 08:10:46 2011
</font><font color='#997700'>@@ -4,7 +4,7 @@
</font> Init - Attempt fchdir with bad file descriptor - expect EBADF
 Init - opening /newfile in write-mode -- OK
 Init - fchdir on the file descriptor - expect EINVAL
<font color='#880000'>- Init - closing /newfile -- OK
</font><font color='#000088'>+Init - closing /newfile -- OK
</font> Init - removing /newfile -- OK
 Init - opening /newfile in read-mode -- OK
 Init - fchdir on the file descriptor - expect ENOTDIR
<font color='#997700'>@@ -25,11 +25,11 @@
</font> Init - fchmod, with a bad file descriptor - expect EBADF
 Init - fchmod, with an unopened file descriptor - expect EBADF
 Init - open new file: /newfile in read-only mode -- OK
<font color='#880000'>-Init - fchmod, with the opened file descriptor - expect EINVAL
- Init - close and remove /newfile
</font><font color='#000088'>+Init - fchmod, with the opened file descriptor -- OK
+Init - close and remove /newfile
</font> Init - open new file: /newfile in read-write mode -- OK
 Init - fchmod, with the opened file descriptor -- OK
<font color='#880000'>- Init - close and remove /newfile -- OK
</font><font color='#000088'>+Init - close and remove /newfile -- OK
</font> End of fchmod tests
 
 Init - fchown tests
<font color='#997700'>@@ -37,9 +37,9 @@
</font> Init - fchown, with an unopened file descriptor - expect EBADF
 Init - open new file: /newfile in read-only mode -- OK
 Init - fchown, with the opened file descriptor - expect EINVAL
<font color='#880000'>- Init - close and remove /newfile
</font><font color='#000088'>+Init - close and remove /newfile
</font> Init - open new file: /newfile in read-write mode -- OK
 Init - fchown, with the opened file descriptor -- OK
<font color='#880000'>- Init - close and remove /newfile -- OK
</font><font color='#000088'>+Init - close and remove /newfile -- OK
</font> End of fchown tests
 *** END OF TEST Posix file op tests - 01 ***
</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>joel</strong></font>
 <font color='#225522'><em>(on branch rtems-4-9-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-07-19 Joel Sherrill <joel.sherrilL@OARcorp.com>

        PR 1838/filesystem
        * libcsupport/src/fchmod.c: fchmod() does not need a writeable file
        descriptor.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2880&r2=text&tr2=1.2881&diff_format=h">M</a></td><td width='1%'>1.2881</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.1539.2.76&r2=text&tr2=1.1539.2.77&diff_format=h">M</a></td><td width='1%'>1.1539.2.77</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2346.2.97&r2=text&tr2=1.2346.2.98&diff_format=h">M</a></td><td width='1%'>1.2346.2.98</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/fchmod.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>cpukit/libcsupport/src/fchmod.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/fchmod.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.12.8.1&diff_format=h">M</a></td><td width='1%'>1.12.8.1</td><td width='100%'>cpukit/libcsupport/src/fchmod.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/fchmod.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.12.6.1&diff_format=h">M</a></td><td width='1%'>1.12.6.1</td><td width='100%'>cpukit/libcsupport/src/fchmod.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2880 rtems/cpukit/ChangeLog:1.2881
--- rtems/cpukit/ChangeLog:1.2880       Tue Jul 19 07:19:05 2011
+++ rtems/cpukit/ChangeLog      Tue Jul 19 08:10:30 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-07-19    Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+       PR 1838/filesystem
+       * libcsupport/src/fchmod.c: fchmod() does not need a writeable file
+       descriptor.
+
</font> 2011-07-19        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * rtems/src/msgqcreate.c: Make packet size check consistent with

<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.1539.2.76 rtems/cpukit/ChangeLog:1.1539.2.77
--- rtems/cpukit/ChangeLog:1.1539.2.76  Thu Jul 14 14:21:46 2011
+++ rtems/cpukit/ChangeLog      Tue Jul 19 08:14:16 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-07-19    Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+       PR 1838/filesystem
+       * libcsupport/src/fchmod.c: fchmod() does not need a writeable file
+       descriptor.
+
</font> 2011-07-14      Gene Smith <gene.smith@siemens.com>
 
        PR 1381/networking

<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2346.2.97 rtems/cpukit/ChangeLog:1.2346.2.98
--- rtems/cpukit/ChangeLog:1.2346.2.97  Thu Jul 14 14:22:04 2011
+++ rtems/cpukit/ChangeLog      Tue Jul 19 08:14:07 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-07-19    Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+       PR 1838/filesystem
+       * libcsupport/src/fchmod.c: fchmod() does not need a writeable file
+       descriptor.
+
</font> 2011-07-14      Gene Smith <gene.smith@siemens.com>
 
        PR 1381/networking

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/fchmod.c:1.13 rtems/cpukit/libcsupport/src/fchmod.c:1.14
--- rtems/cpukit/libcsupport/src/fchmod.c:1.13  Thu Jul  1 10:12:36 2010
+++ rtems/cpukit/libcsupport/src/fchmod.c       Tue Jul 19 08:10:31 2011
</font><font color='#997700'>@@ -1,7 +1,7 @@
</font> /*
  *  fchmod() - POSIX 1003.1b 5.6.4 - Change File Modes
  *
<font color='#880000'>- *  COPYRIGHT (c) 1989-1999.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2011.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -38,8 +38,5 @@
</font>   /*
    *  Now process the fchmod().
    */
<font color='#880000'>-
-  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
-
</font>   return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
 }

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/fchmod.c:1.12 rtems/cpukit/libcsupport/src/fchmod.c:1.12.8.1
--- rtems/cpukit/libcsupport/src/fchmod.c:1.12  Sun Apr 18 01:05:34 2004
+++ rtems/cpukit/libcsupport/src/fchmod.c       Tue Jul 19 08:14:09 2011
</font><font color='#997700'>@@ -1,7 +1,7 @@
</font> /*
  *  fchmod() - POSIX 1003.1b 5.6.4 - Change File Modes
  *
<font color='#880000'>- *  COPYRIGHT (c) 1989-1999.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2011.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -38,9 +38,6 @@
</font>   /*
    *  Now process the fchmod().
    */
<font color='#880000'>-
-  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
-
</font>   if ( !iop->handlers->fchmod_h )
     rtems_set_errno_and_return_minus_one( ENOTSUP );
 

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/fchmod.c:1.12 rtems/cpukit/libcsupport/src/fchmod.c:1.12.6.1
--- rtems/cpukit/libcsupport/src/fchmod.c:1.12  Sun Apr 18 01:05:34 2004
+++ rtems/cpukit/libcsupport/src/fchmod.c       Tue Jul 19 08:14:18 2011
</font><font color='#997700'>@@ -38,9 +38,6 @@
</font>   /*
    *  Now process the fchmod().
    */
<font color='#880000'>-
-  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
-
</font>   if ( !iop->handlers->fchmod_h )
     rtems_set_errno_and_return_minus_one( ENOTSUP );
 
</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>