emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set-file-modes on w32


From: Lennart Borgman
Subject: Re: set-file-modes on w32
Date: Wed, 14 Oct 2009 18:37:08 +0200

On Wed, Oct 14, 2009 at 6:32 PM, Juanma Barranquero <address@hidden> 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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]