From c5b1b0fe454f5f9ff797b6b68ae3abe6cda49404 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Thu, 7 Jul 2011 09:09:03 -0700 Subject: [PATCH] added g_chown --- common/os_calls.c | 8 ++++++++ common/os_calls.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/common/os_calls.c b/common/os_calls.c index 4004fdfc..0993b650 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -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 diff --git a/common/os_calls.h b/common/os_calls.h index e550cecf..62f8b58f 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -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);