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:
authorAndris Zeila <andris.zeila@zabbix.com>2013-05-22 14:02:50 +0400
committerAndris Zeila <andris.zeila@zabbix.com>2013-05-22 14:02:50 +0400
commit2943dde551ae5e083017c362a3925ffa5dcf6a15 (patch)
tree2fb5ea62897e5aec5e9cb107954b179819bdc908 /include/zbxtypes.h
parent6207475f64c301bbdaa4408aa87fbbc99b9cae3e (diff)
.......PS. [ZBXNEXT-322] added 64 bit support to memory allocator
This allows shared memory allocation of 4GB and more (current hard limit is set to 64GB). Also added 'allow out of memory' mode. If shared memory is created with allow_oom flag, then out of memory situation is not treated as critical failure and memory allocators return NULL instead of aborting execution.
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r--include/zbxtypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h
index b0a1b45767c..556d3e2feba 100644
--- a/include/zbxtypes.h
+++ b/include/zbxtypes.h
@@ -23,9 +23,6 @@
#define ZBX_FS_DBL "%lf"
#define ZBX_FS_DBL_EXT(p) "%." #p "lf"
-#define ZBX_FS_SIZE_T "%u"
-#define zbx_fs_size_t unsigned int /* use this type only in calls to printf() for formatting size_t */
-
#define ZBX_PTR_SIZE sizeof(void *)
#if defined(_WINDOWS)
@@ -115,6 +112,9 @@
#endif /* _WINDOWS */
+#define ZBX_FS_SIZE_T ZBX_FS_UI64
+#define zbx_fs_size_t zbx_uint64_t /* use this type only in calls to printf() for formatting size_t */
+
#ifndef S_ISREG
# define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
#endif