From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: [gmane.emacs.bugs] Emacs fails to start properly if the current working directory is on a vfat or ntfs filesystem Date: Mon, 25 Feb 2008 21:52:26 +0100 Message-ID: References: <877igvl4dn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203972790 19627 80.91.229.12 (25 Feb 2008 20:53:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2008 20:53:10 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 21:53:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JTkK9-00016D-2j for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 21:53:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTkJd-0003yM-3r for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 15:52:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTkJY-0003xb-PF for emacs-devel@gnu.org; Mon, 25 Feb 2008 15:52:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTkJU-0003w1-Tq for emacs-devel@gnu.org; Mon, 25 Feb 2008 15:52:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTkJU-0003vl-L4 for emacs-devel@gnu.org; Mon, 25 Feb 2008 15:52:40 -0500 Original-Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JTkJN-0007j6-7Q; Mon, 25 Feb 2008 15:52:33 -0500 Original-Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 0AE5831435; Mon, 25 Feb 2008 21:52:29 +0100 (CET) X-Yow: Now my EMOTIONAL RESOURCES are heavily committed to 23% of the SMELTING and REFINING industry of the state of NEVADA!! In-Reply-To: (Eli Zaretskii's message of "Mon\, 25 Feb 2008 22\:04\:23 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90434 Archived-At: Eli Zaretskii writes: >> From: Richard Stallman >> CC: cyd@stupidchicken.com, emacs-devel@gnu.org >> Date: Mon, 25 Feb 2008 05:57:27 -0500 >>=20 >> > One possible solution would be for Fdo_auto_save to detect that = errno >> > code when `open' fails, and modify the file name. >>=20 >> EINVAL is not specific enough for that, IMO. >>=20 >> What else causes EINVAL from `open'? > > I have no idea, since the GNU/Linux man page for `open' doesn't > mention EINVAL at all. POSIX defines two cases: - The value of the oflag argument is not valid. - The implementation does not support synchronized I/O for this file. The latter is only applicable when the synchronized I/O extensions are supported and any of the O_SYNC/O_DSYNC/O_RSYNC flags is used. An implementation can define arbitrary extra cases in addition to the ones mentioned by POSIX. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."