Increase BUFSIZ to 8192

Poul-Henning Kamp phk at phk.freebsd.dk
Thu May 14 08:06:32 UTC 2015


--------
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.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list