Red Hat Bugzilla – Bug 138345
problem with LARGFILE in ia32el
Last modified: 2007-11-30 17:07:14 EST
Description of problem:
The file-offset field of the mmap() system call is being truncated to
32-bits, even in programs that are compiled with all the LARGEFILE
Version-Release number of selected component (if applicable):
Steps to Reproduce:
build the attached testcase on IA-32 machine and run it on IPF
machine with ia32el enabled.
the actual output is "Start-of-file".
the expected output should be "Four-GBytes!!".
Created attachment 106278 [details]
testcase to demonstrate the problem of mappinga LARGFILE
Created attachment 106279 [details]
fixes the problem with mmap'ing large files
same problem with ia32el that goes with EL3 U4
Should be fixed in ia32el-1.1-9 (RHEL4) and ia32el-1.1-8.EL3 (RHEL3 U4).
Fix confirmed on RHEL4 with ia32el-1.1-9.