bug-gnulib
[Top][All Lists]
Advanced

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

Re: closein, freadahead and ungetc


From: Eric Blake
Subject: Re: closein, freadahead and ungetc
Date: Thu, 06 Mar 2008 22:59:44 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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

According to Bruno Haible on 3/6/2008 2:41 PM:
| However, I would prefer API changes as follows:
|   - freadahead keeps its signature but returns the total buffered bytes
count.
|   - freadptr is changed to also return the size of the buffer.
|       extern const char * freadptr (FILE *stream, size_t *sizep);
|     When the return value is non-NULL, *sizep is set to the size of the
|     buffer whose address is the return value.

Sounds fine to me.  In particular, it means that freadptr is now usable
without any dependency on freadahead.

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

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

iD8DBQFH0NnQ84KuGfSFAYARAm2PAJ9JrTZ4/32rVlHU5IY3uN+kzYODKACgyJBp
uqyNUHEMTi5Z0/3blQ9ebbk=
=oWq4
-----END PGP SIGNATURE-----




reply via email to

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