(sys_chown): New function.

This commit is contained in:
Eli Zaretskii 2005-06-24 10:39:56 +00:00
parent 0e20b3a37b
commit 2d5ab4bf85

View file

@ -1897,6 +1897,14 @@ sys_chmod (const char * path, int mode)
return _chmod (map_w32_filename (path, NULL), mode);
}
int
sys_chown (const char *path, uid_t owner, gid_t group)
{
if (sys_chmod (path, _S_IREAD) == -1) /* check if file exists */
return -1;
return 0;
}
int
sys_creat (const char * path, int mode)
{