Module: xenomai-forge
Branch: next
Commit: 157d3829a3778dbeb0f4469df77df5441e86497c
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=157d3829a3778dbeb0f4469df77df5441e86497c

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep  2 09:57:53 2014 +0200

cobalt/posix: cleanup magic values

---

 kernel/cobalt/posix/internal.h |   26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/kernel/cobalt/posix/internal.h b/kernel/cobalt/posix/internal.h
index 1b95f0f..fff6bd4 100644
--- a/kernel/cobalt/posix/internal.h
+++ b/kernel/cobalt/posix/internal.h
@@ -28,23 +28,17 @@
 #include "process.h"
 #include "extension.h"
 
-#define COBALT_MAXNAME 64
-#define COBALT_PERMS_MASK (O_RDONLY | O_WRONLY | O_RDWR)
+#define COBALT_MAXNAME         64
+#define COBALT_PERMS_MASK      (O_RDONLY | O_WRONLY | O_RDWR)
 
-#define COBALT_MAGIC(n) (0x8686##n##n)
-#define COBALT_ANY_MAGIC         COBALT_MAGIC(00)
-#define COBALT_THREAD_MAGIC      COBALT_MAGIC(01)
-#define COBALT_MUTEX_ATTR_MAGIC  (COBALT_MAGIC(04) & ((1 << 24) - 1))
-#define COBALT_COND_ATTR_MAGIC   (COBALT_MAGIC(06) & ((1 << 24) - 1))
-#define COBALT_KEY_MAGIC         COBALT_MAGIC(08)
-#define COBALT_ONCE_MAGIC        COBALT_MAGIC(09)
-#define COBALT_MQ_MAGIC          COBALT_MAGIC(0A)
-#define COBALT_MQD_MAGIC         COBALT_MAGIC(0B)
-#define COBALT_INTR_MAGIC        COBALT_MAGIC(0C)
-#define COBALT_TIMER_MAGIC       COBALT_MAGIC(0E)
-#define COBALT_EVENT_MAGIC       COBALT_MAGIC(0F)
-#define COBALT_MONITOR_MAGIC     COBALT_MAGIC(10)
-#define COBALT_TIMERFD_MAGIC    COBALT_MAGIC(11)
+#define COBALT_MAGIC(n)                (0x8686##n##n)
+#define COBALT_ANY_MAGIC       COBALT_MAGIC(00)
+#define COBALT_THREAD_MAGIC    COBALT_MAGIC(01)
+#define COBALT_MQ_MAGIC                COBALT_MAGIC(0A)
+#define COBALT_MQD_MAGIC       COBALT_MAGIC(0B)
+#define COBALT_EVENT_MAGIC     COBALT_MAGIC(0F)
+#define COBALT_MONITOR_MAGIC   COBALT_MAGIC(10)
+#define COBALT_TIMERFD_MAGIC   COBALT_MAGIC(11)
 
 #define cobalt_obj_active(h,m,t)       \
        ((h) && ((t *)(h))->magic == (m))


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to