bug-gnulib
[Top][All Lists]
Advanced

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

Re: Austin group ruling on ungetc vs. fflush


From: Eric Blake
Subject: Re: Austin group ruling on ungetc vs. fflush
Date: Sat, 17 Jan 2009 06:52:00 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 1/17/2009 6:45 AM:
> If you remove this special-casing, one of the tests in the testsuite fails.
> Namely when the first fseek after fflush attempts to position beyond end of
> file. That's something that lseek() does not support, but we are forced to
> used lseek() in this situation, by POSIX. You can try to undo these two
> hunks and fix the resulting test failure differently...

Huh?  "The lseek() function shall allow the file offset to be set beyond
the end of the existing data in the file.  If data is later written at
this point, subsequent reads of data in the gap shall return bytes with
the value 0 until data is actually written into the gap."
http://www.opengroup.org/onlinepubs/9699919799/functions/lseek.html

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

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklx4oAACgkQ84KuGfSFAYAmqQCdE8JSle+BtsaXGH+nZbdCvSE8
t88AoNQQcetSsOrFOZOAy5YPO3iUoOgA
=U902
-----END PGP SIGNATURE-----




reply via email to

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