summaryrefslogtreecommitdiffstats
path: root/src/include/strings.h
diff options
context:
space:
mode:
authorMichael Brown2007-01-19 01:51:13 +0100
committerMichael Brown2007-01-19 01:51:13 +0100
commit1a0ca661c2c717cd479c40ec8d8407256a5850d0 (patch)
tree59d49c8b2defe9c1d4938d7aec75778fb205486f /src/include/strings.h
parentTypo (diff)
downloadipxe-1a0ca661c2c717cd479c40ec8d8407256a5850d0.tar.gz
ipxe-1a0ca661c2c717cd479c40ec8d8407256a5850d0.tar.xz
ipxe-1a0ca661c2c717cd479c40ec8d8407256a5850d0.zip
4.3BSD says that bcopy and bzero are defined in strings.h, not string.h
Diffstat (limited to 'src/include/strings.h')
-rw-r--r--src/include/strings.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/strings.h b/src/include/strings.h
index 36a0f333..a087b1d5 100644
--- a/src/include/strings.h
+++ b/src/include/strings.h
@@ -2,6 +2,7 @@
#define _STRINGS_H
#include <limits.h>
+#include <string.h>
static inline __attribute__ (( always_inline )) int
__constant_flsl ( unsigned long x ) {
@@ -53,4 +54,14 @@ extern int __flsl ( long x );
extern int strcasecmp ( const char *s1, const char *s2 );
+static inline __attribute__ (( always_inline )) void
+bcopy ( const void *src, void *dest, size_t n ) {
+ memmove ( dest, src, n );
+}
+
+static inline __attribute__ (( always_inline )) void
+bzero ( void *s, size_t n ) {
+ memset ( s, 0, n );
+}
+
#endif /* _STRINGS_H */