From owner-freebsd-current@FreeBSD.ORG Thu May 14 09:23:38 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44D569B; Thu, 14 May 2015 09:23:38 +0000 (UTC) Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F338E1673; Thu, 14 May 2015 09:23:37 +0000 (UTC) Received: by oiko83 with SMTP id o83so51242929oik.1; Thu, 14 May 2015 02:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=/c1IQskXBtfQtVQjGq1IOXOVISkLs176CLKilx0+KD8=; b=Q3rPE5QDTidXaLNL567U9t2D2azF2xbKmabKCTtegH548KwvQyNFnNSiZPRDDYJIRV 2jGh/D1qlSRP534JqXhidcjkdfnRqcfyTlw3tydlumqevPdC5dT0qqWyV2eprZuENvjI oFntJjqSU9Lc1Oikry0fs7Gsr2sJD+M3QZNPPGPsJyUkvrC2gzNLqm78C77Q4pIvPIXa qQBCgZef0y0QT6Irbj0jv+OclHENhOEE96HM6XeYkxsNtwzt/fvZmJCypyTYZRBCWjuj XXhyAFlqB9hRuDqg/BmC+KJV6B/quJBqmtbE6YpvtCqS+laxbbM39NRpTrtGTwa70wAZ Rg7g== X-Received: by 10.60.132.208 with SMTP id ow16mr2708830oeb.66.1431595417052; Thu, 14 May 2015 02:23:37 -0700 (PDT) Received: from ?IPv6:2601:8:ab80:7d6:c178:acbe:4cc0:2fd4? ([2601:8:ab80:7d6:c178:acbe:4cc0:2fd4]) by mx.google.com with ESMTPSA id x17sm14526064oif.1.2015.05.14.02.23.35 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 May 2015 02:23:36 -0700 (PDT) Subject: Re: Increase BUFSIZ to 8192 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_E07D28FA-D10A-42CF-8781-790246C2B15C"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Garrett Cooper In-Reply-To: <77887.1431590789@critter.freebsd.dk> Date: Thu, 14 May 2015 02:23:30 -0700 Cc: John-Mark Gurney , Ian Lepore , Adrian Chadd , Hans Petter Selasky , David Chisnall , Baptiste Daroussin , "current@freebsd.org" Message-Id: <6AE8973B-3C03-497F-85A9-96C4D464B4BD@gmail.com> References: <14994.1431412293@critter.freebsd.dk> <20150513080342.GE37063@funkthat.com> <55530CC3.1090204@selasky.org> <1431528249.1221.15.camel@freebsd.org> <20150513181347.GM37063@funkthat.com> <1431542835.1221.30.camel@freebsd.org> <20150514072155.GT37063@funkthat.com> <62511.1431589335@critter.freebsd.dk> <20150514075316.GY37063@funkthat.com> <77887.1431590789@critter.freebsd.dk> To: Poul-Henning Kamp X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2015 09:23:38 -0000 --Apple-Mail=_E07D28FA-D10A-42CF-8781-790246C2B15C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On May 14, 2015, at 1:06, Poul-Henning Kamp wrote: > -------- > In message <20150514075316.GY37063@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@funkthat.com>, John-Mark Gurney = writes: >>>=20 >>>> 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... >>>=20 >>> Say what ? >>>=20 >>> BUFSIZ is used entirely appropriately in MDXFileChunk(): For = reading >>> a file into an algorithm. >=20 >> In fact, posix-2008 references LINE_MAX because: >=20 > MDXFileChunk() does not read lines, it reads an entire file. Being pedantic, technically it=92s a portion of a file, which can be the = whole thing, and it reads it in =93sizeof(buffer)=94 chunks (of which = buffer is =93hardcoded" to BUFSIZ right now). Cheers! --Apple-Mail=_E07D28FA-D10A-42CF-8781-790246C2B15C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJVVGmSAAoJEMZr5QU6S73eVIYIALM8mAuABG5q2xHdTaR5TqaR YbazmhKDn4ZUke+pd7BcyNstQKD4hNMkU+ZIZsvevH+0PINAmUrLRfu++lYFhSM7 239VCHwqGlJLOAuE+HyfcM1fURo85hYRkIgbPNRw0iwJ6HEvIudyR5KYW0nsHceO Gw3EX7ZHxDdeupZ/dkG4oiJIhAUc6HgPFcHvsy/kBRwrH6zrjSGldmqoQaotYQLR muQwGCFq/cq++4bu5Nr4S90UKNeRluRSXbAAd8QaSTPvgAK3R99l4uv0saIzyeO8 JHj+j8r7O5R3Hfa4035Y6V+5kWv8Ha8odykFo3+YsN2WPR62cK6IWZmDPtKFTpo= =MLZT -----END PGP SIGNATURE----- --Apple-Mail=_E07D28FA-D10A-42CF-8781-790246C2B15C--