From owner-freebsd-current@FreeBSD.ORG Thu May 14 08:06:32 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 63F7E863; Thu, 14 May 2015 08:06:32 +0000 (UTC) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 2663F1CFC; Thu, 14 May 2015 08:06:31 +0000 (UTC) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 3CF0B3BB88; Thu, 14 May 2015 08:06:30 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id t4E86TBl077888; Thu, 14 May 2015 08:06:29 GMT (envelope-from phk@phk.freebsd.dk) To: John-Mark Gurney cc: Ian Lepore , Adrian Chadd , Hans Petter Selasky , David Chisnall , Baptiste Daroussin , "current@freebsd.org" Subject: Re: Increase BUFSIZ to 8192 In-reply-to: <20150514075316.GY37063@funkthat.com> From: "Poul-Henning Kamp" 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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <77886.1431590789.1@critter.freebsd.dk> Date: Thu, 14 May 2015 08:06:29 +0000 Message-ID: <77887.1431590789@critter.freebsd.dk> 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 08:06:32 -0000 -------- 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: >> >> >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@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.