added g_chown

This commit is contained in:
Jay Sorg 2011-07-07 09:09:03 -07:00
parent 6343a1ae3d
commit c5b1b0fe45
2 changed files with 10 additions and 0 deletions

View File

@ -1195,6 +1195,14 @@ g_chmod_hex(const char* filename, int flags)
#endif
}
/*****************************************************************************/
/* returns error, zero is ok */
int APP_CC
g_chown(const char* name, int uid, int gid)
{
return chown(name, uid, gid);
}
/*****************************************************************************/
/* returns error, always zero */
int APP_CC

View File

@ -141,6 +141,8 @@ g_file_lock(int fd, int start, int len);
int APP_CC
g_chmod_hex(const char* filename, int flags);
int APP_CC
g_chown(const char* name, int uid, int gid);
int APP_CC
g_mkdir(const char* dirname);
char* APP_CC
g_get_current_dir(char* dirname, int maxlen);