summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/mmap64.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-27 08:22:45 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-27 08:22:45 +0000
commit690f8b5a1e1a2e509acc17dea2187ff87a849fdb (patch)
treea5b153c348afafebf26f7e84f931ed7b8e5556bc /libc/sysdeps/linux/common/mmap64.c
parent0849bd1b703c3edf13461badd638ef0b81fa3efe (diff)
oops. Fix the name so it is "mmap64", not "__mmap64"
Diffstat (limited to 'libc/sysdeps/linux/common/mmap64.c')
-rw-r--r--libc/sysdeps/linux/common/mmap64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/mmap64.c b/libc/sysdeps/linux/common/mmap64.c
index 1f1b8dc9a..308a328bd 100644
--- a/libc/sysdeps/linux/common/mmap64.c
+++ b/libc/sysdeps/linux/common/mmap64.c
@@ -19,6 +19,7 @@
/* Massivly hacked up for uClibc by Erik Andersen */
+#include <features.h>
#include <errno.h>
#include <unistd.h>
#include <sysdep.h>
@@ -65,7 +66,7 @@ __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t
#else
#define __NR___syscall_mmap2 __NR_mmap2
-static inline _syscall6(void *, __syscall_mmap2, void *, addr,
+static inline _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr,
size_t len, int, prot, int, flags, int, fd, off_t, offset);
/* This is always 12, even on architectures where PAGE_SHIFT != 12. */
@@ -73,7 +74,7 @@ static inline _syscall6(void *, __syscall_mmap2, void *, addr,
# define MMAP2_PAGE_SHIFT 12
# endif
-void * __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
+__ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset)
{
void *result;
if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)) {