Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/zbxcommon/file.c')
-rw-r--r--src/libs/zbxcommon/file.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/libs/zbxcommon/file.c b/src/libs/zbxcommon/file.c
index cef9dc01c3c..745f71ef85c 100644
--- a/src/libs/zbxcommon/file.c
+++ b/src/libs/zbxcommon/file.c
@@ -20,35 +20,6 @@
#include "common.h"
#if defined(_WINDOWS)
-int __zbx_stat(const char *path, zbx_stat_t *buf)
-{
- int ret, fd;
- wchar_t *wpath;
-
- wpath = zbx_utf8_to_unicode(path);
-
- if (-1 == (ret = _wstat64(wpath, buf)))
- goto out;
-
- if (0 != buf->st_size)
- goto out;
-
- /* In the case of symlinks _wstat64 returns zero file size. */
- /* Try to work around it by opening the file and using fstat. */
-
- ret = -1;
-
- if (-1 != (fd = _wopen(wpath, O_RDONLY)))
- {
- ret = _fstat64(fd, buf);
- _close(fd);
- }
-out:
- zbx_free(wpath);
-
- return ret;
-}
-
int __zbx_open(const char *pathname, int flags)
{
int ret;