diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -1898,6 +1898,14 @@ sys_chmod (const char * path, int 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); |