summaryrefslogtreecommitdiff
path: root/user/user.h
diff options
context:
space:
mode:
authorAnish Athalye <[email protected]>2019-10-08 21:18:54 -0400
committerAnish Athalye <[email protected]>2019-10-08 21:18:54 -0400
commit8509784d8000d6791a205626e81b03b3f9bf856b (patch)
tree913f2b02614954284d94a645746a19224fc3200d /user/user.h
parenta52d296814d869f16ced4fb68246223b4a64fa38 (diff)
downloadxv6-labs-8509784d8000d6791a205626e81b03b3f9bf856b.tar.gz
xv6-labs-8509784d8000d6791a205626e81b03b3f9bf856b.tar.bz2
xv6-labs-8509784d8000d6791a205626e81b03b3f9bf856b.zip
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.
Diffstat (limited to 'user/user.h')
-rw-r--r--user/user.h2
1 files changed, 2 insertions, 0 deletions
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);