[uClibc-cvs] uClibc/libc/sysdeps/linux/common mmap64.c,1.5,1.6

Erik Andersen andersen at uclibc.org
Fri Jun 27 08:22:48 UTC 2003


Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory winder:/tmp/cvs-serv24658/common

Modified Files:
	mmap64.c 
Log Message:
oops.  Fix the name so it is "mmap64", not "__mmap64"


Index: mmap64.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/mmap64.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mmap64.c	27 Jun 2003 08:05:40 -0000	1.5
+++ mmap64.c	27 Jun 2003 08:22:45 -0000	1.6
@@ -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 @@
 #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 @@
 #  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)) {



More information about the uClibc-cvs mailing list