[Bug 3853] New: MIPS mmap can not access over 4G file

bugzilla at busybox.net bugzilla at busybox.net
Tue Jun 14 04:43:46 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3853

           Summary: MIPS mmap can not access over 4G file
           Product: uClibc
           Version: <= 0.9.29.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at uclibc.org
        ReportedBy: highfly22 at gmail.com
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0


mmap use 32bit offset to access files. So over 4G file will not be accessed.
in libc/sysdeps/linux/mips/mmap.c, there is a code to disable mmap2.
It seems uclibc mips porting is incompleted.

#if 0
/* For now, leave mmap using mmap1 since mmap2 seems
 * to have issues (i.e. it doesn't work 100% properly).
 */
#ifdef __NR_mmap2
# undef __NR_mmap
# define __NR_mmap __NR_mmap2
#endif
#endif

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list