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:
authorAndrejs Tumilovics <andrejs.tumilovics@zabbix.com>2020-01-14 10:03:52 +0300
committerAndrejs Tumilovics <andrejs.tumilovics@zabbix.com>2020-01-14 12:43:04 +0300
commita065b7920ce1600b22406385e957e7e96a5d499b (patch)
tree10d57ca84c6a9b398889f8b9084736a8f63047ab /include/zbxtypes.h
parentc26f49c085543e85c3c471374a6e8777badc2e5f (diff)
...G...PS. [ZBX-16960,ZBX-16961,ZBX-16964] fixed time of check - time of use issues reported by coverity
(cherry picked from commit bf337f81a54f0268dda50ebf564e8dbf5e6ebdf8)
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r--include/zbxtypes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h
index 230c898d3a5..e4d39f5d412 100644
--- a/include/zbxtypes.h
+++ b/include/zbxtypes.h
@@ -45,6 +45,7 @@
# include <strsafe.h>
# define zbx_stat(path, buf) __zbx_stat(path, buf)
+# define zbx_fstat(fd, buf) _fstat64(fd, buf)
# ifndef __UINT64_C
# define __UINT64_C(x) x
@@ -81,6 +82,7 @@ typedef __int64 zbx_offset_t;
#else /* _WINDOWS */
# define zbx_stat(path, buf) stat(path, buf)
+# define zbx_fstat(fd, buf) fstat(fd, buf)
# ifndef __UINT64_C
# ifdef UINT64_C