From 03e8bd76560d4a1883ef15846df0e52748d61bdf Mon Sep 17 00:00:00 2001 From: Sanjit Bhat Date: Thu, 2 Nov 2023 10:26:45 -0400 Subject: mmap: add in off_t size_t defs --- user/user.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'user') diff --git a/user/user.h b/user/user.h index 4d398d5..c6f51b7 100644 --- a/user/user.h +++ b/user/user.h @@ -1,3 +1,7 @@ +#ifdef LAB_MMAP +typedef unsigned long size_t; +typedef long int off_t; +#endif struct stat; // system calls @@ -22,6 +26,14 @@ int getpid(void); char* sbrk(int); int sleep(int); int uptime(void); +#ifdef LAB_NET +int connect(uint32, uint16, uint16); +#endif +#ifdef LAB_PGTBL +int pgaccess(void *base, int len, void *mask); +// usyscall region +int ugetpid(void); +#endif // ulib.c int stat(const char*, struct stat*); @@ -39,3 +51,4 @@ void free(void*); int atoi(const char*); int memcmp(const void *, const void *, uint); void *memcpy(void *, const void *, uint); +int statistics(void*, int); -- cgit v1.2.3