change log for rtems (2010-06-07)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Jun 7 15:10:43 UTC 2010


 *jennifer*:
2010-06-05	Bharath Suri <bharath.s.jois at 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/

M 1.2348  cpukit/ChangeLog
M  1.119  cpukit/libcsupport/Makefile.am
M   1.35  cpukit/libcsupport/include/rtems/libio_.h

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
@@ -1,3 +1,19 @@
+2010-06-07	Bharath Suri <bharath.s.jois at 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/
+
 2010-06-07	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* score/include/rtems/score/heap.h: Declare

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
@@ -110,6 +110,8 @@
 
 libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
     src/printk_plugin.c src/putk.c src/vprintk.c \
+    src/sup_fs_is_separator.c src/sup_fs_get_start_loc.c \
+    src/sup_fs_get_sym_start_loc.c \
     $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
     $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
 

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
@@ -1,4 +1,4 @@
-/**
+/*
  * @file rtems/libio_.h
  */
 
@@ -90,7 +90,7 @@
 
 #define rtems_libio_check_fd(_fd) \
   do {                                                     \
-      if ((uint32_t) (_fd) >= rtems_libio_number_iops) { \
+      if ((uint32_t) (_fd) >= rtems_libio_number_iops) {   \
           errno = EBADF;                                   \
           return -1;                                       \
       }                                                    \
@@ -129,12 +129,12 @@
  *  Macro to check if a file descriptor is open for this operation.
  */
 
-#define rtems_libio_check_permissions(_iop, _flag)    \
-  do {                                                \
-      if (((_iop)->flags & (_flag)) == 0) {           \
+#define rtems_libio_check_permissions(_iop, _flag)          \
+  do {                                                      \
+      if (((_iop)->flags & (_flag)) == 0) {                 \
             rtems_set_errno_and_return_minus_one( EINVAL ); \
-            return -1;                                \
-      }                                               \
+            return -1;                                      \
+      }                                                     \
   } while (0)
 
 /*
@@ -150,44 +150,6 @@
         (*(_node)->ops->freenod_h)( (_node) ); \
   } while (0)
 
-/*
- *  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)
-
 
 /*
  *  External structures
@@ -271,6 +233,18 @@
 
 void rtems_filesystem_initialize(void);
 
+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);
+
 #ifdef __cplusplus
 }
 #endif


 *jennifer*:
2010-06-07	Bharath Suri <bharath.s.jois at 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/

A    1.1  cpukit/libcsupport/src/sup_fs_get_start_loc.c
A    1.1  cpukit/libcsupport/src/sup_fs_get_sym_start_loc.c
A    1.1  cpukit/libcsupport/src/sup_fs_is_separator.c

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
@@ -0,0 +1,48 @@
+ /**
+ * @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;
+  }
+}

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
@@ -0,0 +1,47 @@
+ /**
+ * @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"
+  
+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;
+    }
+}

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
@@ -0,0 +1,30 @@
+/**
+ * @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'));
+}



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100607/61f59544/attachment-0001.html>


More information about the vc mailing list