From: Lennart Borgman <lennart.borgman@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: set-file-modes on w32
Date: Wed, 14 Oct 2009 18:37:08 +0200 [thread overview]
Message-ID: <e01d8a50910140937j5c51b4e8p49357a8d0653c37f@mail.gmail.com> (raw)
In-Reply-To: <f7ccd24b0910140932x4fb34610w4049f537a56f7110@mail.gmail.com>
On Wed, Oct 14, 2009 at 6:32 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
>> What does set-file-modes do on for example w32?
>
> Fset_file_modes calls `chmod':
>
> if (chmod (SDATA (encoded_absname), XINT (mode)) < 0)
>
> chmod, via src/s/ms-w32.h (included in src/config.h) is defined as
>
> #undef chmod
> #define chmod sys_chmod
>
> sys_chmod is defined in w32.c,
>
> int
> sys_chmod (const char * path, int mode)
> {
> return _chmod (map_w32_filename (path, NULL), mode);
> }
>
> and _chmod, not surprisingly, "[c]hange[s] the file-permission settings":
>
> http://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?
next prev parent reply other threads:[~2009-10-14 16:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-14 16:03 set-file-modes on w32 Lennart Borgman
2009-10-14 16:32 ` Juanma Barranquero
2009-10-14 16:37 ` Lennart Borgman [this message]
2009-10-14 16:38 ` Juanma Barranquero
2009-10-14 16:35 ` Davis Herring
2009-10-14 16:39 ` Lennart Borgman
2009-10-14 16:57 ` Juanma Barranquero
2009-10-14 17:06 ` Lennart Borgman
2009-10-14 18:19 ` Eli Zaretskii
2009-10-14 22:18 ` Lennart Borgman
2009-10-15 4:06 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50910140937j5c51b4e8p49357a8d0653c37f@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.