diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/os_calls.c | 17 | ||||
| -rw-r--r-- | common/os_calls.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 2a2184b7..ba9ec4b8 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1087,23 +1087,6 @@ g_file_lock(int fd, int start, int len) } /*****************************************************************************/ -/* returns error, always zero */ -int APP_CC -g_set_file_rights(const char* filename, int read, int write) -{ -#if defined(_WIN32) - return 0; -#else - int flags; - - flags = read ? S_IRUSR : 0; - flags |= write ? S_IWUSR : 0; - chmod(filename, flags); - return 0; -#endif -} - -/*****************************************************************************/ /* returns error */ int APP_CC g_chmod_hex(const char* filename, int flags) diff --git a/common/os_calls.h b/common/os_calls.h index 751734fd..5f84694d 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -129,8 +129,6 @@ g_file_seek(int fd, int offset); int APP_CC g_file_lock(int fd, int start, int len); int APP_CC -g_set_file_rights(const char* filename, int read, int write); -int APP_CC g_chmod_hex(const char* filename, int flags); int APP_CC g_mkdir(const char* dirname); |
