change log for rtems (2011-07-21)
rtems-vc at rtems.org
rtems-vc at rtems.org
Thu Jul 21 12:10:29 UTC 2011
*sh*:
2011-07-21 Sebastian Huber <sebastian.huber at embedded-brains.de>
PR 1842/cpukit
* score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
M 1.2883 cpukit/ChangeLog
M 1.5 cpukit/score/include/rtems/score/basedefs.h
diff -u rtems/cpukit/ChangeLog:1.2882 rtems/cpukit/ChangeLog:1.2883
--- rtems/cpukit/ChangeLog:1.2882 Tue Jul 19 13:35:30 2011
+++ rtems/cpukit/ChangeLog Thu Jul 21 07:00:20 2011
@@ -1,3 +1,8 @@
+2011-07-21 Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+ PR 1842/cpukit
+ * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
+
2011-07-19 Joel Sherrill <joel.sherrill at oarcorp.com>
* score/include/rtems/score/chain.h: Fix typo.
diff -u rtems/cpukit/score/include/rtems/score/basedefs.h:1.4 rtems/cpukit/score/include/rtems/score/basedefs.h:1.5
--- rtems/cpukit/score/include/rtems/score/basedefs.h:1.4 Fri Jun 24 12:50:31 2011
+++ rtems/cpukit/score/include/rtems/score/basedefs.h Thu Jul 21 07:00:20 2011
@@ -165,6 +165,9 @@
#define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE
#endif
+#define RTEMS_STATIC_ASSERT(cond, msg) \
+ typedef int rtems_static_assert ## msg [(cond) ? 1 : -1]
+
#ifndef ASM
#ifdef RTEMS_DEPRECATED_TYPES
typedef bool boolean;
*sh*:
2011-07-21 Sebastian Huber <sebastian.huber at embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Added
rtems_filesystem_is_root_location().
* libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_eval.c,
libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c: Use
rtems_filesystem_is_root_location().
M 1.2884 cpukit/ChangeLog
M 1.42 cpukit/libcsupport/include/rtems/libio_.h
M 1.21 cpukit/libfs/src/dosfs/msdos_dir.c
M 1.14 cpukit/libfs/src/dosfs/msdos_eval.c
M 1.29 cpukit/libfs/src/imfs/imfs_directory.c
M 1.34 cpukit/libfs/src/imfs/imfs_eval.c
diff -u rtems/cpukit/ChangeLog:1.2883 rtems/cpukit/ChangeLog:1.2884
--- rtems/cpukit/ChangeLog:1.2883 Thu Jul 21 07:00:20 2011
+++ rtems/cpukit/ChangeLog Thu Jul 21 07:03:25 2011
@@ -1,5 +1,13 @@
2011-07-21 Sebastian Huber <sebastian.huber at embedded-brains.de>
+ * libcsupport/include/rtems/libio_.h: Added
+ rtems_filesystem_is_root_location().
+ * libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_eval.c,
+ libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c: Use
+ rtems_filesystem_is_root_location().
+
+2011-07-21 Sebastian Huber <sebastian.huber at embedded-brains.de>
+
PR 1842/cpukit
* score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
diff -u rtems/cpukit/libcsupport/include/rtems/libio_.h:1.41 rtems/cpukit/libcsupport/include/rtems/libio_.h:1.42
--- rtems/cpukit/libcsupport/include/rtems/libio_.h:1.41 Fri Jun 24 12:52:55 2011
+++ rtems/cpukit/libcsupport/include/rtems/libio_.h Thu Jul 21 07:03:25 2011
@@ -238,6 +238,13 @@
int *index,
rtems_filesystem_location_info_t *loc);
+static inline bool rtems_filesystem_is_root_location(
+ const rtems_filesystem_location_info_t *loc
+)
+{
+ return loc->mt_entry->mt_fs_root.node_access == loc->node_access;
+}
+
#ifdef __cplusplus
}
#endif
diff -u rtems/cpukit/libfs/src/dosfs/msdos_dir.c:1.20 rtems/cpukit/libfs/src/dosfs/msdos_dir.c:1.21
--- rtems/cpukit/libfs/src/dosfs/msdos_dir.c:1.20 Thu Jul 15 03:10:47 2010
+++ rtems/cpukit/libfs/src/dosfs/msdos_dir.c Thu Jul 21 07:03:25 2011
@@ -679,7 +679,7 @@
/*
* You cannot remove the file system root node.
*/
- if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
+ if (rtems_filesystem_is_root_location(pathloc))
{
rtems_semaphore_release(fs_info->vol_sema);
rtems_set_errno_and_return_minus_one(EBUSY);
diff -u rtems/cpukit/libfs/src/dosfs/msdos_eval.c:1.13 rtems/cpukit/libfs/src/dosfs/msdos_eval.c:1.14
--- rtems/cpukit/libfs/src/dosfs/msdos_eval.c:1.13 Sun Jul 4 09:53:46 2010
+++ rtems/cpukit/libfs/src/dosfs/msdos_eval.c Thu Jul 21 07:03:25 2011
@@ -128,8 +128,7 @@
/*
* Am I at the root of this mounted filesystem?
*/
- if (pathloc->node_access ==
- pathloc->mt_entry->mt_fs_root.node_access)
+ if (rtems_filesystem_is_root_location(pathloc))
{
/*
* Am I at the root of all filesystems?
@@ -310,8 +309,7 @@
/*
* Am I at the root of this mounted filesystem?
*/
- if (pathloc->node_access ==
- pathloc->mt_entry->mt_fs_root.node_access)
+ if (rtems_filesystem_is_root_location(pathloc))
{
/*
* Am I at the root of all filesystems?
diff -u rtems/cpukit/libfs/src/imfs/imfs_directory.c:1.28 rtems/cpukit/libfs/src/imfs/imfs_directory.c:1.29
--- rtems/cpukit/libfs/src/imfs/imfs_directory.c:1.28 Thu Nov 25 03:27:05 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_directory.c Thu Jul 21 07:03:25 2011
@@ -300,7 +300,7 @@
* You cannot remove the file system root node.
*/
- if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
+ if ( rtems_filesystem_is_root_location(pathloc) )
rtems_set_errno_and_return_minus_one( EBUSY );
/*
diff -u rtems/cpukit/libfs/src/imfs/imfs_eval.c:1.33 rtems/cpukit/libfs/src/imfs/imfs_eval.c:1.34
--- rtems/cpukit/libfs/src/imfs/imfs_eval.c:1.33 Tue May 10 22:01:54 2011
+++ rtems/cpukit/libfs/src/imfs/imfs_eval.c Thu Jul 21 07:03:26 2011
@@ -346,7 +346,7 @@
* Am I at the root of this mounted filesystem?
*/
- if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
+ if ( rtems_filesystem_is_root_location( pathloc ) ) {
/*
* Am I at the root of all filesystems?
@@ -544,8 +544,7 @@
* Am I at the root of this mounted filesystem?
*/
- if (pathloc->node_access ==
- pathloc->mt_entry->mt_fs_root.node_access) {
+ if ( rtems_filesystem_is_root_location( pathloc ) ) {
/*
* Am I at the root of all filesystems?
--
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/20110721/0510622e/attachment-0001.html>
More information about the vc
mailing list