From 8509784d8000d6791a205626e81b03b3f9bf856b Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Tue, 8 Oct 2019 21:18:54 -0400 Subject: Add implementations of memcmp and memcpy to ulib This is necessary because gcc may generate calls to memcmp, memset, memcpy, and memmove when compiling with -nostdlib. --- user/user.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'user/user.h') diff --git a/user/user.h b/user/user.h index 03af731..b71ecda 100644 --- a/user/user.h +++ b/user/user.h @@ -38,3 +38,5 @@ void* memset(void*, int, uint); void* malloc(uint); void free(void*); int atoi(const char*); +int memcmp(const void *, const void *, uint); +void *memcpy(void *, const void *, uint); -- cgit v1.2.3