<!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-08-02)</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-08-02 Ricardo Aguirre <el.mastin@ymail.com>

        PR 1875/tests
        * Makefile.am, configure.ac, psxtmtests_plan.csv: Add benchmark of
        pthread_rwlock_rdlock - not available, blocks.
        * psxtmrwlock02/.cvsignore, psxtmrwlock02/Makefile.am,
        psxtmrwlock02/init.c, psxtmrwlock02/psxtmrwlock02.doc: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/ChangeLog.diff?r1=text&tr1=1.38&r2=text&tr2=1.39&diff_format=h">M</a></td><td width='1%'>1.39</td><td width='100%'>testsuites/psxtmtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/Makefile.am.diff?r1=text&tr1=1.21&r2=text&tr2=1.22&diff_format=h">M</a></td><td width='1%'>1.22</td><td width='100%'>testsuites/psxtmtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/configure.ac.diff?r1=text&tr1=1.24&r2=text&tr2=1.25&diff_format=h">M</a></td><td width='1%'>1.25</td><td width='100%'>testsuites/psxtmtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmrwlock02/.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/psxtmtests/psxtmrwlock02/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmrwlock02/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/psxtmtests/psxtmrwlock02/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmrwlock02/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/psxtmtests/psxtmrwlock02/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmrwlock02/psxtmrwlock02.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/psxtmtests/psxtmrwlock02/psxtmrwlock02.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmtests_plan.csv.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>testsuites/psxtmtests/psxtmtests_plan.csv</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtmtests/ChangeLog:1.38 rtems/testsuites/psxtmtests/ChangeLog:1.39
--- rtems/testsuites/psxtmtests/ChangeLog:1.38  Tue Aug  2 08:23:32 2011
+++ rtems/testsuites/psxtmtests/ChangeLog       Tue Aug  2 09:19:45 2011
</font><font color='#997700'>@@ -1,5 +1,13 @@
</font> 2011-08-02        Ricardo Aguirre <el.mastin@ymail.com>
 
<font color='#000088'>+   PR 1875/tests
+       * Makefile.am, configure.ac, psxtmtests_plan.csv: Add benchmark of
+       pthread_rwlock_rdlock - not available, blocks.
+       * psxtmrwlock02/.cvsignore, psxtmrwlock02/Makefile.am,
+       psxtmrwlock02/init.c, psxtmrwlock02/psxtmrwlock02.doc: New files.
+
+2011-08-02     Ricardo Aguirre <el.mastin@ymail.com>
+
</font>   PR 1874/tests
        * Makefile.am, configure.ac, psxtmtests_plan.csv: Add benchmark of
        multiple pthread_rwlock operations that can be done as single shot

<font color='#006600'>diff -u rtems/testsuites/psxtmtests/Makefile.am:1.21 rtems/testsuites/psxtmtests/Makefile.am:1.22
--- rtems/testsuites/psxtmtests/Makefile.am:1.21        Tue Aug  2 08:23:33 2011
+++ rtems/testsuites/psxtmtests/Makefile.am     Tue Aug  2 09:19:45 2011
</font><font color='#997700'>@@ -22,6 +22,7 @@
</font> SUBDIRS += psxtmnanosleep01
 SUBDIRS += psxtmnanosleep02
 SUBDIRS += psxtmrwlock01
<font color='#000088'>+SUBDIRS += psxtmrwlock02
</font> SUBDIRS += psxtmsem01
 SUBDIRS += psxtmsem02
 SUBDIRS += psxtmsem03

<font color='#006600'>diff -u rtems/testsuites/psxtmtests/configure.ac:1.24 rtems/testsuites/psxtmtests/configure.ac:1.25
--- rtems/testsuites/psxtmtests/configure.ac:1.24       Tue Aug  2 08:23:33 2011
+++ rtems/testsuites/psxtmtests/configure.ac    Tue Aug  2 09:19:45 2011
</font><font color='#997700'>@@ -93,7 +93,8 @@
</font> psxtmmutex07/Makefile
 psxtmnanosleep01/Makefile
 psxtmnanosleep02/Makefile
<font color='#880000'>-psxtmrwlock01//Makefile
</font><font color='#000088'>+psxtmrwlock01/Makefile
+psxtmrwlock02/Makefile
</font> psxtmsem01/Makefile
 psxtmsem02/Makefile
 psxtmsem03/Makefile

<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmrwlock02/.cvsignore:1.1
--- /dev/null   Tue Aug  2 10:12:20 2011
+++ rtems/testsuites/psxtmtests/psxtmrwlock02/.cvsignore        Tue Aug  2 09:19:46 2011
</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/psxtmtests/psxtmrwlock02/Makefile.am:1.1
--- /dev/null   Tue Aug  2 10:12:20 2011
+++ rtems/testsuites/psxtmtests/psxtmrwlock02/Makefile.am       Tue Aug  2 09:19:46 2011
</font><font color='#997700'>@@ -0,0 +1,30 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = psxtmrwlock02
+psxtmrwlock02_SOURCES = init.c ../../tmtests/include/timesys.h \
+    ../../support/src/tmtests_empty_function.c \
+    ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = psxtmrwlock02.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+OPERATION_COUNT = @OPERATION_COUNT@
+AM_CPPFLAGS += -I$(top_srcdir)/../tmtests/include
+AM_CPPFLAGS += -DOPERATION_COUNT=$(OPERATION_COUNT)
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(psxtmrwlock02_OBJECTS) $(psxtmrwlock02_LDADD)
+LINK_LIBS = $(psxtmrwlock02_LDLIBS)
+
+psxtmrwlock02$(EXEEXT): $(psxtmrwlock02_OBJECTS) $(psxtmrwlock02_DEPENDENCIES)
+       @rm -f psxtmrwlock02$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmrwlock02/init.c:1.1
--- /dev/null   Tue Aug  2 10:12:20 2011
+++ rtems/testsuites/psxtmtests/psxtmrwlock02/init.c    Tue Aug  2 09:19:46 2011
</font><font color='#997700'>@@ -0,0 +1,130 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2011.
+ *  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$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <coverhd.h>
+#include <errno.h>
+#include <timesys.h>
+#include <tmacros.h>
+#include <pthread.h>
+#include <sched.h>
+#include <rtems/timerdrv.h>
+#include "test_support.h"
+
+pthread_rwlock_t     rwlock;
+
+void *Low(
+  void *argument
+)
+{
+  uint32_t end_time;
+
+  /*
+   * Now we have finished the thread startup overhead,
+   * so let other threads run.  When we return, we can
+   * finish the benchmark.
+   */
+  sched_yield();
+    /* let other threads run */
+
+  end_time = benchmark_timer_read();
+
+  put_time(
+    "pthread_rwlock_rdlock - not available, blocks",
+    end_time,
+    OPERATION_COUNT,
+    0,
+    0
+  );
+
+  puts( "*** END OF POSIX TIME PSXTMRWLOCK 02 TEST ***" );
+
+  rtems_test_exit( 0 );
+  return NULL;
+}
+
+void *Middle(
+  void *argument
+)
+{
+  int status;
+
+  /*
+   * Now we have finished the thread startup overhead,
+   * so let other threads run.  When we return, we can
+   * finish the benchmark.
+   */
+  sched_yield();
+    /* let other threads run */
+  /* this read lock operation will be blocked
+   * cause a write operation has the lock */
+    status = pthread_rwlock_rdlock(&rwlock);
+  rtems_test_assert( status == 0 );
+  return NULL;
+}
+
+void *POSIX_Init(
+  void *argument
+)
+{
+  int        i;
+  int        status;
+  pthread_t  threadId;
+  pthread_rwlockattr_t attr;
+
+  puts( "\n\n*** POSIX TIME PSXTMRWLOCK 02 TEST ***" );
+
+  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
+    status = pthread_create( &threadId, NULL, Middle, NULL );
+    rtems_test_assert( !status );
+  }
+
+  status = pthread_create( &threadId, NULL, Low, NULL );
+  rtems_test_assert( !status );
+
+  /*
+   * Deliberately create the rwlock after the threads.  This way if the
+   * threads do run before we intend, they will get an error.
+   */
+  status = pthread_rwlockattr_init( &attr );
+  rtems_test_assert( status == 0 );
+    status = pthread_rwlock_init( &rwlock, &attr );
+  rtems_test_assert( status == 0 );
+  /*
+   * Let the other threads start so the thread startup overhead,
+   * is accounted for.  When we return, we can start the benchmark.
+   */
+  sched_yield();
+    /* let other threads run */
+
+  /* start the timer and switch through all the other tasks */
+  benchmark_timer_initialize();
+  /* write lock operation */
+    status = pthread_rwlock_wrlock(&rwlock);
+  rtems_test_assert( status == 0 );
+  return NULL;
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS     OPERATION_COUNT + 2
+#define CONFIGURE_MAXIMUM_POSIX_RWLOCKS     1
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+  /* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmrwlock02/psxtmrwlock02.doc:1.1
--- /dev/null   Tue Aug  2 10:12:21 2011
+++ rtems/testsuites/psxtmtests/psxtmrwlock02/psxtmrwlock02.doc Tue Aug  2 09:19:46 2011
</font><font color='#997700'>@@ -0,0 +1,14 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 1989-2011.
+#  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 test benchmarks the following operations:
+
++ pthread_rwlock_rdlock - not available, blocks
</font>
<font color='#006600'>diff -u rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.23 rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.24
--- rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.23        Tue Aug  2 08:23:33 2011
+++ rtems/testsuites/psxtmtests/psxtmtests_plan.csv     Tue Aug  2 09:19:45 2011
</font><font color='#997700'>@@ -66,7 +66,7 @@
</font> "pthread_rwlock_init","psxtmrwlock01","psxtmtest_init_destroy","Yes"
 "pthread_rwlock_destroy","psxtmrwlock01","psxtmtest_init_destroy","Yes"
 "pthread_rwlock_rdlock - available","psxtmrwlock01","psxtmtest_single","Yes"
<font color='#880000'>-"pthread_rwlock_rdlock - not available, blocks",,"psxtmtest_blocking",
</font><font color='#000088'>+"pthread_rwlock_rdlock - not available, blocks",,"psxtmtest_blocking","Yes"
</font> "pthread_rwlock_tryrdlock - available","psxtmrwlock01","psxtmtest_single","Yes"
 "pthread_rwlock_tryrdlock - not available",,"psxtmtest_single",
 "pthread_rwlock_timedrdlock - available","psxtmrwlock01","psxtmtest_single","Yes"
</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>2011-08-02 Xiang Cui <medivhc@gmail.com>

        * configure.ac, fserror/test.c, fslink/test.c, fspermission/test.c,
        fsrdwr/init.c, fssymlink/test.c, fstime/test.c,
        mdosfs_support/fs_config.h, mdosfs_support/fs_support.c,
        mimfs_support/fs_support.c, mrfs_support/fs_config.h,
        support/fstest.h, support/fstest_support.c,
        support/ramdisk_support.c, support/ramdisk_support.h: Perform first
        phase of clean up.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/ChangeLog.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>testsuites/fstests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/configure.ac.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/fstests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fserror/test.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%'>testsuites/fstests/fserror/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fslink/test.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/fstests/fslink/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fspermission/test.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%'>testsuites/fstests/fspermission/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fsrdwr/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%'>testsuites/fstests/fsrdwr/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fssymlink/test.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/fstests/fssymlink/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/fstime/test.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%'>testsuites/fstests/fstime/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/mdosfs_support/fs_config.h.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/fstests/mdosfs_support/fs_config.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/mdosfs_support/fs_support.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/fstests/mdosfs_support/fs_support.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/mimfs_support/fs_support.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/fstests/mimfs_support/fs_support.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/mrfs_support/fs_config.h.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/fstests/mrfs_support/fs_config.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/fstest.h.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/fstests/support/fstest.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/fstest_support.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/fstests/support/fstest_support.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/ramdisk_support.h.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/fstests/support/ramdisk_support.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/fstests/support/ramdisk_support.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/fstests/support/ramdisk_support.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/fstests/ChangeLog:1.5 rtems/testsuites/fstests/ChangeLog:1.6
--- rtems/testsuites/fstests/ChangeLog:1.5      Mon Aug  1 16:54:17 2011
+++ rtems/testsuites/fstests/ChangeLog  Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2011-08-02    Xiang Cui <medivhc@gmail.com>
+
+       * configure.ac, fserror/test.c, fslink/test.c, fspermission/test.c,
+       fsrdwr/init.c, fssymlink/test.c, fstime/test.c,
+       mdosfs_support/fs_config.h, mdosfs_support/fs_support.c,
+       mimfs_support/fs_support.c, mrfs_support/fs_config.h,
+       support/fstest.h, support/fstest_support.c,
+       support/ramdisk_support.c, support/ramdisk_support.h: Perform first
+       phase of clean up.
+
</font> 2011-08-01        Xiang Cui <medivhc@gmail.com>
 
        * imfs_fslink/Makefile.am, imfs_fssymlink/Makefile.am,

<font color='#006600'>diff -u rtems/testsuites/fstests/configure.ac:1.3 rtems/testsuites/fstests/configure.ac:1.4
--- rtems/testsuites/fstests/configure.ac:1.3   Mon Aug  1 15:54:09 2011
+++ rtems/testsuites/fstests/configure.ac       Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -1,5 +1,5 @@
</font> ## Process this file with autoconf to produce a configure script.
<font color='#880000'>-##<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+##
</font> ## $Id$
 
 AC_PREREQ([2.68])
<font color='#997700'>@@ -78,32 +78,32 @@
</font> AC_CHECK_SIZEOF([blkcnt_t])
 
 # Explicitly list all Makefiles here
<font color='#880000'>-AC_CONFIG_FILES([Makefile<span style="background-color: #FF0000"> </span>
-imfs_fserror/Makefile<span style="background-color: #FF0000"> </span>
-imfs_fslink/Makefile<span style="background-color: #FF0000"> </span>
-imfs_fspatheval/Makefile<span style="background-color: #FF0000"> </span>
-imfs_fspermission/Makefile<span style="background-color: #FF0000"> </span>
-imfs_fsrdwr/Makefile<span style="background-color: #FF0000"> </span>
-imfs_fssymlink/Makefile<span style="background-color: #FF0000"> </span>
-imfs_fstime/Makefile<span style="background-color: #FF0000"> </span>
-mdosfs_fserror/Makefile<span style="background-color: #FF0000"> </span>
-mdosfs_fspatheval/Makefile<span style="background-color: #FF0000"> </span>
-mdosfs_fsrdwr/Makefile<span style="background-color: #FF0000"> </span>
-mdosfs_fstime/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fserror/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fslink/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fspatheval/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fspermission/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fsrdwr/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fssymlink/Makefile<span style="background-color: #FF0000"> </span>
-mimfs_fstime/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fserror/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fslink/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fspatheval/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fspermission/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fsrdwr/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fssymlink/Makefile<span style="background-color: #FF0000"> </span>
-mrfs_fstime/Makefile<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+AC_CONFIG_FILES([Makefile
+imfs_fserror/Makefile
+imfs_fslink/Makefile
+imfs_fspatheval/Makefile
+imfs_fspermission/Makefile
+imfs_fsrdwr/Makefile
+imfs_fssymlink/Makefile
+imfs_fstime/Makefile
+mdosfs_fserror/Makefile
+mdosfs_fspatheval/Makefile
+mdosfs_fsrdwr/Makefile
+mdosfs_fstime/Makefile
+mimfs_fserror/Makefile
+mimfs_fslink/Makefile
+mimfs_fspatheval/Makefile
+mimfs_fspermission/Makefile
+mimfs_fsrdwr/Makefile
+mimfs_fssymlink/Makefile
+mimfs_fstime/Makefile
+mrfs_fserror/Makefile
+mrfs_fslink/Makefile
+mrfs_fspatheval/Makefile
+mrfs_fspermission/Makefile
+mrfs_fsrdwr/Makefile
+mrfs_fssymlink/Makefile
+mrfs_fstime/Makefile
</font> 
 ])
 AC_OUTPUT

<font color='#006600'>diff -u rtems/testsuites/fstests/fserror/test.c:1.1 rtems/testsuites/fstests/fserror/test.c:1.2
--- rtems/testsuites/fstests/fserror/test.c:1.1 Mon Aug  1 16:54:17 2011
+++ rtems/testsuites/fstests/fserror/test.c     Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -69,7 +69,7 @@
</font>   /*
    * O_CREAT is not set and the named file does not exist
    * or O_CREAT is set and either the path prefix does not exist or
<font color='#880000'>-   * the path argument points to an empty string.<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+   * the path argument points to an empty string.
</font>    */
 
   sprintf (name, "%s/%s", name03, name02);
<font color='#997700'>@@ -128,7 +128,7 @@
</font> 
 
   /*
<font color='#880000'>-   * Create a new directory and a new directory in it<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Create a new directory and a new directory in it
</font>    */
 
   status = mkdir (name01, mode);
<font color='#997700'>@@ -147,12 +147,12 @@
</font>   rtems_test_assert (status != 0);
   rtems_test_assert (errno == EEXIST || errno == ENOTEMPTY);
   /*
<font color='#880000'>-   * The new directory pathname contains a path prefix<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * The new directory pathname contains a path prefix
</font>    *  that names the old directory.
    */
   EXPECT_ERROR (EINVAL, rename, name01, name);
   /*
<font color='#880000'>-   * The new argument points to a directory and<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * The new argument points to a directory and
</font>    *  the old argument points to a file that is not a directory.
    */
   fd = creat (name03, mode);
<font color='#997700'>@@ -206,7 +206,7 @@
</font>   status = chdir (wd);
   rtems_test_assert (status == 0);
   /*
<font color='#880000'>-   * Create a file<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Create a file
</font>    */
   fd = creat (file, mode);
   status = close (fd);
<font color='#997700'>@@ -256,7 +256,8 @@
</font> 
   /*
    * The path argument names a directory that is not an empty directory,
<font color='#880000'>-   * or there are hard links to the directory other than dot or a single entry in dot-dot.
</font><font color='#000088'>+   * or there are hard links to the directory other than
+   * dot or a single entry in dot-dot.
</font>    */
 
   EXPECT_ERROR (ENOTEMPTY, rmdir, "..");
<font color='#997700'>@@ -272,8 +273,9 @@
</font>   EXPECT_ERROR (EINVAL, rmdir, "tmp/.");
 
   /*
<font color='#880000'>-   * A component of path does not name an existing file,<span style="background-color: #FF0000"> </span>
-   * or the path argument names a nonexistent directory or points to an empty string
</font><font color='#000088'>+   * A component of path does not name an existing file,
+   * or the path argument names a nonexistent directory or
+   * points to an empty string
</font>    */
   EXPECT_ERROR (ENOENT, rmdir, "");
   EXPECT_ERROR (ENOENT, rmdir, nonexistence);
<font color='#997700'>@@ -338,7 +340,7 @@
</font>   EXPECT_ERROR (EBADF, write, 100, readbuf, 10);
 
   /*
<font color='#880000'>-   * The whence argument is not a proper value,<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * The whence argument is not a proper value,
</font>    * or the resulting file offset would be negative for a regular file,
    * block special file, or directory.
    */

<font color='#006600'>diff -u rtems/testsuites/fstests/fslink/test.c:1.2 rtems/testsuites/fstests/fslink/test.c:1.3
--- rtems/testsuites/fstests/fslink/test.c:1.2  Mon Aug  1 15:54:09 2011
+++ rtems/testsuites/fstests/fslink/test.c      Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -65,7 +65,7 @@
</font>   rtems_test_assert (statbuf.st_nlink == 2);
 
   /*
<font color='#880000'>-   * link the file and check the nlink<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * link the file and check the nlink
</font>    */
   status = link (name1, name2);
   rtems_test_assert (status == 0);

<font color='#006600'>diff -u rtems/testsuites/fstests/fspermission/test.c:1.1 rtems/testsuites/fstests/fspermission/test.c:1.2
--- rtems/testsuites/fstests/fspermission/test.c:1.1    Mon Aug  1 16:54:18 2011
+++ rtems/testsuites/fstests/fspermission/test.c        Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -40,9 +40,9 @@
</font>   char* directory01="dir01";
 
   const char* wd=__func__;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   mode_t mode=S_IRWXU|S_IRWXG|S_IRWXO ;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font> 
 
   /*
<font color='#997700'>@@ -88,7 +88,7 @@
</font>   tmp_mode = (statbuf.st_mode) & ALLPERMS;
   printf("The file mode of %s is %03o\n",file02,(unsigned int)tmp_mode);
   rtems_test_assert(tmp_mode==file_mode);
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   status = stat (directory01, &statbuf);
   rtems_test_assert (status == 0);
   tmp_mode = (statbuf.st_mode) & ALLPERMS;
<font color='#997700'>@@ -136,7 +136,7 @@
</font>   tmp_mode = (statbuf.st_mode) & ALLPERMS;
   printf("The file mode of %s is %03o\n",file02,(unsigned int)tmp_mode);
   rtems_test_assert(tmp_mode==file_mode);
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   status = stat (directory01, &statbuf);
   rtems_test_assert (status == 0);
   tmp_mode = (statbuf.st_mode) & ALLPERMS;
<font color='#997700'>@@ -167,17 +167,17 @@
</font>   char path[20];
   char* test_data="Test Data";
   char* data_buf;
<font color='#880000'>-  size_t len=strlen(test_data);<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+  size_t len=strlen(test_data);
</font> 
   int n;
   DIR *dp;
 
   const char* wd=__func__;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   mode_t mode=S_IRWXU|S_IRWXG|S_IRWXO ;
   uid_t user_id =65534;
   gid_t group_id =65534;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   uid_t another_user_id =65533;
   gid_t another_group_id =65533;
 
<font color='#997700'>@@ -234,7 +234,7 @@
</font>   rtems_test_assert(statbuf.st_gid==group_id);
 
   /*
<font color='#880000'>-   * Create directory and a file in it for tese<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Create directory and a file in it for tese
</font>    */
 
   status=mkdir(directory01,0777);
<font color='#997700'>@@ -253,7 +253,7 @@
</font>   rtems_test_assert(statbuf.st_gid==group_id);
 
   /*
<font color='#880000'>-   * Check the file with open and write<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Check the file with open and write
</font>    */
 
   /*
<font color='#997700'>@@ -264,7 +264,7 @@
</font>   rtems_test_assert(n==len);
   status=close(fd);
   rtems_test_assert(status==0);
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   fd=open(file02,O_WRONLY);
   n=write(fd,test_data,len);
   rtems_test_assert(n==len);
<font color='#997700'>@@ -281,7 +281,7 @@
</font>   rtems_test_assert(n==len);
   status=close(fd);
   rtems_test_assert(status==0);
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font>   EXPECT_ERROR(EACCES,open,file02,O_RDONLY);
   EXPECT_ERROR(EACCES,open,file02,O_RDWR);
 
<font color='#997700'>@@ -349,7 +349,7 @@
</font> 
   status=seteuid(another_user_id);
   rtems_test_assert(status==0);
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
</font>   EXPECT_ERROR(EACCES,open,file02,O_WRONLY);
   EXPECT_ERROR(EACCES,open,file02,O_RDONLY);
   EXPECT_ERROR(EACCES,open,file02,O_RDWR);
<font color='#997700'>@@ -395,7 +395,7 @@
</font>   mode_t file_mode=0321;
 
   const char* wd=__func__;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   mode_t mode=S_IRWXU|S_IRWXG|S_IRWXO ;
   uid_t user_id =65534;
   gid_t group_id =65534;

<font color='#006600'>diff -u rtems/testsuites/fstests/fsrdwr/init.c:1.1 rtems/testsuites/fstests/fsrdwr/init.c:1.2
--- rtems/testsuites/fstests/fsrdwr/init.c:1.1  Mon Aug  1 16:54:18 2011
+++ rtems/testsuites/fstests/fsrdwr/init.c      Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -21,12 +21,13 @@
</font> #include "fstest.h"
 
 const char *databuf =
<font color='#880000'>-    "Happy days are here again.  Happy days are here again.1Happy "
-    "days are here again.2Happy days are here again.3Happy days are here again."
-    "4Happy days are here again.5Happy days are here again.6Happy days are here "
-    "again.7Happy days are here again.";
</font><font color='#000088'>+  "Happy days are here again.  Happy days are here again.1Happy "
+  "days are here again.2Happy days are here again.3Happy days are here again."
+  "4Happy days are here again.5Happy days are here again.6Happy days are here "
+  "again.7Happy days are here again.";
</font> 
<font color='#880000'>-void read_write_test (void)
</font><font color='#000088'>+void
+read_write_test (void)
</font> {
 
   int fd;
<font color='#997700'>@@ -42,15 +43,15 @@
</font>   mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
 
 
<font color='#880000'>-  const char* wd=__func__;
</font><font color='#000088'>+  const char *wd = __func__;
</font> 
   /*
    * Create a new directory and change the current directory to  this
    */
<font color='#880000'>-  status=mkdir(wd,mode);
-  rtems_test_assert(status==0);
-  status=chdir(wd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = mkdir (wd, mode);
+  rtems_test_assert (status == 0);
+  status = chdir (wd);
+  rtems_test_assert (status == 0);
</font>   /*
    * Create an empty file
    */
<font color='#997700'>@@ -142,7 +143,7 @@
</font>   rtems_test_assert (status == 0);
 
   /*
<font color='#880000'>-   * Open the file using O_TRUNC<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Open the file using O_TRUNC
</font>    */
 
   fd = open (name01, O_WRONLY | O_TRUNC);
<font color='#997700'>@@ -173,347 +174,351 @@
</font>   /*
    * Go back to parent directory
    */
<font color='#880000'>-  status=chdir("..");
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = chdir ("..");
+  rtems_test_assert (status == 0);
</font> }
 
<font color='#880000'>-void truncate_test03(void )
</font><font color='#000088'>+void
+truncate_test03 (void)
</font> {
 
<font color='#880000'>-  int   fd;
-  int   status;
-  char *name01="name01";
</font><font color='#000088'>+  int fd;
+  int status;
+  char *name01 = "name01";
</font>   struct stat statbuf;
 
<font color='#880000'>-  char  data;
-  int   n;
-  int   i;
</font><font color='#000088'>+  char data;
+  int n;
+  int i;
</font> 
<font color='#880000'>-  size_t  len = strlen(databuf);
</font><font color='#000088'>+  size_t len = strlen (databuf);
</font> 
   char *readbuf;
<font color='#880000'>-  off_t good_size=100;
-  mode_t mode = S_IRWXU|S_IRWXG|S_IRWXO;
</font><font color='#000088'>+  off_t good_size = 100;
+  mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
</font> 
 
<font color='#880000'>-  const char* wd=__func__;
</font><font color='#000088'>+  const char *wd = __func__;
</font> 
   /*
    * Create a new directory and change the current directory to  this
    */
<font color='#880000'>-  status=mkdir(wd,mode);
-  rtems_test_assert(status==0);
-  status=chdir(wd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = mkdir (wd, mode);
+  rtems_test_assert (status == 0);
+  status = chdir (wd);
+  rtems_test_assert (status == 0);
</font> 
   /*
    * Create an empty file
    */
<font color='#880000'>-  fd=creat(name01,mode);
-  status=close(fd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  fd = creat (name01, mode);
+  status = close (fd);
+  rtems_test_assert (status == 0);
</font> 
 
   /*
    * Truncate it to a valid size
    */
<font color='#880000'>-  status=truncate(name01,good_size);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = truncate (name01, good_size);
+  rtems_test_assert (status == 0);
</font>   /*
    * Verify the size and the data
    */
<font color='#880000'>-  status=stat(name01,&statbuf);
-  rtems_test_assert(status==0);
-  rtems_test_assert(good_size==statbuf.st_size);
-
-  fd=open(name01,O_RDONLY);
-  while ((n=read(fd,&data,1))>0) {
-    rtems_test_assert(data==0);
</font><font color='#000088'>+  status = stat (name01, &statbuf);
+  rtems_test_assert (status == 0);
+  rtems_test_assert (good_size == statbuf.st_size);
+
+  fd = open (name01, O_RDONLY);
+  while ((n = read (fd, &data, 1)) > 0) {
+    rtems_test_assert (data == 0);
</font>   }
 
<font color='#880000'>-  status=close(fd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = close (fd);
+  rtems_test_assert (status == 0);
</font> 
   /*
    * Fill a file with data
    */
<font color='#880000'>-  fd=open(name01,O_WRONLY);
-  rtems_test_assert(fd!=-1);
-  n=write(fd,databuf,len);
-  rtems_test_assert(n==len);
</font><font color='#000088'>+  fd = open (name01, O_WRONLY);
+  rtems_test_assert (fd != -1);
+  n = write (fd, databuf, len);
+  rtems_test_assert (n == len);
</font> 
   /*
<font color='#880000'>-   * Truncate it to the half size<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+   * Truncate it to the half size
</font>    */
 
<font color='#880000'>-  status=truncate(name01,len/2);
-  status=truncate(name01,len);
</font><font color='#000088'>+  status = truncate (name01, len / 2);
+  status = truncate (name01, len);
</font> 
   /*
    * verify the data
    */
<font color='#880000'>-  readbuf = (char *)malloc(len/2);
-  rtems_test_assert( readbuf );
-  fd=open(name01,O_RDONLY);
-  rtems_test_assert(fd!=-1);
-  n=read(fd,readbuf,len/2);
-  rtems_test_assert(n==len/2);
-  rtems_test_assert(!strncmp(databuf,readbuf,len/2));
-  n=read(fd,readbuf,len/2);
-  rtems_test_assert(n==len/2);
-  for (i=0;i<len/2;i++){
-    rtems_test_assert(readbuf[i]==0);
</font><font color='#000088'>+  readbuf = (char *) malloc (len / 2);
+  rtems_test_assert (readbuf);
+  fd = open (name01, O_RDONLY);
+  rtems_test_assert (fd != -1);
+  n = read (fd, readbuf, len / 2);
+  rtems_test_assert (n == len / 2);
+  rtems_test_assert (!strncmp (databuf, readbuf, len / 2));
+  n = read (fd, readbuf, len / 2);
+  rtems_test_assert (n == len / 2);
+  for (i = 0; i < len / 2; i++) {
+    rtems_test_assert (readbuf[i] == 0);
</font>   }
<font color='#880000'>-  status=close(fd);
-  rtems_test_assert( status==0 );
</font><font color='#000088'>+  status = close (fd);
+  rtems_test_assert (status == 0);
</font> 
   /*
    * Go back to parent directory
    */
<font color='#880000'>-  status=chdir("..");
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = chdir ("..");
+  rtems_test_assert (status == 0);
</font> }
 
<font color='#880000'>-void lseek_test(void)
</font><font color='#000088'>+void
+lseek_test (void)
</font> {
<font color='#880000'>-  int   fd;
-  int   status;
-  char *name01="test_name01";
</font><font color='#000088'>+  int fd;
+  int status;
+  char *name01 = "test_name01";
</font>   struct stat statbuf;
 
<font color='#880000'>-  int   n;
-  int   i;
</font><font color='#000088'>+  int n;
+  int i;
</font> 
<font color='#880000'>-  size_t  len = strlen(databuf);
</font><font color='#000088'>+  size_t len = strlen (databuf);
</font>   off_t pos;
<font color='#880000'>-  int     total_written=0;
</font><font color='#000088'>+  int total_written = 0;
</font> 
   char *readbuf;
<font color='#880000'>-  mode_t mode = S_IRWXU|S_IRWXG|S_IRWXO;
</font><font color='#000088'>+  mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
</font> 
 
 
<font color='#880000'>-  const char* wd=__func__;
</font><font color='#000088'>+  const char *wd = __func__;
</font> 
   /*
    * Create a new directory and change the current directory to this
    */
<font color='#880000'>-  status=mkdir(wd,mode);
-  rtems_test_assert(status==0);
-  status=chdir(wd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = mkdir (wd, mode);
+  rtems_test_assert (status == 0);
+  status = chdir (wd);
+  rtems_test_assert (status == 0);
</font> 
   /*
    * Create a file and fill with the data.
    */
<font color='#880000'>-  puts("Create a new file");
-  fd=creat(name01,mode);
-  rtems_test_assert(fd!=-1);
-
-  pos=lseek(fd,0,SEEK_CUR);
-  rtems_test_assert(pos==0);
-
-  pos=lseek(fd,0,SEEK_END);
-  rtems_test_assert(pos==0);
-<span style="background-color: #FF0000">  </span>
-  pos=lseek(fd,0,SEEK_SET);
-  rtems_test_assert(pos==0);
-<span style="background-color: #FF0000">  </span>
-
-  printf( "Writing %d bytes to file\n", len * 10 );
-  for (i=0; i<10; i++) {
-    n = write(fd, databuf, len);
-    rtems_test_assert( n != -1 );
</font><font color='#000088'>+  puts ("Create a new file");
+  fd = creat (name01, mode);
+  rtems_test_assert (fd != -1);
+
+  pos = lseek (fd, 0, SEEK_CUR);
+  rtems_test_assert (pos == 0);
+
+  pos = lseek (fd, 0, SEEK_END);
+  rtems_test_assert (pos == 0);
+
+  pos = lseek (fd, 0, SEEK_SET);
+  rtems_test_assert (pos == 0);
+
+
+  printf ("Writing %d bytes to file\n", len * 10);
+  for (i = 0; i < 10; i++) {
+    n = write (fd, databuf, len);
+    rtems_test_assert (n != -1);
</font>     total_written += n;
   }
<font color='#880000'>-  printf("Successfully wrote %d\n", total_written);
</font><font color='#000088'>+  printf ("Successfully wrote %d\n", total_written);
</font> 
   /*
    * Check the current position
    */
<font color='#880000'>-  puts("Check the current position");
-  pos=lseek(fd,0,SEEK_CUR);
-  rtems_test_assert(pos==total_written);
</font><font color='#000088'>+  puts ("Check the current position");
+  pos = lseek (fd, 0, SEEK_CUR);
+  rtems_test_assert (pos == total_written);
</font> 
<font color='#880000'>-  pos=lseek(fd,0,SEEK_END);
-  rtems_test_assert(pos==total_written);
</font><font color='#000088'>+  pos = lseek (fd, 0, SEEK_END);
+  rtems_test_assert (pos == total_written);
</font> 
   /*
    * ftruncate shall not change the posistion
    */
<font color='#880000'>-  status=ftruncate(fd,total_written+1);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = ftruncate (fd, total_written + 1);
+  rtems_test_assert (status == 0);
</font> 
<font color='#880000'>-  pos=lseek(fd,0,SEEK_CUR);
-  rtems_test_assert(pos==total_written);
</font><font color='#000088'>+  pos = lseek (fd, 0, SEEK_CUR);
+  rtems_test_assert (pos == total_written);
</font> 
<font color='#880000'>-  pos=lseek(fd,0,SEEK_END);
-  printf("%jd\n",(intmax_t)pos);
-  rtems_test_assert(pos==total_written+1);
</font><font color='#000088'>+  pos = lseek (fd, 0, SEEK_END);
+  printf ("%jd\n", (intmax_t) pos);
+  rtems_test_assert (pos == total_written + 1);
</font> 
<font color='#880000'>-  status=ftruncate(fd,total_written);
-  rtems_test_assert(status==0);
-<span style="background-color: #FF0000">  </span>
-  pos=lseek(fd,0,SEEK_CUR);
-  rtems_test_assert(pos==total_written+1);
</font><font color='#000088'>+  status = ftruncate (fd, total_written);
+  rtems_test_assert (status == 0);
+
+  pos = lseek (fd, 0, SEEK_CUR);
+  rtems_test_assert (pos == total_written + 1);
</font> 
 
<font color='#880000'>-  status=close(fd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = close (fd);
+  rtems_test_assert (status == 0);
</font> 
   /*
    * Check the file size
    */
<font color='#880000'>-  status=stat(name01,&statbuf);
-  rtems_test_assert(statbuf.st_size==total_written);
</font><font color='#000088'>+  status = stat (name01, &statbuf);
+  rtems_test_assert (statbuf.st_size == total_written);
</font> 
   /*
    * Open the file with O_RDONLY and check the lseek
    */
<font color='#880000'>-  readbuf=(char*)malloc(len);
-  fd=open(name01,O_RDONLY);
-  pos=lseek(fd,len,SEEK_CUR);
-  rtems_test_assert(pos==len);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
-
-  pos=lseek(fd,len,SEEK_CUR);
-  rtems_test_assert(pos==3*len);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
-
-  pos=lseek(fd,-len,SEEK_CUR);
-  rtems_test_assert(pos==3*len);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
-
-  pos=lseek(fd,4*len,SEEK_SET);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
-
-<span style="background-color: #FF0000">  </span>
-  pos=lseek(fd,10,SEEK_SET);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(strncmp(databuf,readbuf,len)!=0);
-
-  pos=lseek(fd,-len,SEEK_END);
-  n=read(fd,readbuf,2*len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
</font><font color='#000088'>+  readbuf = (char *) malloc (len);
+  fd = open (name01, O_RDONLY);
+  pos = lseek (fd, len, SEEK_CUR);
+  rtems_test_assert (pos == len);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
+
+  pos = lseek (fd, len, SEEK_CUR);
+  rtems_test_assert (pos == 3 * len);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
</font> 
<font color='#880000'>-  status=close(fd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  pos = lseek (fd, -len, SEEK_CUR);
+  rtems_test_assert (pos == 3 * len);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
+
+  pos = lseek (fd, 4 * len, SEEK_SET);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
+
+
+  pos = lseek (fd, 10, SEEK_SET);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (strncmp (databuf, readbuf, len) != 0);
+
+  pos = lseek (fd, -len, SEEK_END);
+  n = read (fd, readbuf, 2 * len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
+
+  status = close (fd);
+  rtems_test_assert (status == 0);
</font> 
   /*
    * Open the file withe O_RDWR and check the lseek
    */
 
<font color='#880000'>-  fd=open(name01,O_RDWR);
</font><font color='#000088'>+  fd = open (name01, O_RDWR);
</font> 
<font color='#880000'>-  pos=lseek(fd,len,SEEK_CUR);
-  rtems_test_assert(pos==len);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
</font><font color='#000088'>+  pos = lseek (fd, len, SEEK_CUR);
+  rtems_test_assert (pos == len);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
</font> 
<font color='#880000'>-  pos=lseek(fd,len,SEEK_CUR);
-  rtems_test_assert(pos==3*len);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
</font><font color='#000088'>+  pos = lseek (fd, len, SEEK_CUR);
+  rtems_test_assert (pos == 3 * len);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
</font> 
<font color='#880000'>-  pos=lseek(fd,-len,SEEK_CUR);
-  rtems_test_assert(pos==3*len);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
</font><font color='#000088'>+  pos = lseek (fd, -len, SEEK_CUR);
+  rtems_test_assert (pos == 3 * len);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
</font> 
<font color='#880000'>-  pos=lseek(fd,4*len,SEEK_SET);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
</font><font color='#000088'>+  pos = lseek (fd, 4 * len, SEEK_SET);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
</font> 
   /*
<font color='#880000'>-   * Go to the wrong position, so the data is not the same<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+   * Go to the wrong position, so the data is not the same
</font>    */
<font color='#880000'>-  pos=lseek(fd,10,SEEK_SET);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(strncmp(databuf,readbuf,len)!=0);
</font><font color='#000088'>+  pos = lseek (fd, 10, SEEK_SET);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (strncmp (databuf, readbuf, len) != 0);
</font> 
   /*
<font color='#880000'>-   * Use SEEK_END<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+   * Use SEEK_END
</font>    */
<font color='#880000'>-  pos=lseek(fd,-len,SEEK_END);
-  n=read(fd,readbuf,2*len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(!strncmp(databuf,readbuf,len));
</font><font color='#000088'>+  pos = lseek (fd, -len, SEEK_END);
+  n = read (fd, readbuf, 2 * len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (!strncmp (databuf, readbuf, len));
</font> 
<font color='#880000'>-  memset(readbuf,0,len);
</font><font color='#000088'>+  memset (readbuf, 0, len);
</font> 
   /*
    * Write the zero to the end of file.
    */
<font color='#880000'>-  pos=lseek(fd,-len,SEEK_END);
-  rtems_test_assert(pos==total_written-len);
-  n=write(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  /*
-   * Verify it<span style="background-color: #FF0000"> </span>
-   */
-  pos=lseek(fd,total_written-len,SEEK_SET);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  for (i=0;i<n;i++){
-    rtems_test_assert(readbuf[i]==0);
</font><font color='#000088'>+  pos = lseek (fd, -len, SEEK_END);
+  rtems_test_assert (pos == total_written - len);
+  n = write (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  /*
+   * Verify it
+   */
+  pos = lseek (fd, total_written - len, SEEK_SET);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  for (i = 0; i < n; i++) {
+    rtems_test_assert (readbuf[i] == 0);
</font>   }
 
   /*
    * Write the zero to the beginning of file.
    */
<font color='#880000'>-  pos=lseek(fd,-total_written,SEEK_END);
-  rtems_test_assert(pos==0);
-  n=write(fd,readbuf,len);
-  rtems_test_assert(n==len);
</font><font color='#000088'>+  pos = lseek (fd, -total_written, SEEK_END);
+  rtems_test_assert (pos == 0);
+  n = write (fd, readbuf, len);
+  rtems_test_assert (n == len);
</font> 
   /*
    * Verify it
    */
 
<font color='#880000'>-  pos=lseek(fd,0,SEEK_SET);
-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  for (i=0;i<n;i++){
-    rtems_test_assert(readbuf[i]==0);
</font><font color='#000088'>+  pos = lseek (fd, 0, SEEK_SET);
+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  for (i = 0; i < n; i++) {
+    rtems_test_assert (readbuf[i] == 0);
</font>   }
 
<font color='#880000'>-  n=read(fd,readbuf,len);
-  rtems_test_assert(n==len);
-  rtems_test_assert(strncmp(databuf,readbuf,len)==0);
</font><font color='#000088'>+  n = read (fd, readbuf, len);
+  rtems_test_assert (n == len);
+  rtems_test_assert (strncmp (databuf, readbuf, len) == 0);
</font>   /*
    * Call ftruncate to decrease the file and the position not change
    */
<font color='#880000'>-  status=ftruncate(fd,len);
-  rtems_test_assert(status==0);
-  pos=lseek(fd,0,SEEK_CUR);
-  rtems_test_assert(pos==len*2);
</font><font color='#000088'>+  status = ftruncate (fd, len);
+  rtems_test_assert (status == 0);
+  pos = lseek (fd, 0, SEEK_CUR);
+  rtems_test_assert (pos == len * 2);
</font> 
<font color='#880000'>-  status=close(fd);
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = close (fd);
+  rtems_test_assert (status == 0);
</font>   /*
    * Go back to parent directory
    */
<font color='#880000'>-  status=chdir("..");
-  rtems_test_assert(status==0);
</font><font color='#000088'>+  status = chdir ("..");
+  rtems_test_assert (status == 0);
</font> 
 }
<font color='#880000'>-void test(void )
</font><font color='#000088'>+
+void
+test (void)
</font> {
<font color='#880000'>-  read_write_test();
-  lseek_test();
</font><font color='#000088'>+  read_write_test ();
+  lseek_test ();
</font> }

<font color='#006600'>diff -u rtems/testsuites/fstests/fssymlink/test.c:1.2 rtems/testsuites/fstests/fssymlink/test.c:1.3
--- rtems/testsuites/fstests/fssymlink/test.c:1.2       Mon Aug  1 15:54:10 2011
+++ rtems/testsuites/fstests/fssymlink/test.c   Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -24,7 +24,7 @@
</font> #include "fstest.h"
 
 /*
<font color='#880000'>- * Test the function of symlink<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * Test the function of symlink
</font>  */
 
 void symlink_test01(void )
<font color='#997700'>@@ -37,7 +37,7 @@
</font>   struct stat statbuf;
   size_t   len=strlen(file01);
   size_t   name_len;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font> 
   printf("Create a file named %s\n",file01);
   fd=creat(file01,0777);
<font color='#997700'>@@ -58,7 +58,7 @@
</font>   rtems_test_assert(S_ISLNK(statbuf.st_mode));
   rtems_test_assert(len==statbuf.st_size);
 
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   puts("call readlink ");
   name_len=readlink(symlink_file01,name,sizeof(name)-1);
   rtems_test_assert(name_len!=-1);
<font color='#997700'>@@ -67,7 +67,7 @@
</font>   puts(name);
 
   puts("Unlink the file");
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   status=unlink(file01);
   rtems_test_assert(status==0);
 
<font color='#997700'>@@ -75,7 +75,7 @@
</font>   rtems_test_assert(status==0);
   rtems_test_assert(S_ISLNK(statbuf.st_mode));
   rtems_test_assert(len==statbuf.st_size);
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   puts("call readlink ");
   name_len=readlink(symlink_file01,name,sizeof(name)-1);
   rtems_test_assert(name_len!=-1);
<font color='#997700'>@@ -86,7 +86,7 @@
</font> 
   printf("Create a dir named %s\n",file01);
   status=mkdir (file01,0777);
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   printf("Create a symlink named %s to %s\n",symlink_file01,file01);
   status=symlink(file01,symlink_file01);
   rtems_test_assert(status==0);
<font color='#997700'>@@ -96,7 +96,7 @@
</font>   rtems_test_assert(S_ISLNK(statbuf.st_mode));
   rtems_test_assert(len==statbuf.st_size);
 
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font>   puts("call readlink ");
   name_len=readlink(symlink_file01,name,sizeof(name)-1);
   rtems_test_assert(name_len!=-1);
<font color='#997700'>@@ -141,7 +141,7 @@
</font>   rtems_test_assert(status==0);
   status=symlink(file02,file01);
   rtems_test_assert(status==0);
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
</font> 
   EXPECT_ERROR(ELOOP,creat,path,mode);
   EXPECT_ERROR(ELOOP,open,path,O_CREAT|O_WRONLY,mode);

<font color='#006600'>diff -u rtems/testsuites/fstests/fstime/test.c:1.1 rtems/testsuites/fstests/fstime/test.c:1.2
--- rtems/testsuites/fstests/fstime/test.c:1.1  Mon Aug  1 16:54:18 2011
+++ rtems/testsuites/fstests/fstime/test.c      Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -80,7 +80,7 @@
</font>   mtime2 = statbuf.st_mtime;
 
   /*
<font color='#880000'>-   * Make sure they are the same<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Make sure they are the same
</font>    */
 
   rtems_test_assert (TIME_EQUAL (ctime1, mtime1));
<font color='#997700'>@@ -98,7 +98,7 @@
</font>   mtime2 = statbuf.st_mtime;
 
   /*
<font color='#880000'>-   * Make sure they are the same<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Make sure they are the same
</font>    */
   rtems_test_assert (TIME_EQUAL (ctime1, mtime1));
   rtems_test_assert (TIME_EQUAL (ctime1, mtime2));
<font color='#997700'>@@ -112,7 +112,7 @@
</font>   sleep (TIME_PRECISION);
 
   /*
<font color='#880000'>-   * Create an empty directory<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * Create an empty directory
</font>    */
   status = mkdir (dir01, mode);
   rtems_test_assert (status == 0);
<font color='#997700'>@@ -133,11 +133,11 @@
</font>    *  truncate shall not modify the file offset for any open file
    *   descriptions associated with the file. Upon successful completion,
    *   if the file size is changed, this function shall mark for update
<font color='#880000'>-   *   the st_ctime and st_mtime fields of the file<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   *   the st_ctime and st_mtime fields of the file
</font>    */
 
   /*
<font color='#880000'>-   * file01 shall not update<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   * file01 shall not update
</font>    */
   status = stat (file01, &statbuf);
   rtems_test_assert (status == 0);
<font color='#997700'>@@ -160,7 +160,7 @@
</font>   rtems_test_assert (!TIME_EQUAL (ctime1, ctime2));
 
   /*
<font color='#880000'>-   *  Upon successful completion, mkdir() shall mark for update the<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+   *  Upon successful completion, mkdir() shall mark for update the
</font>    *  5st_atime, st_ctime, and st_mtime fields of the directory.
    *  Also, the st_ctime and st_mtime fields of the directory that
    *  contains the new entry shall be marked for update.
<font color='#997700'>@@ -252,7 +252,7 @@
</font> }
 
 /*
<font color='#880000'>- * These tests only get time_t value, and test<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * These tests only get time_t value, and test
</font>  * if they are changed. Thest tests don't check atime
  */
 void test (void)

<font color='#006600'>diff -u rtems/testsuites/fstests/mdosfs_support/fs_config.h:1.2 rtems/testsuites/fstests/mdosfs_support/fs_config.h:1.3
--- rtems/testsuites/fstests/mdosfs_support/fs_config.h:1.2     Mon Aug  1 15:54:12 2011
+++ rtems/testsuites/fstests/mdosfs_support/fs_config.h Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -15,6 +15,5 @@
</font> #define MDOSFS_TEST
 
 #define FILESYSTEM "MOUNTED DOSFS"
<font color='#880000'>-#define BASE_FOR_TEST "/mnt/"
</font> 
 #endif

<font color='#006600'>diff -u rtems/testsuites/fstests/mdosfs_support/fs_support.c:1.2 rtems/testsuites/fstests/mdosfs_support/fs_support.c:1.3
--- rtems/testsuites/fstests/mdosfs_support/fs_support.c:1.2    Mon Aug  1 15:54:12 2011
+++ rtems/testsuites/fstests/mdosfs_support/fs_support.c        Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -20,7 +20,9 @@
</font> 
 #include <rtems/libio.h>
 #include <rtems/dosfs.h>
<font color='#000088'>+
</font> #include "ramdisk_support.h"
<font color='#000088'>+#include "fstest.h"
</font> 
 #define BLOCK_SIZE 512
 

<font color='#006600'>diff -u rtems/testsuites/fstests/mimfs_support/fs_support.c:1.3 rtems/testsuites/fstests/mimfs_support/fs_support.c:1.4
--- rtems/testsuites/fstests/mimfs_support/fs_support.c:1.3     Mon Aug  1 15:54:14 2011
+++ rtems/testsuites/fstests/mimfs_support/fs_support.c Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -53,7 +53,7 @@
</font> 
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
<font color='#880000'>-#define CONFIGURE_MAXIMUM_TASKS                  10<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+#define CONFIGURE_MAXIMUM_TASKS                  10
</font> #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 40
 

<font color='#006600'>diff -u rtems/testsuites/fstests/mrfs_support/fs_config.h:1.3 rtems/testsuites/fstests/mrfs_support/fs_config.h:1.4
--- rtems/testsuites/fstests/mrfs_support/fs_config.h:1.3       Mon Aug  1 16:54:19 2011
+++ rtems/testsuites/fstests/mrfs_support/fs_config.h   Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -1,5 +1,12 @@
</font> /*
<font color='#880000'>- *  $Id$
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2011.
+ *  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 Exp $
</font>  */
 
 #ifndef __MIMFS_SUPPORT_h

<font color='#006600'>diff -u rtems/testsuites/fstests/support/fstest.h:1.2 rtems/testsuites/fstests/support/fstest.h:1.3
--- rtems/testsuites/fstests/support/fstest.h:1.2       Mon Aug  1 15:54:15 2011
+++ rtems/testsuites/fstests/support/fstest.h   Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -22,7 +22,9 @@
</font> 
 
 #define FS_PASS() do {puts("PASS");} while (0)
<font color='#880000'>-#define FS_FAIL() do {printf( "FAIL    %s: %d \n", __FILE__, __LINE__ ); } while (0)
</font><font color='#000088'>+#define FS_FAIL() do {\
+  printf( "FAIL   %s: %d \n", __FILE__, __LINE__ );\
+ } while (0)
</font> 
 
 #define SHOW_MESSAGE(e, func, ...) printf(\
<font color='#997700'>@@ -55,6 +57,6 @@
</font> 
 
 #define BASE_FOR_TEST "/mnt"
<font color='#880000'>-#endif<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+#endif
</font> 
 

<font color='#006600'>diff -u rtems/testsuites/fstests/support/fstest_support.c:1.2 rtems/testsuites/fstests/support/fstest_support.c:1.3
--- rtems/testsuites/fstests/support/fstest_support.c:1.2       Mon Aug  1 15:54:15 2011
+++ rtems/testsuites/fstests/support/fstest_support.c   Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -8,14 +8,13 @@
</font>  *
  *  $Id Exp $
  */
<font color='#880000'>-
-#include <stdio.h><span style="background-color: #FF0000">  </span>
-#include <errno.h><span style="background-color: #FF0000">  </span>
-#include <fcntl.h><span style="background-color: #FF0000">  </span>
-#include <string.h><span style="background-color: #FF0000">  </span>
-#include <unistd.h><span style="background-color: #FF0000">  </span>
-#include <sys/stat.h><span style="background-color: #FF0000">  </span>
-#include <sys/types.h><span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+#include <stdio.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/types.h>
</font> 
 #include "rtems.h"
 
<font color='#997700'>@@ -24,57 +23,57 @@
</font> 
 #include "fstest.h"
 
<font color='#880000'>-#define TEMP_DIR "waterbuffalo"<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+#define TEMP_DIR "waterbuffalo"
</font> 
 
<font color='#880000'>-/* Break out of a chroot() environment in C */<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+/* Break out of a chroot() environment in C */
</font> void break_out_of_chroot(void)
 {
 
<font color='#880000'>-  int dir_fd;       /* File descriptor to directory */<span style="background-color: #FF0000">  </span>
-  struct stat sbuf; /* The stat() buffer */<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+  int dir_fd;       /* File descriptor to directory */
+  struct stat sbuf; /* The stat() buffer */
</font>   chdir("/");
 
<font color='#880000'>-  if (stat(TEMP_DIR,&sbuf)<0) {<span style="background-color: #FF0000">  </span>
-    if (errno==ENOENT) {<span style="background-color: #FF0000">  </span>
-      if (mkdir(TEMP_DIR,0755)<0) {<span style="background-color: #FF0000">  </span>
-        fprintf(stderr,"Failed to create %s - %s\n", TEMP_DIR,<span style="background-color: #FF0000">  </span>
-            strerror(errno));<span style="background-color: #FF0000">  </span>
-        exit(1);<span style="background-color: #FF0000">  </span>
-      }<span style="background-color: #FF0000">  </span>
-    } else {<span style="background-color: #FF0000">  </span>
-      fprintf(stderr,"Failed to stat %s - %s\n", TEMP_DIR,<span style="background-color: #FF0000">  </span>
-          strerror(errno));<span style="background-color: #FF0000">  </span>
-      exit(1);<span style="background-color: #FF0000">  </span>
-    }<span style="background-color: #FF0000">  </span>
-  } else if (!S_ISDIR(sbuf.st_mode)) {<span style="background-color: #FF0000">  </span>
-    fprintf(stderr,"Error - %s is not a directory!\n",TEMP_DIR);<span style="background-color: #FF0000">  </span>
-    exit(1);<span style="background-color: #FF0000">  </span>
-  }<span style="background-color: #FF0000">  </span>
-
-  if ((dir_fd=open(".",O_RDONLY))<0) {<span style="background-color: #FF0000">  </span>
-    fprintf(stderr,"Failed to open \".\" for reading - %s\n", strerror(errno));<span style="background-color: #FF0000">  </span>
-    exit(1);<span style="background-color: #FF0000">  </span>
-  }<span style="background-color: #FF0000">  </span>
-
-  if (chroot(TEMP_DIR)<0) {<span style="background-color: #FF0000">  </span>
-    fprintf(stderr,"Failed to chroot to %s - %s\n",TEMP_DIR,<span style="background-color: #FF0000">  </span>
-        strerror(errno));<span style="background-color: #FF0000">  </span>
-    exit(1);<span style="background-color: #FF0000">  </span>
-  }<span style="background-color: #FF0000">  </span>
-
-  if (fchdir(dir_fd)<0) {<span style="background-color: #FF0000">  </span>
-    fprintf(stderr,"Failed to fchdir - %s\n",<span style="background-color: #FF0000">  </span>
-        strerror(errno));<span style="background-color: #FF0000">  </span>
-    exit(1);<span style="background-color: #FF0000">  </span>
-  }<span style="background-color: #FF0000">  </span>
-  close(dir_fd);<span style="background-color: #FF0000">  </span>
-  chdir("..");<span style="background-color: #FF0000">  </span>
-  chroot(".");<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+  if (stat(TEMP_DIR,&sbuf)<0) {
+    if (errno==ENOENT) {
+      if (mkdir(TEMP_DIR,0755)<0) {
+        fprintf(stderr,"Failed to create %s - %s\n", TEMP_DIR,
+            strerror(errno));
+        exit(1);
+      }
+    } else {
+      fprintf(stderr,"Failed to stat %s - %s\n", TEMP_DIR,
+          strerror(errno));
+      exit(1);
+    }
+  } else if (!S_ISDIR(sbuf.st_mode)) {
+    fprintf(stderr,"Error - %s is not a directory!\n",TEMP_DIR);
+    exit(1);
+  }
+
+  if ((dir_fd=open(".",O_RDONLY))<0) {
+    fprintf(stderr,"Failed to open ""."
+        " for reading - %s\n", strerror(errno));
+    exit(1);
+  }
+
+  if (chroot(TEMP_DIR)<0) {
+    fprintf(stderr,"Failed to chroot to %s - %s\n",TEMP_DIR,
+        strerror(errno));
+    exit(1);
+  }
+
+  if (fchdir(dir_fd)<0) {
+    fprintf(stderr,"Failed to fchdir - %s\n",
+        strerror(errno));
+    exit(1);
+  }
+  close(dir_fd);
+  chdir("..");
+  chroot(".");
</font> 
 }
 
<font color='#880000'>-
</font> /*
  *  Main entry point of every filesystem test
  */
<font color='#997700'>@@ -103,5 +102,4 @@
</font> 
   puts( "*** END OF FILE SYSTEM TEST ( " FILESYSTEM " ) ***" );
   rtems_test_exit(0);
<font color='#880000'>-
</font> }

<font color='#006600'>diff -u rtems/testsuites/fstests/support/ramdisk_support.h:1.2 rtems/testsuites/fstests/support/ramdisk_support.h:1.3
--- rtems/testsuites/fstests/support/ramdisk_support.h:1.2      Mon Aug  1 15:54:15 2011
+++ rtems/testsuites/fstests/support/ramdisk_support.h  Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -13,7 +13,7 @@
</font> 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
<font color='#880000'>-#endif<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+#endif
</font> 
 #define  RAMDISK_BLOCK_SIZE  (512)
 #define  RAMDISK_BLOCK_COUNT (1024)

<font color='#006600'>diff -u rtems/testsuites/fstests/support/ramdisk_support.c:1.2 rtems/testsuites/fstests/support/ramdisk_support.c:1.3
--- rtems/testsuites/fstests/support/ramdisk_support.c:1.2      Mon Aug  1 15:54:15 2011
+++ rtems/testsuites/fstests/support/ramdisk_support.c  Tue Aug  2 09:24:59 2011
</font><font color='#997700'>@@ -15,42 +15,43 @@
</font> #include "ramdisk_support.h"
 #include "fstest.h"
 /*
<font color='#880000'>- * Ramdisk information<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * Ramdisk information
</font>  */
 
 dev_t dev = 0;
 
<font color='#880000'>-void init_ramdisk(void)
</font><font color='#000088'>+void
+init_ramdisk (void)
</font> {
 
<font color='#880000'>-  int rc=0;
-  rc =rtems_disk_io_initialize();
-  rtems_test_assert( rc == 0 );
-  rc =ramdisk_register(RAMDISK_BLOCK_SIZE,RAMDISK_BLOCK_COUNT,\
-      false,RAMDISK_PATH,&dev);
-  rtems_test_assert( rc == 0 );
</font><font color='#000088'>+  int rc = 0;
+  rc = rtems_disk_io_initialize ();
+  rtems_test_assert (rc == 0);
+  rc = ramdisk_register (RAMDISK_BLOCK_SIZE, RAMDISK_BLOCK_COUNT,
+                         false, RAMDISK_PATH, &dev);
+  rtems_test_assert (rc == 0);
</font> 
 }
 
<font color='#880000'>-void del_ramdisk(void )
</font><font color='#000088'>+void
+del_ramdisk (void)
</font> {
<font color='#880000'>-  int rc=0;
-  rtems_device_major_number major=0;
-  rtems_device_minor_number minor=0;
-
-  rc=rtems_disk_delete (dev);
-  rtems_test_assert( rc == 0 );
-
-  rtems_filesystem_split_dev_t(dev,major,minor);
-<span style="background-color: #FF0000">  </span>
-  rtems_test_assert(major>=0);
-  rtems_test_assert(minor>=0);
-<span style="background-color: #FF0000"> </span>
-  rc=rtems_io_unregister_driver(major);
-  rtems_test_assert( rc == 0 );
</font> 
<font color='#880000'>-  rc=rtems_disk_io_done();
-  rtems_test_assert( rc == 0 );
</font><font color='#000088'>+  int rc = 0;
+  rtems_device_major_number major = 0;
+  rtems_device_minor_number minor = 0;
+
+  rc = rtems_disk_delete (dev);
+  rtems_test_assert (rc == 0);
+
+  rtems_filesystem_split_dev_t (dev, major, minor);
+
+  rtems_test_assert (major >= 0);
+  rtems_test_assert (minor >= 0);
+
+  rc = rtems_io_unregister_driver (major);
+  rtems_test_assert (rc == 0);
+  rc = rtems_disk_io_done ();
+  rtems_test_assert (rc == 0);
</font> 
 }
<font color='#880000'>-
</font></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>