From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Rename, delete and move current buffer and file Date: Fri, 11 May 2018 11:33:50 -0400 Message-ID: References: <878t8q6434.fsf@linux-m68k.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526052756 13958 195.159.176.226 (11 May 2018 15:32:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 May 2018 15:32:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Radon Rosborough , emacs-devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 11 17:32:31 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fHA21-0003Uf-VU for ged-emacs-devel@m.gmane.org; Fri, 11 May 2018 17:32:30 +0200 Original-Received: from localhost ([::1]:51629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHA49-0007yw-6y for ged-emacs-devel@m.gmane.org; Fri, 11 May 2018 11:34:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHA3S-0007yY-SA for emacs-devel@gnu.org; Fri, 11 May 2018 11:33:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHA3N-0003s8-Td for emacs-devel@gnu.org; Fri, 11 May 2018 11:33:58 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:39150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHA3N-0003oj-PB for emacs-devel@gnu.org; Fri, 11 May 2018 11:33:53 -0400 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w4BFY5R1010675; Fri, 11 May 2018 11:34:05 -0400 Original-Received: by lechazo.home (Postfix, from userid 20848) id D1C7460359; Fri, 11 May 2018 11:33:50 -0400 (EDT) In-Reply-To: <878t8q6434.fsf@linux-m68k.org> (Andreas Schwab's message of "Fri, 11 May 2018 09:31:27 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 3 Rules triggered GEN_SPAM_FEATRE=0.1, EDT_SA_DN_PASS=0, RV6284=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6284> : inlines <6629> : streams <1786588> : uri <2640397> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225238 Archived-At: >> It's not atomic on any POSIX system, AFAIK: it first creates a second >> name with `link` and then deletes the old name with `unlink`. > That method has been obsolete for decades. POSIX requires rename to be > atomic. Even when moving from one directory to another? Stefan