<!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-06-07)</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>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-05 Bharath Suri <bharath.s.jois@gmail.com>

        * libcsupport/include/rtems/libio_.h: Removed macros
        rtems_filesystem_is_separator
        rtems_filesystem_get_start_loc
        rtems_filesystem_get_sym_start_loc
        and added them as files under libcsupport/src/

        * libcsupport/src/: Added new files
        libcsupport/src/sup_fs_get_start_loc.c
        libcsupport/src/sup_fs_get_sym_start_loc.c
        libcsupport/src/sup_fs_is_separator.c

        * libcsupport/Makefile.am: Changes to accommodate new
        files under libcsupport/src/
</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.2347&r2=text&tr2=1.2348&diff_format=h">M</a></td><td width='1%'>1.2348</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/Makefile.am.diff?r1=text&tr1=1.118&r2=text&tr2=1.119&diff_format=h">M</a></td><td width='1%'>1.119</td><td width='100%'>cpukit/libcsupport/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/rtems/libio_.h.diff?r1=text&tr1=1.34&r2=text&tr2=1.35&diff_format=h">M</a></td><td width='1%'>1.35</td><td width='100%'>cpukit/libcsupport/include/rtems/libio_.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2347 rtems/cpukit/ChangeLog:1.2348
--- rtems/cpukit/ChangeLog:1.2347       Mon Jun  7 04:35:00 2010
+++ rtems/cpukit/ChangeLog      Mon Jun  7 09:57:30 2010
</font><font color='#997700'>@@ -1,3 +1,19 @@
</font><font color='#000088'>+2010-06-07    Bharath Suri <bharath.s.jois@gmail.com>
+
+       * libcsupport/include/rtems/libio_.h: Removed macros
+       rtems_filesystem_is_separator
+       rtems_filesystem_get_start_loc
+       rtems_filesystem_get_sym_start_loc
+       and added them as files under libcsupport/src/
+
+       * libcsupport/src/: Added new files
+       libcsupport/src/sup_fs_get_start_loc.c
+       libcsupport/src/sup_fs_get_sym_start_loc.c
+       libcsupport/src/sup_fs_is_separator.c
+
+       * libcsupport/Makefile.am: Changes to accommodate new
+       files under libcsupport/src/
+
</font> 2010-06-07        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * score/include/rtems/score/heap.h: Declare

<font color='#006600'>diff -u rtems/cpukit/libcsupport/Makefile.am:1.118 rtems/cpukit/libcsupport/Makefile.am:1.119
--- rtems/cpukit/libcsupport/Makefile.am:1.118  Mon May 31 08:56:36 2010
+++ rtems/cpukit/libcsupport/Makefile.am        Mon Jun  7 09:57:31 2010
</font><font color='#997700'>@@ -110,6 +110,8 @@
</font> 
 libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
     src/printk_plugin.c src/putk.c src/vprintk.c \
<font color='#000088'>+    src/sup_fs_is_separator.c src/sup_fs_get_start_loc.c \
+    src/sup_fs_get_sym_start_loc.c \
</font>     $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
     $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
 

<font color='#006600'>diff -u rtems/cpukit/libcsupport/include/rtems/libio_.h:1.34 rtems/cpukit/libcsupport/include/rtems/libio_.h:1.35
--- rtems/cpukit/libcsupport/include/rtems/libio_.h:1.34        Mon May 31 08:56:36 2010
+++ rtems/cpukit/libcsupport/include/rtems/libio_.h     Mon Jun  7 09:57:31 2010
</font><font color='#997700'>@@ -1,4 +1,4 @@
</font><font color='#880000'>-/**
</font><font color='#000088'>+/*
</font>  * @file rtems/libio_.h
  */
 
<font color='#997700'>@@ -90,7 +90,7 @@
</font> 
 #define rtems_libio_check_fd(_fd) \
   do {                                                     \
<font color='#880000'>-      if ((uint32_t) (_fd) >= rtems_libio_number_iops) { \
</font><font color='#000088'>+      if ((uint32_t) (_fd) >= rtems_libio_number_iops) {   \
</font>           errno = EBADF;                                   \
           return -1;                                       \
       }                                                    \
<font color='#997700'>@@ -129,12 +129,12 @@
</font>  *  Macro to check if a file descriptor is open for this operation.
  */
 
<font color='#880000'>-#define rtems_libio_check_permissions(_iop, _flag)    \
-  do {                                                \
-      if (((_iop)->flags & (_flag)) == 0) {           \
</font><font color='#000088'>+#define rtems_libio_check_permissions(_iop, _flag)          \
+  do {                                                      \
+      if (((_iop)->flags & (_flag)) == 0) {                 \
</font>             rtems_set_errno_and_return_minus_one( EINVAL ); \
<font color='#880000'>-            return -1;                                \
-      }                                               \
</font><font color='#000088'>+            return -1;                                      \
+      }                                                     \
</font>   } while (0)
 
 /*
<font color='#997700'>@@ -150,44 +150,6 @@
</font>         (*(_node)->ops->freenod_h)( (_node) ); \
   } while (0)
 
<font color='#880000'>-/*
- *  rtems_filesystem_is_separator
- *
- *  Macro to determine if a character is a path name separator.
- *
- *  NOTE:  This macro handles MS-DOS and UNIX style names.
- */
-
-#define rtems_filesystem_is_separator( _ch ) \
-   ( ((_ch) == '/') || ((_ch) == '\\') || ((_ch) == '\0'))
-
-/*
- *  rtems_filesystem_get_start_loc
- *
- *  Macro to determine if path is absolute or relative.
- */
-
-#define rtems_filesystem_get_start_loc( _path, _index, _loc )  \
-  do {                                                         \
-    if ( rtems_filesystem_is_separator( (_path)[ 0 ] ) ) {     \
-      *(_loc) = rtems_filesystem_root;                         \
-      *(_index) = 1;                                           \
-    } else {                                                   \
-      *(_loc) = rtems_filesystem_current;                      \
-      *(_index) = 0;                                           \
-    }                                                          \
-  } while (0)
-
-#define rtems_filesystem_get_sym_start_loc( _path, _index, _loc )  \
-  do {                                                         \
-    if ( rtems_filesystem_is_separator( (_path)[ 0 ] ) ) {     \
-      *(_loc) = rtems_filesystem_root;                         \
-      *(_index) = 1;                                           \
-    } else {                                                   \
-      *(_index) = 0;                                           \
-    }                                                          \
-  } while (0)
-
</font> 
 /*
  *  External structures
<font color='#997700'>@@ -271,6 +233,18 @@
</font> 
 void rtems_filesystem_initialize(void);
 
<font color='#000088'>+int init_fs_mount_table(void);
+
+int rtems_filesystem_is_separator(char ch);
+
+void rtems_filesystem_get_start_loc(const char *path,
+                                   int *index,
+                                   rtems_filesystem_location_info_t *loc);
+
+void rtems_filesystem_get_sym_start_loc(const char *path,
+                                       int *index,
+                                       rtems_filesystem_location_info_t *loc);
+
</font> #ifdef __cplusplus
 }
 #endif
</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>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-07 Bharath Suri <bharath.s.jois@gmail.com>

        * libcsupport/include/rtems/libio_.h: Removed macros
        rtems_filesystem_is_separator
        rtems_filesystem_get_start_loc
        rtems_filesystem_get_sym_start_loc
        and added them as files under libcsupport/src/

        * libcsupport/src/: Added new files
        libcsupport/src/sup_fs_get_start_loc.c
        libcsupport/src/sup_fs_get_sym_start_loc.c
        libcsupport/src/sup_fs_is_separator.c

        * libcsupport/Makefile.am: Changes to accommodate new
        files under libcsupport/src/
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/sup_fs_get_start_loc.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">cpukit/libcsupport/src/sup_fs_get_start_loc.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/sup_fs_get_sym_start_loc.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">cpukit/libcsupport/src/sup_fs_get_sym_start_loc.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/sup_fs_is_separator.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">cpukit/libcsupport/src/sup_fs_is_separator.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libcsupport/src/sup_fs_get_start_loc.c:1.1
--- /dev/null   Mon Jun  7 10:10:43 2010
+++ rtems/cpukit/libcsupport/src/sup_fs_get_start_loc.c Mon Jun  7 10:07:39 2010
</font><font color='#997700'>@@ -0,0 +1,48 @@
</font><font color='#000088'>+ /**
+ * @file src/sup_fs_get_start_loc.c
+ */
+
+/*
+ *
+ *  COPYRIGHT (c) 1989-1999.
+ *  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$
+ */
+
+/*
+ *  rtems_filesystem_get_start_loc
+ *
+ *  Function to determine if path is absolute or relative
+ *
+ *  Parameters:
+ *
+ *  path : IN  - path to be checked
+ *  index: OUT - 0, if relative, 1 if absolute
+ *  loc  : OUT - location info of root fs if absolute
+ *               location info of current fs if relative
+ *
+ *  Returns: void
+ */
+
+/* Includes */
+
+#include "rtems/libio_.h"
+
+void rtems_filesystem_get_start_loc(const char *path,
+                                   int *index,
+                                   rtems_filesystem_location_info_t *loc)
+{
+  if (rtems_filesystem_is_separator(path[0])) {
+    *loc = rtems_filesystem_root;
+    *index = 1;
+  }
+  else {
+    *loc = rtems_filesystem_current;
+    *index = 0;
+  }
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libcsupport/src/sup_fs_get_sym_start_loc.c:1.1
--- /dev/null   Mon Jun  7 10:10:43 2010
+++ rtems/cpukit/libcsupport/src/sup_fs_get_sym_start_loc.c     Mon Jun  7 10:07:39 2010
</font><font color='#997700'>@@ -0,0 +1,47 @@
</font><font color='#000088'>+ /**
+ * @file src/sup_fs_get_sym_start_loc.c
+ */
+
+/*
+ *
+ *  COPYRIGHT (c) 1989-1999.
+ *  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$
+ */
+
+/*
+ *  rtems_filesystem_get_sym_start_loc
+ *
+ *  Function to determine if path is absolute or relative
+ *
+ *  Parameters:
+ *
+ *  path : IN  - path to be checked
+ *  index: OUT - 0, if relative, 1 if absolute
+ *  loc  : OUT - location info of root fs if absolute
+ *               location info of current fs if relative
+ *
+ *  Returns: void
+ */
+
+/* Includes */
+
+#include "rtems/libio_.h"
+<span style="background-color: #FF0000">  </span>
+void rtems_filesystem_get_sym_start_loc(const char *path,
+                                       int *index,
+                                       rtems_filesystem_location_info_t *loc)
+{
+  if (rtems_filesystem_is_separator(path[0])) {
+      *loc = rtems_filesystem_root;
+      *index = 1;
+    }
+    else {
+      *index = 0;
+    }
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/cpukit/libcsupport/src/sup_fs_is_separator.c:1.1
--- /dev/null   Mon Jun  7 10:10:43 2010
+++ rtems/cpukit/libcsupport/src/sup_fs_is_separator.c  Mon Jun  7 10:07:39 2010
</font><font color='#997700'>@@ -0,0 +1,30 @@
</font><font color='#000088'>+/**
+ * @file src/sup_fs_is_separator.c
+ */
+
+/*
+ *
+ *  COPYRIGHT (c) 1989-1999.
+ *  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$
+ */
+
+
+/*
+ *  rtems_filesystem_is_separator
+ *
+ *  Function to determine if a character is a path name separator.
+ *  This was originally a macro in libio_.h
+ *
+ *  NOTE:  This function handles MS-DOS and UNIX style names.
+ */
+
+int rtems_filesystem_is_separator(char ch)
+{
+  return ((ch == '/') || (ch == '\\') || (ch == '\0'));
+}
</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>