Mercurial > emacs
comparison src/w32.c @ 63744:19486c46b17e
(sys_chown): New function.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 24 Jun 2005 10:39:56 +0000 |
parents | ac1cd1222417 |
children | a8fa7c632ee4 bb71c6cf2009 |
comparison
equal
deleted
inserted
replaced
63743:28ba3b83e358 | 63744:19486c46b17e |
---|---|
1896 { | 1896 { |
1897 return _chmod (map_w32_filename (path, NULL), mode); | 1897 return _chmod (map_w32_filename (path, NULL), mode); |
1898 } | 1898 } |
1899 | 1899 |
1900 int | 1900 int |
1901 sys_chown (const char *path, uid_t owner, gid_t group) | |
1902 { | |
1903 if (sys_chmod (path, _S_IREAD) == -1) /* check if file exists */ | |
1904 return -1; | |
1905 return 0; | |
1906 } | |
1907 | |
1908 int | |
1901 sys_creat (const char * path, int mode) | 1909 sys_creat (const char * path, int mode) |
1902 { | 1910 { |
1903 return _creat (map_w32_filename (path, NULL), mode); | 1911 return _creat (map_w32_filename (path, NULL), mode); |
1904 } | 1912 } |
1905 | 1913 |