diff options
Diffstat (limited to 'libc/include/sys')
| -rw-r--r-- | libc/include/sys/mman.h | 29 | ||||
| -rw-r--r-- | libc/include/sys/user.h | 1 |
2 files changed, 15 insertions, 15 deletions
diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index 7c5f8d7..5a8c985 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -31,7 +31,6 @@ #include <sys/cdefs.h> #include <sys/types.h> #include <asm/mman.h> -#include <asm/page.h> __BEGIN_DECLS @@ -44,23 +43,23 @@ __BEGIN_DECLS #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 -extern void* mmap(void *, size_t, int, int, int, off_t); -extern void* mmap64(void *, size_t, int, int, int, off64_t); -extern int munmap(void *, size_t); -extern int msync(const void *, size_t, int); -extern int mprotect(const void *, size_t, int); -extern void* mremap(void *, size_t, size_t, unsigned long); +extern void* mmap(void*, size_t, int, int, int, off_t); +extern void* mmap64(void*, size_t, int, int, int, off64_t); +extern int munmap(void*, size_t); +extern int msync(const void*, size_t, int); +extern int mprotect(const void*, size_t, int); +extern void* mremap(void*, size_t, size_t, unsigned long); -extern int mlockall(int); -extern int munlockall(void); -extern int mlock(const void *, size_t); -extern int munlock(const void *, size_t); -extern int madvise(const void *, size_t, int); +extern int mlockall(int); +extern int munlockall(void); +extern int mlock(const void*, size_t); +extern int munlock(const void*, size_t); +extern int madvise(const void*, size_t, int); -extern int mlock(const void *addr, size_t len); -extern int munlock(const void *addr, size_t len); +extern int mlock(const void*, size_t); +extern int munlock(const void*, size_t); -extern int mincore(void* start, size_t length, unsigned char* vec); +extern int mincore(void*, size_t, unsigned char*); __END_DECLS diff --git a/libc/include/sys/user.h b/libc/include/sys/user.h index 90cce80..e16b1a5 100644 --- a/libc/include/sys/user.h +++ b/libc/include/sys/user.h @@ -30,6 +30,7 @@ #define _SYS_USER_H_ #include <sys/cdefs.h> +#include <limits.h> /* For PAGE_SIZE. */ __BEGIN_DECLS |
