[Top][All Lists]
[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
signature.asc
Description: OpenPGP digital signature
- Re: operations on FILE streams, (continued)
- Re: operations on FILE streams, Paul Eggert, 2007/04/13
- Re: operations on FILE streams, Bruno Haible, 2007/04/13
- Re: 'fflush' test failure on Cygwin, Eric Blake, 2007/04/16
- Re: 'fflush' test failure on Cygwin, Bruno Haible, 2007/04/23
- Re: 'fflush' test failure on Cygwin, Eric Blake, 2007/04/23
- new module 'fseeko', Bruno Haible, 2007/04/25
- Re: new module 'fseeko',
Eric Blake <=
- Re: new module 'fseeko', Bruno Haible, 2007/04/26
- Re: new module 'fseeko', Bruno Haible, 2007/04/28
- Re: new module 'fseeko', Paul Eggert, 2007/04/25
- Re: new module 'fseeko', Bruno Haible, 2007/04/26
- new module 'ftello', Bruno Haible, 2007/04/25
- Re: 'fflush' test failure on Cygwin, Bruno Haible, 2007/04/25
- Re: 'fflush' test failure on Cygwin, Eric Blake, 2007/04/25
- Re: 'fflush' test failure on Cygwin, Bruno Haible, 2007/04/26
- Re: 'fflush' test failure on Cygwin, Eric Blake, 2007/04/26
- Re: 'fflush' test failure on Cygwin, Bruno Haible, 2007/04/25