From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#9800: Incomplete truncated file buffers from the /proc filesystem Date: Mon, 24 Oct 2011 15:02:53 -0700 Organization: UCLA Computer Science Department Message-ID: <4EA5E08D.8070903@cs.ucla.edu> References: <877h40vb8h.fsf@mail.jurta.org> <4EA4D31B.4050604@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319493819 8786 80.91.229.12 (24 Oct 2011 22:03:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2011 22:03:39 +0000 (UTC) Cc: 9800@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 00:03:35 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIScI-0001vS-Qh for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 00:03:34 +0200 Original-Received: from localhost ([::1]:41146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIScH-000090-Uc for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2011 18:03:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIScF-000086-D7 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 18:03:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIScD-0004EA-CH for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 18:03:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIScD-0004Dy-7u for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 18:03:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RISdi-0006ol-8H for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 18:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2011 22:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9800-submit@debbugs.gnu.org id=B9800.131949387726177 (code B ref 9800); Mon, 24 Oct 2011 22:05:02 +0000 Original-Received: (at 9800) by debbugs.gnu.org; 24 Oct 2011 22:04:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RISdI-0006o8-CX for submit@debbugs.gnu.org; Mon, 24 Oct 2011 18:04:37 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RISdF-0006nu-9k for 9800@debbugs.gnu.org; Mon, 24 Oct 2011 18:04:34 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6B2E339E8007; Mon, 24 Oct 2011 15:02:54 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X8Jn+A0aHDKB; Mon, 24 Oct 2011 15:02:54 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2637439E8006; Mon, 24 Oct 2011 15:02:54 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 Oct 2011 18:05:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53095 Archived-At: On 10/24/11 14:50, Richard Stallman wrote: > I think there was a reason for doing it this way. Perhaps so as to > allocate the space before reading the file. Yes, that sounds right. And in the typical case where the file is not growing, that allocates space efficiently. If the file is growing, though, it's OK to allocate more space after discovering that the initial allocation was too small.