From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: Re: large files not found with `read-file-name' Date: Fri, 12 Apr 2002 13:50:04 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <200204112026.QAA27376@rds294.goodyear.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1018612409 16248 127.0.0.1 (12 Apr 2002 11:53:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 11:53:29 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, t901353@rds294.goodyear.com Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vzcP-0004Dx-00 for ; Fri, 12 Apr 2002 13:53:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vzRl-0000wn-00; Fri, 12 Apr 2002 07:42:29 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16vzOd-0000i2-00 for ; Fri, 12 Apr 2002 07:39:16 -0400 Original-Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 8F0DD1E3FB; Fri, 12 Apr 2002 13:50:08 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f Original-To: Tom Wurgler X-Yow: AIEEEEE! I am having an UNDULATING EXPERIENCE! In-Reply-To: <200204112026.QAA27376@rds294.goodyear.com> (Tom Wurgler's message of "Thu, 11 Apr 2002 16:26:50 -0400 (EDT)") Original-Lines: 27 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:603 Tom Wurgler writes: |> One of the users here has a file thusly: |> |> -rw-rw-r-- 1 tomw bob 2399830016 Apr 11 11:41 sample.file 2399830016 > 2G |> Which GNU ls does list in a dired properly, albeit the filenames are not |> aligned etc. |> |> But he has a emacs-lisp defun that prompts him for various input, one of |> which is the above "sample.file" filename. The file completion does not find |> the file. He is not trying to read the file itself, just get the filename and |> then he runs a shell job with the inputs gained from his elisp... This is because Emacs is not compiled with LFS support, so stat(2) fails on that file (with ERANGE), and for Emacs it looks like the file does not exist. To fix that, Emacs needs to use stat64 instead. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."