The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 10-10-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,770
You have a largefiles problem. Base stat has a size_t st.size element. It can handle up to the max un unsigned loing value can store.

If the output of this:
Code:
getconf ULONG_MAX
is less than the size of the file then that is your problem. You will have to do some reading on large files for your system - there may be a stat64 or fstat64 call which will handle the issue. What OS?