From: Juanma Barranquero <lekktu@gmail.com>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: set-file-modes on w32
Date: Wed, 14 Oct 2009 18:32:11 +0200 [thread overview]
Message-ID: <f7ccd24b0910140932x4fb34610w4049f537a56f7110@mail.gmail.com> (raw)
In-Reply-To: <e01d8a50910140903v1b4dbaf3pc5514a2023d54f70@mail.gmail.com>
> 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
Juanma
next prev parent reply other threads:[~2009-10-14 16:32 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 [this message]
2009-10-14 16:37 ` Lennart Borgman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0910140932x4fb34610w4049f537a56f7110@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).