From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: set-file-modes on w32 Date: Wed, 14 Oct 2009 18:37:08 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255538428 31324 80.91.229.12 (14 Oct 2009 16:40:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 16:40:28 +0000 (UTC) Cc: Emacs-Devel devel To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 18:40:17 2009 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 1My6rA-00029F-4J for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 18:37:44 +0200 Original-Received: from localhost ([127.0.0.1]:35168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My6r9-0004F7-HN for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 12:37:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My6r2-0004BD-8N for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:37:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My6qx-0003zY-2d for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:37:35 -0400 Original-Received: from [199.232.76.173] (port=48928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My6qw-0003zE-T9 for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:37:30 -0400 Original-Received: from mail-yx0-f175.google.com ([209.85.210.175]:35500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My6qw-0007T6-HH for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:37:30 -0400 Original-Received: by yxe5 with SMTP id 5so4033448yxe.24 for ; Wed, 14 Oct 2009 09:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=hBj2bumTYGShVZnhcEf7hUt1iAndtutYJBTbwr85GmQ=; b=I/Je6Qp6KqcLQAKElPHnhROZItmwKyxynfw1a69e+Tk3oeAiv1FokQGdWQVlvhuRFW QGyko4osS5Vmi1ZkCC5mO5TW972UIfbxEY82rNIBAxIzegOYWJY9zmVDBYD85lUs0usC RA7a73ilFpNlUq20dbdXFfN1yTmC57g2AKUcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=QY+4uORjJjic3zvmreWtHD6ey8Jf+htRQPQpqixq//VDOZ08kNegodyQYHzH7PVRur 8rxX1iPFv69TcJJVqVsze1Fz9tPmO7dirco8LjllyIajSxhZFD/yhLQfFAh4ECFWRbHT DQNtY3CEiwX7ByyyNznrAcFrC7qlr3WXJPDu0= Original-Received: by 10.101.207.25 with SMTP id j25mr7580909anq.19.1255538249116; Wed, 14 Oct 2009 09:37:29 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:116139 Archived-At: On Wed, Oct 14, 2009 at 6:32 PM, Juanma Barranquero wrot= e: >> What does set-file-modes do on for example w32? > > Fset_file_modes calls `chmod': > > =C2=A0if (chmod (SDATA (encoded_absname), XINT (mode)) < 0) > > chmod, via src/s/ms-w32.h (included in src/config.h) is defined as > > =C2=A0#undef chmod > =C2=A0#define chmod =C2=A0 sys_chmod > > sys_chmod is defined in w32.c, > > =C2=A0int > =C2=A0sys_chmod (const char * path, int mode) > =C2=A0{ > =C2=A0 =C2=A0return _chmod (map_w32_filename (path, NULL), mode); > =C2=A0} > > and _chmod, not surprisingly, "[c]hange[s] the file-permission settings": > > =C2=A0http://msdn.microsoft.com/en-us/library/1z319a54%28VS.71%29.aspx Thanks Juanma, but does the MODE parameter to set-file-modes have the same meaning as on *nix?