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: Juanma Barranquero
Subject: Re: set-file-modes on w32
Date: Wed, 14 Oct 2009 18:32:11 +0200

> 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




reply via email to

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