diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/include/libufdt_sysdeps.h | 2 | ||||
-rw-r--r-- | sysdeps/libufdt_sysdeps_posix.c | 4 | ||||
-rw-r--r-- | sysdeps/libufdt_sysdeps_vendor.c | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/include/libufdt_sysdeps.h b/sysdeps/include/libufdt_sysdeps.h index c2682c7..fb5584f 100644 --- a/sysdeps/include/libufdt_sysdeps.h +++ b/sysdeps/include/libufdt_sysdeps.h @@ -48,6 +48,8 @@ unsigned long int dto_strtoul(const char *nptr, char **endptr, int base); size_t dto_strlen(const char *s); +int dto_memcmp(const void *lhs, const void *rhs, size_t n); + void *dto_memcpy(void *dest, const void *src, size_t n); int dto_strcmp(const char *s1, const char *s2); diff --git a/sysdeps/libufdt_sysdeps_posix.c b/sysdeps/libufdt_sysdeps_posix.c index c8a08f6..d7a198f 100644 --- a/sysdeps/libufdt_sysdeps_posix.c +++ b/sysdeps/libufdt_sysdeps_posix.c @@ -36,6 +36,10 @@ unsigned long int dto_strtoul(const char *nptr, char **endptr, int base) { size_t dto_strlen(const char *s) { return strlen(s); } +int dto_memcmp(const void *lhs, const void *rhs, size_t n) { + return memcmp(lhs, rhs, n); +} + void *dto_memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } diff --git a/sysdeps/libufdt_sysdeps_vendor.c b/sysdeps/libufdt_sysdeps_vendor.c index e21a2e1..12e7695 100644 --- a/sysdeps/libufdt_sysdeps_vendor.c +++ b/sysdeps/libufdt_sysdeps_vendor.c @@ -194,6 +194,10 @@ unsigned long int dto_strtoul(const char *nptr, char **endptr, int base) { size_t dto_strlen(const char *s) { return strlen(s); } +int dto_memcmp(const void *lhs, const void *rhs, size_t n) { + return memcmp(lhs, rhs, n); +} + void *dto_memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } |