From: Peng Fan <[email protected]> Move string function prototypes to string.h
Signed-off-by: Peng Fan <[email protected]> --- inmates/lib/include/inmate_common.h | 9 +-------- inmates/lib/include/string.h | 8 ++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/inmates/lib/include/inmate_common.h b/inmates/lib/include/inmate_common.h index 5af1213a..752e20b5 100644 --- a/inmates/lib/include/inmate_common.h +++ b/inmates/lib/include/inmate_common.h @@ -87,6 +87,7 @@ typedef u64 __u64; typedef enum { true = 1, false = 0 } bool; #include <jailhouse/hypercall.h> +#include <string.h> #define comm_region ((struct jailhouse_comm_region *)COMM_REGION_BASE) @@ -104,14 +105,6 @@ extern unsigned long heap_pos; void *alloc(unsigned long size, unsigned long align); -void *memset(void *s, int c, unsigned long n); -void *memcpy(void *d, const void *s, unsigned long n); -int memcmp(const void *s1, const void *s2, unsigned long n); -unsigned long strlen(const char *s); -int strncmp(const char *s1, const char *s2, unsigned long n); -int strcmp(const char *s1, const char *s2); -int strncasecmp(const char *s1, const char *s2, unsigned long n); - const char *cmdline_parse_str(const char *param, char *value_buffer, unsigned long buffer_size, const char *default_value); diff --git a/inmates/lib/include/string.h b/inmates/lib/include/string.h index 29f5e2db..34108645 100644 --- a/inmates/lib/include/string.h +++ b/inmates/lib/include/string.h @@ -38,3 +38,11 @@ #define __stringify_1(x...) #x #define __stringify(x...) __stringify_1(x) + +void *memset(void *s, int c, unsigned long n); +void *memcpy(void *d, const void *s, unsigned long n); +int memcmp(const void *s1, const void *s2, unsigned long n); +unsigned long strlen(const char *s); +int strncmp(const char *s1, const char *s2, unsigned long n); +int strcmp(const char *s1, const char *s2); +int strncasecmp(const char *s1, const char *s2, unsigned long n); -- 2.16.4 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/20200807030632.28259-4-peng.fan%40nxp.com.
