<!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 (2010-07-13)</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>2010-07-12 Bharath Suri <bharath.s.jois@gmail.com>

        PR 1613/testing
        * psxfchx01/init.c, psxfchx01/Makefile.am, psxfchx01/.cvsignore,
        psxfchx01/psxfchx01.doc, psxfchx01/psxfchx01.scn: New
        tests. Improves coverage of fchdir, fchmod, fchown directives.
        * configure.ac, Makefile.am: Changes to accommodate new test.
        * psxstat/test.c, psxstat/psxstat.scn: Added new test case to test
        statvfs routine under libcsupport.
</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.291&r2=text&tr2=1.292&diff_format=h">M</a></td><td width='1%'>1.292</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/Makefile.am.diff?r1=text&tr1=1.66&r2=text&tr2=1.67&diff_format=h">M</a></td><td width='1%'>1.67</td><td width='100%'>testsuites/psxtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/configure.ac.diff?r1=text&tr1=1.70&r2=text&tr2=1.71&diff_format=h">M</a></td><td width='1%'>1.71</td><td width='100%'>testsuites/psxtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfchx01/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxfchx01/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfchx01/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxfchx01/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfchx01/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxfchx01/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfchx01/psxfchx01.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxfchx01/psxfchx01.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtests/psxfchx01/psxfchx01.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxstat/psxstat.scn.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>testsuites/psxtests/psxstat/psxstat.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxstat/test.c.diff?r1=text&tr1=1.27&r2=text&tr2=1.28&diff_format=h">M</a></td><td width='1%'>1.28</td><td width='100%'>testsuites/psxtests/psxstat/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.291 rtems/testsuites/psxtests/ChangeLog:1.292
--- rtems/testsuites/psxtests/ChangeLog:1.291   Fri Jul  9 17:07:11 2010
+++ rtems/testsuites/psxtests/ChangeLog Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2010-07-12    Bharath Suri <bharath.s.jois@gmail.com>
+
+       PR 1613/testing
+       * psxfchx01/init.c, psxfchx01/Makefile.am, psxfchx01/.cvsignore,
+       psxfchx01/psxfchx01.doc, psxfchx01/psxfchx01.scn: New
+       tests. Improves coverage of fchdir, fchmod, fchown directives.
+       * configure.ac, Makefile.am: Changes to accommodate new test.
+       * psxstat/test.c, psxstat/psxstat.scn: Added new test case to test
+       statvfs routine under libcsupport.
+
</font> 2010-07-09        Bharath Suri <bharath.s.jois@gmail.com>
 
        PR 1610/testing

<font color='#006600'>diff -u rtems/testsuites/psxtests/Makefile.am:1.66 rtems/testsuites/psxtests/Makefile.am:1.67
--- rtems/testsuites/psxtests/Makefile.am:1.66  Fri Jul  9 17:07:11 2010
+++ rtems/testsuites/psxtests/Makefile.am       Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font> ## File IO tests
 SUBDIRS += psxfile01 psxfile02 psxfilelock01 psxgetrusage01 psxid01 \
     psximfs01 psxreaddir psxstat psxmount psx13 psxchroot01 psxpasswd01 \
<font color='#880000'>-    psxpasswd02 psxpipe01 psxtimes01
</font><font color='#000088'>+    psxpasswd02 psxpipe01 psxtimes01 psxfchx01
</font> 
 ## Until sys/uio.h is moved to libcsupport, we have to have networking
 ## enabled to support readv and writev.  Hopefully this is a temporary

<font color='#006600'>diff -u rtems/testsuites/psxtests/configure.ac:1.70 rtems/testsuites/psxtests/configure.ac:1.71
--- rtems/testsuites/psxtests/configure.ac:1.70 Fri Jul  9 17:07:11 2010
+++ rtems/testsuites/psxtests/configure.ac      Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -86,6 +86,7 @@
</font> psxenosys/Makefile
 psxfatal01/Makefile
 psxfatal02/Makefile
<font color='#000088'>+psxfchx01/Makefile
</font> psxfile01/Makefile
 psxfile02/Makefile
 psxfilelock01/Makefile

<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxfchx01/.cvsignore:1.1
--- /dev/null   Tue Jul 13 17:11:23 2010
+++ rtems/testsuites/psxtests/psxfchx01/.cvsignore      Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxfchx01/Makefile.am:1.1
--- /dev/null   Tue Jul 13 17:11:23 2010
+++ rtems/testsuites/psxtests/psxfchx01/Makefile.am     Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -0,0 +1,28 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = psxfchx01
+psxfchx01_SOURCES = init.c ../include/pmacros.h
+
+dist_rtems_tests_DATA = psxfchx01.scn
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+psxfchx01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
+
+AM_CPPFLAGS += -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(psxfchx01_OBJECTS) $(psxfchx01_LDADD)
+LINK_LIBS = $(psxfchx01_LDLIBS)
+
+psxfchx01$(EXEEXT): $(psxfchx01_OBJECTS) $(psxfchx01_DEPENDENCIES)
+       @rm -f psxfchx01$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxfchx01/init.c:1.1
--- /dev/null   Tue Jul 13 17:11:23 2010
+++ rtems/testsuites/psxtests/psxfchx01/init.c  Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -0,0 +1,226 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#include <bsp.h>
+#include <pmacros.h>
+#include <unistd.h>
+#include <errno.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <fcntl.h>
+
+rtems_task Init(
+  rtems_task_argument ignored
+)
+{
+  int status = 0;
+  int fd = 0;
+
+  puts( "*** TEST Posix file op tests - 01 ***" );
+
+  /****************************************************
+   *                   fchdir tests
+   ***************************************************/
+
+  puts( "Init - fchdir tests" );
+
+  puts( "Init - Attempt fchdir with bad file descriptor - expect EBADF" );
+  status = fchdir( 5 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EBADF );
+
+  puts( "Init - Attempt fchdir with bad file descriptor - expect EBADF" );
+  status = fchdir( 3 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EBADF );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - opening /newfile in write-mode -- OK" );
+  fd = open( "/newfile", O_WRONLY | O_CREAT, S_IWUSR );
+  rtems_test_assert( fd != -1 );
+
+  puts( "Init - fchdir on the file descriptor - expect EINVAL" );
+  status = fchdir( fd );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EINVAL );
+
+  puts(" Init - closing /newfile -- OK" );
+  status = close( fd );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - removing /newfile -- OK" );
+  status = unlink( "/newfile" );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - opening /newfile in read-mode -- OK" );
+  fd = open( "/newfile", O_RDONLY | O_CREAT, S_IRUSR);
+  rtems_test_assert( fd != -1 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - fchdir on the file descriptor - expect ENOTDIR" );
+  status = fchdir( fd );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == ENOTDIR );
+
+  puts( "Init - closing and removing /newfile -- OK" );
+  status = close( fd );
+  status |= unlink( "/newfile" );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - create directory  /tmp - RWX permissions -- OK" );
+  status = mkdir( "/tmp", S_IRWXU );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - open the /tmp, get the file descriptor -- OK" );
+  fd = open( "/tmp", O_RDONLY );
+  rtems_test_assert( fd != -1 );
+
+  puts( "Init - fchdir on the file descriptor -- OK" );
+  status = fchdir( fd );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - close the file descriptor -- OK" );
+  status = close( fd );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - remove directory /tmp -- OK" );
+  status = rmdir( "/tmp" );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - creating directory /tmp - read permission -- OK" );
+  status = mkdir( "/tmp", S_IRUSR );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - open the /tmp, get the file descriptor -- OK" );
+  fd = open( "/tmp", O_RDONLY );
+  rtems_test_assert( fd != -1 );
+
+  puts( "Init - attempt fchdir on the file descriptor -- expect EACCES" );
+  status = fchdir( fd );
+  rtems_test_assert( status == -1);
+  rtems_test_assert( errno == EACCES );
+
+  puts( "Init - close the file descriptor -- OK" );
+  status = close( fd );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - remove directory /tmp -- OK" );
+  status = rmdir( "/tmp" );
+  rtems_test_assert( status == 0 );
+
+  puts( "End of fchdir tests" );
+
+  /****************************************************
+   *                   fchmod tests
+   ***************************************************/
+
+  puts( "\nInit - fchmod tests" );
+
+  puts( "Init - fchmod, with a bad file descriptor - expect EBADF" );
+  status = fchmod( 4, 0 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EBADF );
+
+  puts( "Init - fchmod, with an unopened file descriptor - expect EBADF" );
+  status = fchmod( 3, 0 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EBADF );
+
+  puts( "Init - open new file: /newfile in read-only mode -- OK" );
+  fd = open( "/newfile", O_RDONLY | O_CREAT, S_IRWXU );
+  rtems_test_assert( fd != -1 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - fchmod, with the opened file descriptor - expect EINVAL" );
+  status = fchmod( fd, 0 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EINVAL );
+
+  puts(" Init - close and remove /newfile" );
+  status = close( fd );
+  status |= unlink( "/newfile" );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - open new file: /newfile in read-write mode -- OK" );
+  fd = open( "/newfile", O_RDWR | O_CREAT, S_IRWXU );
+  rtems_test_assert( fd != -1 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - fchmod, with the opened file descriptor -- OK" );
+  status = fchmod( fd, S_IRUSR );
+  rtems_test_assert( status == 0 );
+
+  puts(" Init - close and remove /newfile -- OK" );
+  status = close( fd );
+  status |= unlink( "/newfile" );
+  rtems_test_assert( status == 0 );
+
+  puts( "End of fchmod tests" );
+
+  /****************************************************
+   *                   fchown tests
+   ***************************************************/
+
+  puts( "\nInit - fchown tests" );
+
+  puts( "Init - fchown, with a bad file descriptor - expect EBADF" );
+  status = fchown( 4, 0, 0 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EBADF );
+
+  puts( "Init - fchown, with an unopened file descriptor - expect EBADF" );
+  status = fchown( 3, 0, 0 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EBADF );
+
+  puts( "Init - open new file: /newfile in read-only mode -- OK" );
+  fd = open( "/newfile", O_RDONLY | O_CREAT, S_IRWXU );
+  rtems_test_assert( fd != -1 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - fchown, with the opened file descriptor - expect EINVAL" );
+  status = fchown( fd, 0, 0 );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EINVAL );
+
+  puts(" Init - close and remove /newfile" );
+  status = close( fd );
+  status |= unlink( "/newfile" );
+  rtems_test_assert( status == 0 );
+
+  puts( "Init - open new file: /newfile in read-write mode -- OK" );
+  fd = open( "/newfile", O_RDWR | O_CREAT, S_IRWXU );
+  rtems_test_assert( fd != -1 );
+<span style="background-color: #FF0000">  </span>
+  puts( "Init - fchown, with the opened file descriptor -- OK" );
+  status = fchown( fd, 1, 0 );
+  rtems_test_assert( status == 0 );
+
+  puts(" Init - close and remove /newfile -- OK" );
+  status = close( fd );
+  status |= unlink( "/newfile" );
+  rtems_test_assert( status == 0 );
+
+  puts( "End of fchown tests" );
+
+  puts( "*** END OF TEST Posix file op tests - 01 ***" );
+  rtems_test_exit( 0 );
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxfchx01/psxfchx01.doc:1.1
--- /dev/null   Tue Jul 13 17:11:23 2010
+++ rtems/testsuites/psxtests/psxfchx01/psxfchx01.doc   Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -0,0 +1,25 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 1989-2009.
+#  On-Line Applications Research Corporation (OAR).
+#
+#  The license and distribution terms for this file may be
+#  found in the file LICENSE in this distribution or at
+#  http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name:  psxfchx01
+
+directives:
+
++ fchdir
++ fchmod
++ fchown
+
+concepts:
+
++ Exercise the fildes based operations - fchdir, fchmod, fchown
+
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn:1.1
--- /dev/null   Tue Jul 13 17:11:23 2010
+++ rtems/testsuites/psxtests/psxfchx01/psxfchx01.scn   Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -0,0 +1,45 @@
</font><font color='#000088'>+*** TEST Posix file op tests - 01 ***
+Init - fchdir tests
+Init - Attempt fchdir with bad file descriptor - expect EBADF
+Init - Attempt fchdir with bad file descriptor - expect EBADF
+Init - opening /newfile in write-mode -- OK
+Init - fchdir on the file descriptor - expect EINVAL
+ Init - closing /newfile -- OK
+Init - removing /newfile -- OK
+Init - opening /newfile in read-mode -- OK
+Init - fchdir on the file descriptor - expect ENOTDIR
+Init - closing and removing /newfile -- OK
+Init - create directory  /tmp - RWX permissions -- OK
+Init - open the /tmp, get the file descriptor -- OK
+Init - fchdir on the file descriptor -- OK
+Init - close the file descriptor -- OK
+Init - remove directory /tmp -- OK
+Init - creating directory /tmp - read permission -- OK
+Init - open the /tmp, get the file descriptor -- OK
+Init - attempt fchdir on the file descriptor -- expect EACCES
+Init - close the file descriptor -- OK
+Init - remove directory /tmp -- OK
+End of fchdir tests
+
+Init - fchmod tests
+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
+Init - fchmod, with the opened file descriptor - expect EINVAL
+ Init - close and remove /newfile
+Init - open new file: /newfile in read-write mode -- OK
+Init - fchmod, with the opened file descriptor -- OK
+ Init - close and remove /newfile -- OK
+End of fchmod tests
+
+Init - fchown tests
+Init - fchown, with a bad file descriptor - expect EBADF
+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
+ Init - close and remove /newfile
+Init - open new file: /newfile in read-write mode -- OK
+Init - fchown, with the opened file descriptor -- OK
+ Init - close and remove /newfile -- OK
+End of fchown tests
+*** END OF TEST Posix file op tests - 01 ***
</font>
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxstat/psxstat.scn:1.10 rtems/testsuites/psxtests/psxstat/psxstat.scn:1.11
--- rtems/testsuites/psxtests/psxstat/psxstat.scn:1.10  Thu Jul  1 12:23:47 2010
+++ rtems/testsuites/psxtests/psxstat/psxstat.scn       Tue Jul 13 16:13:12 2010
</font><font color='#997700'>@@ -1,3 +1,4 @@
</font><font color='#000088'>+
</font> *** STAT TEST 01 ***
 --->Current Time:  - rtems_clock_get_tod - 09:00:00   12/31/1988
 Making directory /my_mount_point/dir1
<font color='#997700'>@@ -1703,6 +1704,10 @@
</font> ...st_ctime   Sat Dec 31 09:00:35 1988
 ...st_blksize 0
 ...st_blocks  0
<font color='#000088'>+statvfs, with invalid path - expect EFAULT
+create /tmp -- OK
+statvfs, with valid path - expect ENOTSUP
+statvfs tested!
</font> 
 
 *** END OF STAT TEST 01 ***

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxstat/test.c:1.27 rtems/testsuites/psxtests/psxstat/test.c:1.28
--- rtems/testsuites/psxtests/psxstat/test.c:1.27       Thu Jul  1 12:23:47 2010
+++ rtems/testsuites/psxtests/psxstat/test.c    Tue Jul 13 16:13:13 2010
</font><font color='#997700'>@@ -774,6 +774,29 @@
</font>   print_time( " - rtems_clock_get_tod - ", &time, "\n" );
 }
 
<font color='#000088'>+void test_statvfs( void )
+{
+
+  int status = 0;
+  struct statvfs stat;
+
+  puts( "statvfs, with invalid path - expect EFAULT" );
+  status = statvfs( NULL , &stat );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EFAULT );
+
+  puts( "create /tmp -- OK" );
+  status = mkdir( "/tmp", 0777 );
+  rtems_test_assert( status == 0 );
+
+  puts( "statvfs, with valid path - expect ENOTSUP" );
+  status = statvfs( "/tmp", &stat );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == ENOTSUP );
+
+  puts( "statvfs tested!" );
+}
+
</font> /*
  *  main entry point to the test
  */
<font color='#997700'>@@ -902,6 +925,8 @@
</font>   status = rtems_task_wake_after( TIMEOUT_VALUE );
   lchown_multiple_files( SymLinks );
 
<font color='#000088'>+  test_statvfs();
+
</font>   puts( "\n\n*** END OF STAT TEST 01 ***" );
   rtems_test_exit(0);
 }
</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>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-13 Vinu Rajashekhar <vinutheraj@gmail.com>

        PR 1614/filesystem
        * libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h,
        libfs/src/imfs/imfs_load_tar.c: Fix rtems_tarfs_load to work with
        pipe filesystem.
</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.2500&r2=text&tr2=1.2501&diff_format=h">M</a></td><td width='1%'>1.2501</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/imfs/fifoimfs_init.c.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%'>cpukit/libfs/src/imfs/fifoimfs_init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/imfs/imfs.h.diff?r1=text&tr1=1.43&r2=text&tr2=1.44&diff_format=h">M</a></td><td width='1%'>1.44</td><td width='100%'>cpukit/libfs/src/imfs/imfs.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/imfs/imfs_load_tar.c.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>cpukit/libfs/src/imfs/imfs_load_tar.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2500 rtems/cpukit/ChangeLog:1.2501
--- rtems/cpukit/ChangeLog:1.2500       Mon Jul 12 08:51:59 2010
+++ rtems/cpukit/ChangeLog      Tue Jul 13 16:43:32 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-07-13    Vinu Rajashekhar <vinutheraj@gmail.com>
+
+       PR 1614/filesystem
+       * libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h,
+       libfs/src/imfs/imfs_load_tar.c: Fix rtems_tarfs_load to work with
+       pipe filesystem.
+
</font> 2010-07-12        Jennifer Averett
 
        * libnetworking/rtems/rtems_syscall.c: Replaced null socket handlers

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/fifoimfs_init.c:1.1 rtems/cpukit/libfs/src/imfs/fifoimfs_init.c:1.2
--- rtems/cpukit/libfs/src/imfs/fifoimfs_init.c:1.1     Tue Jun  8 05:25:40 2010
+++ rtems/cpukit/libfs/src/imfs/fifoimfs_init.c Tue Jul 13 16:43:32 2010
</font><font color='#997700'>@@ -25,7 +25,7 @@
</font> 
 #include "imfs.h"
 
<font color='#880000'>-static const rtems_filesystem_operations_table fifoIMFS_ops = {
</font><font color='#000088'>+const rtems_filesystem_operations_table fifoIMFS_ops = {
</font>   .evalpath_h = IMFS_eval_path,
   .evalformake_h = IMFS_evaluate_for_make,
   .link_h = IMFS_link,
<font color='#997700'>@@ -43,7 +43,7 @@
</font>   .symlink_h = IMFS_symlink,
   .readlink_h = IMFS_readlink,
   .rename_h = IMFS_rename,
<font color='#880000'>-  .statvfs_h = NULL
</font><font color='#000088'>+  .statvfs_h = rtems_filesystem_default_statvfs
</font> };
 
 int fifoIMFS_initialize(

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/imfs.h:1.43 rtems/cpukit/libfs/src/imfs/imfs.h:1.44
--- rtems/cpukit/libfs/src/imfs/imfs.h:1.43     Tue Jun  8 05:25:44 2010
+++ rtems/cpukit/libfs/src/imfs/imfs.h  Tue Jul 13 16:43:32 2010
</font><font color='#997700'>@@ -248,6 +248,7 @@
</font> extern const rtems_filesystem_file_handlers_r       IMFS_memfile_handlers;
 extern const rtems_filesystem_file_handlers_r       IMFS_fifo_handlers;
 extern const rtems_filesystem_operations_table      IMFS_ops;
<font color='#000088'>+extern const rtems_filesystem_operations_table      fifoIMFS_ops;
</font> extern const rtems_filesystem_limits_and_options_t  IMFS_LIMITS_AND_OPTIONS;
 
 /*

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/imfs_load_tar.c:1.16 rtems/cpukit/libfs/src/imfs/imfs_load_tar.c:1.17
--- rtems/cpukit/libfs/src/imfs/imfs_load_tar.c:1.16    Sat Jun 12 22:36:34 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_load_tar.c Tue Jul 13 16:43:32 2010
</font><font color='#997700'>@@ -108,7 +108,8 @@
</font>    if (status != 0)
       return -1;
 
<font color='#880000'>-   if (root_loc.ops != &IMFS_ops)
</font><font color='#000088'>+   if (root_loc.ops != &IMFS_ops
+       && root_loc.ops != &fifoIMFS_ops)
</font>       return -1;
 
    /*
</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>