diff options
author | Sanjit Bhat <[email protected]> | 2023-11-02 10:26:45 -0400 |
---|---|---|
committer | Sanjit Bhat <[email protected]> | 2023-11-02 10:26:45 -0400 |
commit | 03e8bd76560d4a1883ef15846df0e52748d61bdf (patch) | |
tree | 7cb19d672264cd8027c115f0b8b16e09e62432e8 /user | |
parent | 4dc51124c8a8e3f1914add43bf1376663eb9a9b8 (diff) | |
download | xv6-labs-03e8bd76560d4a1883ef15846df0e52748d61bdf.tar.gz xv6-labs-03e8bd76560d4a1883ef15846df0e52748d61bdf.tar.bz2 xv6-labs-03e8bd76560d4a1883ef15846df0e52748d61bdf.zip |
mmap: add in off_t size_t defs
Diffstat (limited to 'user')
-rw-r--r-- | user/user.h | 13 |
1 files changed, 13 insertions, 0 deletions
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); |