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

GRASS GIS trac at osgeo.org
Sat May 11 02:24:08 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 glynn):

 Replying to [comment:4 hamish]:
 > fwiw my glibc docs show vanilla fseek() returning int, it's ftell() that
 returns long:

 Right. ftell() returns an offset, fseek() accepts one (and returns a
 status). The G_* versions should use at least a long for offsets.

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



More information about the grass-dev mailing list