Module: xenomai-forge
Branch: master
Commit: 0c0b8aed35a87d3f58ef6f8dd882d9f0522b1670
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0c0b8aed35a87d3f58ef6f8dd882d9f0522b1670

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Dec  4 17:55:35 2012 +0100

cobalt/blackfin: introduce dummy placeholders for shm calls

Stock uClibc does not provide shm_open/unlink services. Wrap them to
nop calls.

---

 include/asm-blackfin/syscall.h |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/include/asm-blackfin/syscall.h b/include/asm-blackfin/syscall.h
index 795234b..6158374 100644
--- a/include/asm-blackfin/syscall.h
+++ b/include/asm-blackfin/syscall.h
@@ -152,6 +152,21 @@ static inline unsigned long long __xn_rdtsc (void)
     return u.t;
 }
 
-#endif /* __KERNEL__ */
+int shm_open(const char *name, int oflag, mode_t mode);
+inline __attribute__((weak))
+int shm_open(const char *name, int oflag, mode_t mode)
+{
+       errno = ENOSYS;
+       return -1;
+}
+
+int shm_unlink(const char *name);
+inline __attribute__((weak)) int shm_unlink(const char *name)
+{
+       errno = ENOSYS;
+       return -1;
+}
+
+#endif /* !__KERNEL__ */
 
 #endif /* !_XENO_ASM_BLACKFIN_SYSCALL_H */


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

Reply via email to