From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: w32.c/link() Date: Mon, 16 Jun 2014 07:30:50 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1402903892 8624 80.91.229.3 (16 Jun 2014 07:31:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2014 07:31:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 16 09:31:25 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WwRO0-0007xr-RE for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2014 09:31:24 +0200 Original-Received: from localhost ([::1]:41960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRO0-00040w-C3 for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2014 03:31:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRNq-00040p-37 for emacs-devel@gnu.org; Mon, 16 Jun 2014 03:31:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwRNi-0006ig-KE for emacs-devel@gnu.org; Mon, 16 Jun 2014 03:31:14 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:32896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRNi-0006ib-DR for emacs-devel@gnu.org; Mon, 16 Jun 2014 03:31:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WwRNg-0007bL-7X for emacs-devel@gnu.org; Mon, 16 Jun 2014 09:31:04 +0200 Original-Received: from alimantado.supelec.fr ([160.228.100.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Jun 2014 09:31:04 +0200 Original-Received: from fabrice.popineau by alimantado.supelec.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Jun 2014 09:31:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 160.228.100.37 (Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172476 Archived-At: Hi, I tried to use add-name-to-file from elisp, which calls w32.c/link(). It seems to end up in doing a copy of the file. I'm fine with that, but that wasn't clear before trying it. OTOH if hard links were possible, why not using them? Permissions? Could someone (Eli ?) care to explain why link() is implemented this way? Why BackupWrite() is used? I would have expected either CopyFile() or CreateHardLink(). Fabrice