Increase BUFSIZ to 8192
Garrett Cooper
yaneurabeya at gmail.com
Thu May 14 09:23:38 UTC 2015
On May 14, 2015, at 1:06, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> --------
> In message <20150514075316.GY37063 at funkthat.com>, John-Mark Gurney writes:
>> Poul-Henning Kamp wrote this message on Thu, May 14, 2015 at 07:42 +0000:
>>> --------
>>> In message <20150514072155.GT37063 at funkthat.com>, John-Mark Gurney writes:
>>>
>>>> Since you apprently missed my original reply, I said that we shouldn't
>>>> abuse BUFSIZ for this work, and that it should be changed in mdXhl.c...
>>>
>>> Say what ?
>>>
>>> BUFSIZ is used entirely appropriately in MDXFileChunk(): For reading
>>> a file into an algorithm.
>
>> In fact, posix-2008 references LINE_MAX because:
>
> MDXFileChunk() does not read lines, it reads an entire file.
Being pedantic, technically it’s a portion of a file, which can be the whole thing, and it reads it in “sizeof(buffer)” chunks (of which buffer is “hardcoded" to BUFSIZ right now).
Cheers!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150514/e7cb92d2/attachment.sig>
More information about the freebsd-current
mailing list