summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-27 07:58:44 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:44:31 +0100
commit8e009cddfe8d7a47d5b638a725adcc9b2a9bc3e1 (patch)
treeb1fc8cd9354d062ae596128207028a6e1bc30813
parentUpdate due to IMFS generic API changes (diff)
downloadrtems-libbsd-8e009cddfe8d7a47d5b638a725adcc9b2a9bc3e1.tar.bz2
Map bcopy() and bzero() via macros
-rw-r--r--freebsd/sys/sys/systm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index 27f51973..44d2208f 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -248,8 +248,13 @@ void hexdump(const void *ptr, int length, const char *hdr, int flags);
#define HD_OMIT_CHARS (1 << 18)
#define ovbcopy(f, t, l) bcopy((f), (t), (l))
+#ifndef __rtems__
void bcopy(const void *from, void *to, size_t len) __nonnull(1) __nonnull(2);
void bzero(void *buf, size_t len) __nonnull(1);
+#else /* __rtems__ */
+#define bcopy(src, dst, len) memmove((dst), (src), (len))
+#define bzero(buf, size) memset((buf), 0, (size))
+#endif /* __rtems__ */
void *memcpy(void *to, const void *from, size_t len) __nonnull(1) __nonnull(2);
void *memmove(void *dest, const void *src, size_t n) __nonnull(1) __nonnull(2);