bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'fseeko'


From: Eric Blake
Subject: Re: new module 'fseeko'
Date: Wed, 25 Apr 2007 06:13:43 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666

According to Bruno Haible on 4/25/2007 1:39 AM:
> 
> Btw, what is AC_FUNC_FSEEKO good for?

AC_FUNC_FSEEKO turns on large file support, if necessary.

> 2007-04-25  Bruno Haible  <address@hidden>
> 
>       * modules/fseeko: New file.
...
> + #if @GNULIB_FSEEKO@
> + # if address@hidden@
> + /* Assume 'off_t' is the same type as 'long'.  */
> + #  define fseeko fseek
> + # endif

Is that assumption safe, or should we also find the size of long and off_t
to verify that situation?

> + #else
> + # undef fseeko
> + # define fseeko(f,o,w) \
> +    (GL_LINK_WARNING ("fseeko is unportable - " \
> +                      "use gnulib module fseeko for portability"), \
> +     fseeko (f, o, w))
> + #endif

Should we also add a link warning for programs that use fseek/ftell
instead of fseeko/ftello, telling the user they are potentially
artificially limited by not using off_t?

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]