[GRASS-dev] fseeko() in libiostream

Glynn Clements glynn at gclements.plus.com
Tue Oct 7 18:56:54 EDT 2008


Paul Kelly wrote:

> +#ifdef HAVE_LARGEFILES
> +       filesize = ftello(in_fp);
> +#else
>          filesize = ftell(in_fp);
> +#endif

Can we add library functions, G_fseek() and G_ftell(), which use an
off_t. The functions would use fseeko/ftello if available, fseek/ftell
otherwise, but would always accept and return off_t.

IMHO, this is preferable to having to add explicit LFS to individual
modules.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list