OLD | NEW |
1 #include <unistd.h> | 1 #include <unistd.h> |
2 #include <sys/mman.h> | 2 #include <sys/mman.h> |
3 #include <errno.h> | 3 #include <errno.h> |
4 #include <stdint.h> | 4 #include <stdint.h> |
5 #include <limits.h> | 5 #include <limits.h> |
6 #include "syscall.h" | 6 #include "syscall.h" |
7 #include "libc.h" | 7 #include "libc.h" |
8 | 8 |
9 static void dummy(void) { } | 9 static void dummy(void) { } |
10 weak_alias(dummy, __vm_wait); | 10 weak_alias(dummy, __vm_wait); |
(...skipping 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 #ifdef SYS_mmap2 | 28 #ifdef SYS_mmap2 |
29 return (void *)syscall(SYS_mmap2, start, len, prot, flags, fd, off/UNIT)
; | 29 return (void *)syscall(SYS_mmap2, start, len, prot, flags, fd, off/UNIT)
; |
30 #else | 30 #else |
31 return (void *)syscall(SYS_mmap, start, len, prot, flags, fd, off); | 31 return (void *)syscall(SYS_mmap, start, len, prot, flags, fd, off); |
32 #endif | 32 #endif |
33 } | 33 } |
34 | 34 |
35 weak_alias(__mmap, mmap); | 35 weak_alias(__mmap, mmap); |
36 | 36 |
37 LFS64(mmap); | 37 weak_alias(__mmap, mmap64); |
OLD | NEW |