[GRASS-dev] [GRASS GIS] #1971: 64bit LFS support for G_ftell() and PRI_OFF_T gis.h

GRASS GIS trac at osgeo.org
Fri May 10 18:12:20 PDT 2013


#1971: 64bit LFS support for G_ftell() and PRI_OFF_T gis.h
-------------------------------------------------+--------------------------
 Reporter:  hamish                               |       Owner:  grass-dev@…              
     Type:  defect                               |      Status:  new                      
 Priority:  critical                             |   Milestone:  6.4.3                    
Component:  LibGIS                               |     Version:  svn-develbranch6         
 Keywords:  r.in.bin, LFS, G_ftell(), PRI_OFF_T  |    Platform:  Linux                    
      Cpu:  x86-64                               |  
-------------------------------------------------+--------------------------

Comment(by hamish):

 Replying to [comment:2 glynn]:
 > (didn't LFS have to be enabled on a module-by-module basis in 6.x?).

 not any more:
 {{{
 r40620 | glynn | 2010-01-23 03:19:24 +1300 (Sat, 23 Jan 2010) | 4 lines

 Enable LFS globally
 Define, use HAVE_FSEEKO
 Makefile cleanup
 }}}

 > 7.0 has 31 uses of G_ftell() and 48 uses of G_fseek() [...]. The fact
 > that 6.x only has one use indicate that everything else is using plain
 > ftell(), which means that it will fail on files larger than 2GiB.

 outside of libgis, the module priorities would seem to me to be:
  - r.in.bin
  - r.in.ascii
  - r.in.poly
  - r.in.xyz (although there it's just used for a G_percent() estimate)
  - `r3.in.ascii`
  - r.out.mat
  - v.in.dxf


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1971#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list