From 9d822c6f5ead1480d71f3e4d8b31fa2a9391020b Mon Sep 17 00:00:00 2001 From: Artjoms Rimdjonoks Date: Tue, 4 Jan 2022 23:50:10 +0200 Subject: .......... [DEV-2051] removed functions names from the function comments --- src/libs/zbxalgo/algodefs.c | 4 - src/libs/zbxalgo/evaluate.c | 8 - src/libs/zbxalgo/hashset.c | 2 - src/libs/zbxalgo/int128.c | 18 -- src/libs/zbxalgo/linked_list.c | 32 -- src/libs/zbxalgo/queue.c | 16 - src/libs/zbxalgo/serialize.c | 4 - src/libs/zbxaudit/audit.c | 2 - src/libs/zbxaudit/audit_item.c | 4 - src/libs/zbxaudit/audit_trigger.c | 2 - src/libs/zbxcommon/comms.c | 8 - src/libs/zbxcommon/cuid.c | 6 - src/libs/zbxcommon/file.c | 4 - src/libs/zbxcommon/iprange.c | 20 -- src/libs/zbxcommon/misc.c | 178 ----------- src/libs/zbxcommon/setproctitle.c | 6 - src/libs/zbxcommon/str.c | 218 -------------- src/libs/zbxcommon/time.c | 20 -- src/libs/zbxcommon/variant.c | 18 -- src/libs/zbxcommon/variant_misc.c | 2 - src/libs/zbxcomms/comms.c | 50 --- src/libs/zbxcommshigh/comms.c | 8 - src/libs/zbxcompress/compress.c | 6 - src/libs/zbxconf/cfg.c | 12 - src/libs/zbxcrypto/base64.c | 12 - src/libs/zbxcrypto/tls.c | 74 ----- src/libs/zbxcrypto/tls_version.c | 2 - src/libs/zbxdb/db.c | 52 ---- src/libs/zbxdbcache/dbcache.c | 158 ---------- src/libs/zbxdbcache/dbconfig.c | 352 ---------------------- src/libs/zbxdbcache/dbconfig_maintenance.c | 58 ---- src/libs/zbxdbcache/dbsync.c | 152 ---------- src/libs/zbxdbcache/dbsync.h | 2 - src/libs/zbxdbcache/valuecache.c | 114 ------- src/libs/zbxdbhigh/db.c | 120 -------- src/libs/zbxdbhigh/discovery.c | 20 -- src/libs/zbxdbhigh/event.c | 6 - src/libs/zbxdbhigh/export.c | 4 - src/libs/zbxdbhigh/graph_linking.c | 6 - src/libs/zbxdbhigh/host.c | 104 ------- src/libs/zbxdbhigh/item.c | 2 - src/libs/zbxdbhigh/lld_macro.c | 8 - src/libs/zbxdbhigh/lld_override.c | 6 - src/libs/zbxdbhigh/maintenance.c | 2 - src/libs/zbxdbhigh/proxy.c | 104 ------- src/libs/zbxdbhigh/template_item.c | 46 --- src/libs/zbxdbhigh/trigger.c | 34 --- src/libs/zbxdbhigh/trigger_dep_linking.c | 6 - src/libs/zbxdbhigh/trigger_linking.c | 4 - src/libs/zbxdbupgrade/dbupgrade.c | 2 - src/libs/zbxdbupgrade/dbupgrade_2010.c | 4 - src/libs/zbxdbupgrade/dbupgrade_2030.c | 2 - src/libs/zbxdbupgrade/dbupgrade_3010.c | 20 -- src/libs/zbxdbupgrade/dbupgrade_4050.c | 8 - src/libs/zbxdbupgrade/dbupgrade_5030.c | 28 -- src/libs/zbxdbupgrade/dbupgrade_5050.c | 2 - src/libs/zbxdbupgrade/dbupgrade_macros.c | 18 -- src/libs/zbxdiag/diag.c | 40 --- src/libs/zbxdiag/diag_proxy.c | 2 - src/libs/zbxdiag/diag_server.c | 20 -- src/libs/zbxembed/console.c | 12 - src/libs/zbxembed/embed.c | 24 -- src/libs/zbxembed/global.c | 10 - src/libs/zbxembed/httprequest.c | 48 --- src/libs/zbxembed/xml.c | 10 - src/libs/zbxembed/zabbix.c | 6 - src/libs/zbxeval/calc.c | 30 -- src/libs/zbxeval/execute.c | 106 ------- src/libs/zbxeval/misc.c | 42 --- src/libs/zbxeval/parse.c | 58 ---- src/libs/zbxeval/query.c | 20 -- src/libs/zbxexec/execute.c | 12 - src/libs/zbxha/ha.c | 12 - src/libs/zbxhistory/history.c | 32 -- src/libs/zbxhistory/history_elastic.c | 24 -- src/libs/zbxhistory/history_sql.c | 34 --- src/libs/zbxhttp/punycode.c | 12 - src/libs/zbxhttp/urlencode.c | 4 - src/libs/zbxicmpping/icmpping.c | 6 - src/libs/zbxipcservice/ipcservice.c | 114 ------- src/libs/zbxjson/json.c | 44 --- src/libs/zbxjson/json_parser.c | 16 - src/libs/zbxjson/jsonpath.c | 86 ------ src/libs/zbxlog/log.c | 2 - src/libs/zbxmedia/email.c | 6 - src/libs/zbxmodules/modules.c | 14 - src/libs/zbxnix/control.c | 2 - src/libs/zbxnix/coredump.c | 2 - src/libs/zbxnix/daemon.c | 10 - src/libs/zbxnix/dshm.c | 12 - src/libs/zbxnix/ipc.c | 4 - src/libs/zbxnix/sighandler.c | 24 -- src/libs/zbxprometheus/zbxprometheus.c | 86 ------ src/libs/zbxregexp/zbxregexp.c | 50 --- src/libs/zbxrtc/rtc.c | 2 - src/libs/zbxrtc/rtc_client.c | 8 - src/libs/zbxrtc/rtc_server.c | 12 - src/libs/zbxrtc/rtc_service.c | 14 - src/libs/zbxself/selfmon.c | 16 - src/libs/zbxself/selfmon_proxy.c | 2 - src/libs/zbxself/selfmon_server.c | 2 - src/libs/zbxserver/anomalystl.c | 2 - src/libs/zbxserver/evalfunc.c | 74 ----- src/libs/zbxserver/evalfunc_common.c | 2 - src/libs/zbxserver/expression.c | 152 ---------- src/libs/zbxserver/expression_eval.c | 68 ----- src/libs/zbxserver/macrofunc.c | 10 - src/libs/zbxserver/zabbix_stats.c | 2 - src/libs/zbxserver/zabbix_stats_proxy.c | 2 - src/libs/zbxserver/zabbix_stats_server.c | 2 - src/libs/zbxserver/zabbix_users.c | 4 - src/libs/zbxsys/mutexs.c | 30 -- src/libs/zbxsys/threads.c | 12 - src/libs/zbxsysinfo/agent/modbus.c | 16 - src/libs/zbxsysinfo/common/dir.c | 10 - src/libs/zbxsysinfo/common/system.c | 2 - src/libs/zbxsysinfo/common/zabbix_stats.c | 8 - src/libs/zbxsysinfo/linux/net.c | 4 - src/libs/zbxsysinfo/linux/proc.c | 30 -- src/libs/zbxsysinfo/linux/sensors.c | 2 - src/libs/zbxsysinfo/solaris/proc.c | 28 -- src/libs/zbxsysinfo/solaris/swap.c | 2 - src/libs/zbxsysinfo/sysinfo.c | 54 ---- src/libs/zbxsysinfo/win32/cpu.c | 6 - src/libs/zbxsysinfo/win32/net.c | 10 - src/libs/zbxsysinfo/win32/services.c | 6 - src/libs/zbxsysinfo/win32/system.c | 4 - src/libs/zbxtasks/task.c | 76 ----- src/libs/zbxtrends/baseline.c | 6 - src/libs/zbxtrends/cache.c | 28 -- src/libs/zbxtrends/trends.c | 18 -- src/libs/zbxwin32/disk.c | 2 - src/libs/zbxwin32/perfmon.c | 16 - src/libs/zbxxml/xml.c | 30 -- src/modules/dummy/dummy.c | 14 - src/zabbix_agent/active.c | 18 -- src/zabbix_agent/cpustat.c | 2 - src/zabbix_agent/eventlog.c | 18 -- src/zabbix_agent/logfiles/logfiles.c | 72 ----- src/zabbix_agent/logfiles/persistent_state.c | 26 -- src/zabbix_agent/perfstat.c | 12 - src/zabbix_agent/procstat.c | 48 --- src/zabbix_agent/stats.c | 14 - src/zabbix_agent/vmstats.c | 2 - src/zabbix_agent/zabbix_agentd.c | 14 - src/zabbix_agent/zbxconf.c | 12 - src/zabbix_agent/zbxkstat.c | 8 - src/zabbix_get/zabbix_get.c | 6 - src/zabbix_proxy/datasender/datasender.c | 6 - src/zabbix_proxy/heart/heart.c | 4 - src/zabbix_proxy/housekeeper/housekeeper.c | 4 - src/zabbix_proxy/proxy.c | 10 - src/zabbix_proxy/proxyconfig/proxyconfig.c | 4 - src/zabbix_proxy/taskmanager/server_tasks.c | 2 - src/zabbix_proxy/taskmanager/taskmanager.c | 12 - src/zabbix_sender/win32/zabbix_sender.h | 6 - src/zabbix_sender/zabbix_sender.c | 12 - src/zabbix_server/actions.c | 110 ------- src/zabbix_server/alerter/alert_manager.c | 100 ------ src/zabbix_server/alerter/alert_syncer.c | 24 -- src/zabbix_server/alerter/alerter.c | 18 -- src/zabbix_server/alerter/alerter_protocol.c | 30 -- src/zabbix_server/dbconfig/dbconfig.c | 2 - src/zabbix_server/dbsyncer/dbsyncer.c | 4 - src/zabbix_server/discoverer/discoverer.c | 18 -- src/zabbix_server/escalator/escalator.c | 46 --- src/zabbix_server/events.c | 84 ------ src/zabbix_server/ha/ha_manager.c | 80 ----- src/zabbix_server/housekeeper/history_compress.c | 14 - src/zabbix_server/housekeeper/housekeeper.c | 30 -- src/zabbix_server/httppoller/httpmacro.c | 8 - src/zabbix_server/httppoller/httppoller.c | 4 - src/zabbix_server/httppoller/httptest.c | 16 - src/zabbix_server/ipmi/checks_ipmi.c | 14 - src/zabbix_server/ipmi/ipmi.c | 6 - src/zabbix_server/ipmi/ipmi_manager.c | 50 --- src/zabbix_server/ipmi/ipmi_poller.c | 8 - src/zabbix_server/lld/lld.c | 26 -- src/zabbix_server/lld/lld_common.c | 8 - src/zabbix_server/lld/lld_graph.c | 22 -- src/zabbix_server/lld/lld_host.c | 74 ----- src/zabbix_server/lld/lld_item.c | 58 ---- src/zabbix_server/lld/lld_manager.c | 32 -- src/zabbix_server/lld/lld_protocol.c | 26 -- src/zabbix_server/lld/lld_trigger.c | 68 ----- src/zabbix_server/lld/lld_worker.c | 4 - src/zabbix_server/odbc/odbc.c | 26 -- src/zabbix_server/operations.c | 26 -- src/zabbix_server/pinger/pinger.c | 10 - src/zabbix_server/poller/checks_agent.c | 2 - src/zabbix_server/poller/checks_aggregate.c | 22 -- src/zabbix_server/poller/checks_db.c | 2 - src/zabbix_server/poller/checks_external.c | 2 - src/zabbix_server/poller/checks_internal.c | 4 - src/zabbix_server/poller/checks_internal_proxy.c | 2 - src/zabbix_server/poller/checks_internal_server.c | 2 - src/zabbix_server/poller/checks_simple.c | 2 - src/zabbix_server/poller/checks_simple_vmware.c | 14 - src/zabbix_server/poller/checks_snmp.c | 14 - src/zabbix_server/poller/poller.c | 12 - src/zabbix_server/postinit.c | 16 - src/zabbix_server/preprocessor/item_preproc.c | 86 ------ src/zabbix_server/preprocessor/preproc_cache.c | 8 - src/zabbix_server/preprocessor/preproc_manager.c | 66 ---- src/zabbix_server/preprocessor/preproc_worker.c | 20 -- src/zabbix_server/preprocessor/preprocessing.c | 96 ------ src/zabbix_server/proxypoller/proxypoller.c | 12 - src/zabbix_server/reporter/report_manager.c | 84 ------ src/zabbix_server/reporter/report_writer.c | 12 - src/zabbix_server/scripts/scripts.c | 10 - src/zabbix_server/server.c | 14 - src/zabbix_server/service/service_actions.c | 16 - src/zabbix_server/service/service_manager.c | 38 --- src/zabbix_server/snmptrapper/snmptrapper.c | 18 -- src/zabbix_server/taskmanager/proxy_tasks.c | 2 - src/zabbix_server/taskmanager/taskmanager.c | 26 -- src/zabbix_server/timer/timer.c | 18 -- src/zabbix_server/trapper/active.c | 12 - src/zabbix_server/trapper/nodecommand.c | 8 - src/zabbix_server/trapper/proxyconfig.c | 4 - src/zabbix_server/trapper/proxydata.c | 8 - src/zabbix_server/trapper/trapper.c | 16 - src/zabbix_server/trapper/trapper_auth.c | 4 - src/zabbix_server/trapper/trapper_preproc.c | 6 - src/zabbix_server/trapper/trapper_server.c | 2 - src/zabbix_server/vmware/vmware.c | 236 --------------- 226 files changed, 6278 deletions(-) (limited to 'src') diff --git a/src/libs/zbxalgo/algodefs.c b/src/libs/zbxalgo/algodefs.c index bc18707a6e4..1b056f746a1 100644 --- a/src/libs/zbxalgo/algodefs.c +++ b/src/libs/zbxalgo/algodefs.c @@ -386,8 +386,6 @@ int next_prime(int n) } /****************************************************************************** - * * - * Function: zbx_isqrt32 * * * * Purpose: calculate integer part of square root of a 32 bit integer value * * * @@ -421,8 +419,6 @@ unsigned int zbx_isqrt32(unsigned int value) } /****************************************************************************** - * * - * Function: zbx_gen_uuid4 * * * * Purpose: calculate UUID version 4 as string of 32 symbols * * * diff --git a/src/libs/zbxalgo/evaluate.c b/src/libs/zbxalgo/evaluate.c index 227b7c5383a..54398d2bc79 100644 --- a/src/libs/zbxalgo/evaluate.c +++ b/src/libs/zbxalgo/evaluate.c @@ -177,8 +177,6 @@ static double evaluate_number(int *unknown_idx) } /****************************************************************************** - * * - * Function: variant_convert_to_double * * * * Purpose: cast string variant to a double variant * * * @@ -201,8 +199,6 @@ static void variant_convert_to_double(zbx_variant_t *var) } /****************************************************************************** - * * - * Function: variant_get_double * * * * Purpose: get variant value in double (float64) format * * * @@ -1043,8 +1039,6 @@ int evaluate(double *value, const char *expression, char *error, size_t max_erro } /****************************************************************************** - * * - * Function: evaluate_unknown * * * * Purpose: evaluate an expression like "(26.416>10) and not(0=ZBX_UNKNOWN0)" * * * @@ -1095,8 +1089,6 @@ int evaluate_unknown(const char *expression, double *value, char *error, size_t } /****************************************************************************** - * * - * Function: evaluate_string_to_double * * * * Purpose: cast string to a double, expand suffixes and parse negative sign * * * diff --git a/src/libs/zbxalgo/hashset.c b/src/libs/zbxalgo/hashset.c index 3e7ca15a909..489ad33ea05 100644 --- a/src/libs/zbxalgo/hashset.c +++ b/src/libs/zbxalgo/hashset.c @@ -125,8 +125,6 @@ void zbx_hashset_destroy(zbx_hashset_t *hs) } /****************************************************************************** - * * - * Function: zbx_hashset_reserve * * * * Purpose: allocation not less than the required number of slots for hashset * * * diff --git a/src/libs/zbxalgo/int128.c b/src/libs/zbxalgo/int128.c index ab4036071da..8e1bc237f3c 100644 --- a/src/libs/zbxalgo/int128.c +++ b/src/libs/zbxalgo/int128.c @@ -25,8 +25,6 @@ #define UINT32_BIT_MASK (~((~__UINT64_C(0)) << UINT32_BIT_COUNT)) /****************************************************************************** - * * - * Function: udec128_128 * * * * Purpose: Decrement of 128 bit unsigned integer by the specified value. * * * @@ -47,8 +45,6 @@ static void udec128_128(zbx_uint128_t *base, const zbx_uint128_t *value) } /****************************************************************************** - * * - * Function: ushiftr128 * * * * Purpose: Logical right shift of 128 bit unsigned integer. * * * @@ -77,8 +73,6 @@ static void ushiftr128(zbx_uint128_t *base, unsigned int bits) } /****************************************************************************** - * * - * Function: ushiftl128 * * * * Purpose: Logical left shift of 128 bit unsigned integer. * * * @@ -107,8 +101,6 @@ static void ushiftl128(zbx_uint128_t *base, unsigned int bits) } /****************************************************************************** - * * - * Function: ucmp128_128 * * * * Purpose: Comparison of two 128 bit unsigned integer values. * * * @@ -132,8 +124,6 @@ static int ucmp128_128(const zbx_uint128_t *value1, const zbx_uint128_t *value2) } /****************************************************************************** - * * - * Function: umul64_32_shift * * * * Purpose: Multiplication of 64 bit unsigned integer with 32 bit unsigned * * integer value, shifted left by specified number of bits * @@ -163,8 +153,6 @@ static void umul64_32_shift(zbx_uint128_t *base, zbx_uint64_t value, zbx_uint64_ } /****************************************************************************** - * * - * Function: uinc128_64 * * * * Purpose: Increment of 128 bit unsigned integer by the specified 64 bit * * value. * @@ -186,8 +174,6 @@ void uinc128_64(zbx_uint128_t *base, zbx_uint64_t value) } /****************************************************************************** - * * - * Function: uinc128_128 * * * * Purpose: Increment of 128 bit unsigned integer by the specified 128 bit * * value * @@ -210,8 +196,6 @@ void uinc128_128(zbx_uint128_t *base, const zbx_uint128_t *value) } /****************************************************************************** - * * - * Function: umul64_64 * * * * Purpose: Multiplication of two 64 bit unsigned integer values. * * * @@ -232,8 +216,6 @@ void umul64_64(zbx_uint128_t *result, zbx_uint64_t value, zbx_uint64_t factor) } /****************************************************************************** - * * - * Function: udiv128_64 * * * * Purpose: Division of 128 bit unsigned integer by a 64 bit unsigned integer * * value. * diff --git a/src/libs/zbxalgo/linked_list.c b/src/libs/zbxalgo/linked_list.c index 737173eaf91..b803a332fd0 100644 --- a/src/libs/zbxalgo/linked_list.c +++ b/src/libs/zbxalgo/linked_list.c @@ -21,8 +21,6 @@ #include "zbxalgo.h" /****************************************************************************** - * * - * Function: zbx_list_create_ext * * * * Purpose: create singly linked list (with custom memory functions) * * * @@ -40,8 +38,6 @@ void zbx_list_create_ext(zbx_list_t *queue, zbx_mem_malloc_func_t mem_malloc_fun } /****************************************************************************** - * * - * Function: zbx_list_create * * * * Purpose: create singly linked list * * * @@ -54,8 +50,6 @@ void zbx_list_create(zbx_list_t *queue) } /****************************************************************************** - * * - * Function: zbx_list_destroy * * * * Purpose: destroy list * * * @@ -69,8 +63,6 @@ void zbx_list_destroy(zbx_list_t *list) } /****************************************************************************** - * * - * Function: list_create_item * * * * Purpose: allocate memory and initialize a new list item * * * @@ -93,8 +85,6 @@ static void list_create_item(zbx_list_t *list, void *value, zbx_list_item_t **cr } /****************************************************************************** - * * - * Function: zbx_list_insert_after * * * * Purpose: insert value after specified position in the list * * * @@ -132,8 +122,6 @@ void zbx_list_insert_after(zbx_list_t *list, zbx_list_item_t *after, void *value } /****************************************************************************** - * * - * Function: zbx_list_append * * * * Purpose: append value to the end of the list * * * @@ -148,8 +136,6 @@ void zbx_list_append(zbx_list_t *list, void *value, zbx_list_item_t **inserted) } /****************************************************************************** - * * - * Function: zbx_list_prepend * * * * Purpose: prepend value to the beginning of the list * * * @@ -174,8 +160,6 @@ void zbx_list_prepend(zbx_list_t *list, void *value, zbx_list_item_t **inserted) } /****************************************************************************** - * * - * Function: zbx_list_pop * * * * Purpose: removes a value from the beginning of the list * * * @@ -208,8 +192,6 @@ int zbx_list_pop(zbx_list_t *list, void **value) } /****************************************************************************** - * * - * Function: zbx_list_peek * * * * Purpose: get value from the queue without dequeuing * * * @@ -232,8 +214,6 @@ int zbx_list_peek(const zbx_list_t *list, void **value) } /****************************************************************************** - * * - * Function: zbx_list_iterator_init * * * * Purpose: initialize list iterator * * * @@ -249,8 +229,6 @@ void zbx_list_iterator_init(zbx_list_t *list, zbx_list_iterator_t *iterator) } /****************************************************************************** - * * - * Function: zbx_list_iterator_next * * * * Purpose: advance list iterator * * * @@ -274,8 +252,6 @@ int zbx_list_iterator_next(zbx_list_iterator_t *iterator) } /****************************************************************************** - * * - * Function: zbx_list_iterator_peek * * * * Purpose: get value without removing it from list * * * @@ -298,8 +274,6 @@ int zbx_list_iterator_peek(const zbx_list_iterator_t *iterator, void **value) } /****************************************************************************** - * * - * Function: zbx_list_iterator_clear * * * * Purpose: clears iterator leaving it in uninitialized state * * * @@ -312,8 +286,6 @@ void zbx_list_iterator_clear(zbx_list_iterator_t *iterator) } /****************************************************************************** - * * - * Function: zbx_list_iterator_equal * * * * Purpose: tests if two iterators points at the same list item * * * @@ -333,8 +305,6 @@ int zbx_list_iterator_equal(const zbx_list_iterator_t *iterator1, const zbx_list } /****************************************************************************** - * * - * Function: zbx_list_iterator_isset * * * * Purpose: checks if the iterator points at some list item * * * @@ -349,8 +319,6 @@ int zbx_list_iterator_isset(const zbx_list_iterator_t *iterator) } /****************************************************************************** - * * - * Function: zbx_list_iterator_update * * * * Purpose: updates iterator * * * diff --git a/src/libs/zbxalgo/queue.c b/src/libs/zbxalgo/queue.c index 10430f96472..11d5fab0e26 100644 --- a/src/libs/zbxalgo/queue.c +++ b/src/libs/zbxalgo/queue.c @@ -21,8 +21,6 @@ #include "zbxalgo.h" /****************************************************************************** - * * - * Function: zbx_queue_ptr_values_num * * * * Purpose: calculates the number of values in queue * * * @@ -43,8 +41,6 @@ int zbx_queue_ptr_values_num(zbx_queue_ptr_t *queue) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_reserve * * * * Purpose: reserves space in queue for additional values * * * @@ -76,8 +72,6 @@ void zbx_queue_ptr_reserve(zbx_queue_ptr_t *queue, int num) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_compact * * * * Purpose: compacts queue by freeing unused space * * * @@ -115,8 +109,6 @@ void zbx_queue_ptr_compact(zbx_queue_ptr_t *queue) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_create * * * * Purpose: creates queue * * * @@ -129,8 +121,6 @@ void zbx_queue_ptr_create(zbx_queue_ptr_t *queue) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_destroy * * * * Purpose: destroys queue * * * @@ -143,8 +133,6 @@ void zbx_queue_ptr_destroy(zbx_queue_ptr_t *queue) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_push * * * * Purpose: pushes value in the queue * * * @@ -162,8 +150,6 @@ void zbx_queue_ptr_push(zbx_queue_ptr_t *queue, void *value) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_pop * * * * Purpose: pops value in the queue * * * @@ -193,8 +179,6 @@ void *zbx_queue_ptr_pop(zbx_queue_ptr_t *queue) } /****************************************************************************** - * * - * Function: zbx_queue_ptr_remove_value * * * * Purpose: removes specified value from queue * * * diff --git a/src/libs/zbxalgo/serialize.c b/src/libs/zbxalgo/serialize.c index 9cb0dc09a0c..feac0c2e383 100644 --- a/src/libs/zbxalgo/serialize.c +++ b/src/libs/zbxalgo/serialize.c @@ -20,8 +20,6 @@ #include "common.h" #include "zbxserialize.h" /****************************************************************************** - * * - * Function: zbx_serialize_uint31_compact * * * * Purpose: serialize 31 bit unsigned integer into utf-8 like byte stream * * * @@ -62,8 +60,6 @@ zbx_uint32_t zbx_serialize_uint31_compact(unsigned char *ptr, zbx_uint32_t value } /****************************************************************************** - * * - * Function: zbx_deserialize_uint31_compact * * * * Purpose: deserialize 31 bit unsigned integer from utf-8 like byte stream * * * diff --git a/src/libs/zbxaudit/audit.c b/src/libs/zbxaudit/audit.c index 77da07f08f9..4a4552eda1d 100644 --- a/src/libs/zbxaudit/audit.c +++ b/src/libs/zbxaudit/audit.c @@ -159,8 +159,6 @@ static void delete_json(struct zbx_json *json, const char *audit_op, const char } /****************************************************************************** - * * - * Function: zbx_auditlog_global_script * * * * Purpose: record global script execution results into audit log * * * diff --git a/src/libs/zbxaudit/audit_item.c b/src/libs/zbxaudit/audit_item.c index 1eadbc106cc..af4b34107e0 100644 --- a/src/libs/zbxaudit/audit_item.c +++ b/src/libs/zbxaudit/audit_item.c @@ -365,8 +365,6 @@ PREPARE_AUDIT_ITEM_UPDATE(key, const char*, string) #undef IT_OR_ITP_OR_DR /****************************************************************************** - * * - * Function: zbx_audit_item_create_entry_for_delete * * * * Parameters: id - [IN] resource id * * name - [IN] resource name * @@ -401,8 +399,6 @@ void zbx_audit_item_create_entry_for_delete(zbx_uint64_t id, const char *name, i } /****************************************************************************** - * * - * Function: zbx_audit_DBselect_delete_for_item * * * * Parameters: sql - [IN] sql statement * * ids - [OUT] sorted list of selected uint64 values * diff --git a/src/libs/zbxaudit/audit_trigger.c b/src/libs/zbxaudit/audit_trigger.c index 7a6e6199ce8..88ad93f98f9 100644 --- a/src/libs/zbxaudit/audit_trigger.c +++ b/src/libs/zbxaudit/audit_trigger.c @@ -215,8 +215,6 @@ PREPARE_AUDIT_TRIGGER_UPDATE(recovery_expression, const char*, string) #undef TR_OR_TRP /****************************************************************************** - * * - * Function: zbx_audit_DBselect_delete_for_trigger * * * * Parameters: sql - [IN] sql statement * * ids - [OUT] sorted list of selected uint64 values * diff --git a/src/libs/zbxcommon/comms.c b/src/libs/zbxcommon/comms.c index 6fa9fafaa07..48a0ecdfc42 100644 --- a/src/libs/zbxcommon/comms.c +++ b/src/libs/zbxcommon/comms.c @@ -112,8 +112,6 @@ int comms_parse_response(char *xml, char *host, size_t host_len, char *key, size } /****************************************************************************** - * * - * Function: zbx_htole_uint64 * * * * Purpose: convert unsigned integer 64 bit * * from host byte order * @@ -147,8 +145,6 @@ zbx_uint64_t zbx_htole_uint64(zbx_uint64_t data) } /****************************************************************************** - * * - * Function: zbx_letoh_uint64 * * * * Purpose: convert unsigned integer 64 bit * * from little-endian byte order format * @@ -182,8 +178,6 @@ zbx_uint64_t zbx_letoh_uint64(zbx_uint64_t data) } /****************************************************************************** - * * - * Function: zbx_htole_uint32 * * * * Purpose: convert unsigned integer 32 bit * * from host byte order * @@ -209,8 +203,6 @@ zbx_uint32_t zbx_htole_uint32(zbx_uint32_t data) } /****************************************************************************** - * * - * Function: zbx_letoh_uint32 * * * * Purpose: convert unsigned integer 32 bit * * from little-endian byte order format * diff --git a/src/libs/zbxcommon/cuid.c b/src/libs/zbxcommon/cuid.c index a0ee567a1a1..1b09436492a 100644 --- a/src/libs/zbxcommon/cuid.c +++ b/src/libs/zbxcommon/cuid.c @@ -43,8 +43,6 @@ static char host_block[HOST_TMP_36_BASE_BUF_LEN]; /****************************************************************************** - * * - * Function: pad * * * * Purpose: modify string in-place to the specified length as required by * * CUID algorithm * @@ -127,8 +125,6 @@ static void from_decimal(char *res, size_t base, size_t input_num) } /****************************************************************************** - * * - * Function: zbx_cuid_init * * * * Purpose: initializes context for the cuid generation * * * @@ -175,8 +171,6 @@ static size_t next(void) } /****************************************************************************** - * * - * Function: zbx_new_cuid * * * * Purpose: generates cuid, is based on the go cuid implementation from * * https://github.com/lucsky/cuid/blob/master/cuid.go * diff --git a/src/libs/zbxcommon/file.c b/src/libs/zbxcommon/file.c index dff829b1ab6..e5152d4e21e 100644 --- a/src/libs/zbxcommon/file.c +++ b/src/libs/zbxcommon/file.c @@ -79,8 +79,6 @@ void find_cr_lf_szbyte(const char *encoding, const char **cr, const char **lf, s } /****************************************************************************** - * * - * Function: zbx_read * * * * Purpose: Read one text line from a file descriptor into buffer * * * @@ -188,8 +186,6 @@ char *zbx_fgets(char *buffer, int size, FILE *fp) } /****************************************************************************** - * * - * Function: zbx_write_all * * * * Purpose: call write in a loop, iterating until all the data is written. * * * diff --git a/src/libs/zbxcommon/iprange.c b/src/libs/zbxcommon/iprange.c index 4cc14418be6..6a9643d7709 100644 --- a/src/libs/zbxcommon/iprange.c +++ b/src/libs/zbxcommon/iprange.c @@ -20,8 +20,6 @@ #include "common.h" /****************************************************************************** - * * - * Function: iprange_is_whitespace_character * * * * Purpose: checks if the specified character is allowed whitespace character * * that can be used before or after iprange definition * @@ -47,8 +45,6 @@ static int iprange_is_whitespace_character(unsigned char value) } /****************************************************************************** - * * - * Function: iprange_address_length * * * * Purpose: calculates the length of address data without trailing whitespace * * * @@ -71,8 +67,6 @@ static size_t iprange_address_length(const char *address) } /****************************************************************************** - * * - * Function: iprange_apply_mask * * * * Purpose: applies a bit mask to the parsed v4 or v6 IP range * * * @@ -118,8 +112,6 @@ static void iprange_apply_mask(zbx_iprange_t *iprange, int bits) } /****************************************************************************** - * * - * Function: iprangev4_parse * * * * Purpose: parse IPv4 address into IP range structure * * * @@ -212,8 +204,6 @@ static int iprangev4_parse(zbx_iprange_t *iprange, const char *address) } /****************************************************************************** - * * - * Function: iprangev6_parse * * * * Purpose: parse IPv6 address into IP range structure * * * @@ -348,8 +338,6 @@ check_fill: } /****************************************************************************** - * * - * Function: iprange_parse * * * * Purpose: parse IP address (v4 or v6) into IP range structure * * * @@ -375,8 +363,6 @@ int iprange_parse(zbx_iprange_t *iprange, const char *address) } /****************************************************************************** - * * - * Function: iprange_first * * * * Purpose: gets the first IP address from the specified range * * * @@ -402,8 +388,6 @@ void iprange_first(const zbx_iprange_t *iprange, int *address) } /****************************************************************************** - * * - * Function: iprange_next * * * * Purpose: gets the next IP address from the specified range * * * @@ -453,8 +437,6 @@ int iprange_next(const zbx_iprange_t *iprange, int *address) } /****************************************************************************** - * * - * Function: iprange_validate * * * * Purpose: checks if the IP address is in specified range * * * @@ -482,8 +464,6 @@ int iprange_validate(const zbx_iprange_t *iprange, const int *address) } /****************************************************************************** - * * - * Function: iprange_volume * * * * Purpose: get the number of addresses covered by the specified IP range * * * diff --git a/src/libs/zbxcommon/misc.c b/src/libs/zbxcommon/misc.c index 3a5c5cf3409..59638681871 100644 --- a/src/libs/zbxcommon/misc.c +++ b/src/libs/zbxcommon/misc.c @@ -125,8 +125,6 @@ out: #endif /****************************************************************************** - * * - * Function: get_program_name * * * * Purpose: return program name without path * * * @@ -151,8 +149,6 @@ const char *get_program_name(const char *path) } /****************************************************************************** - * * - * Function: zbx_timespec * * * * Purpose: Gets the current time. * * * @@ -274,8 +270,6 @@ void zbx_timespec(zbx_timespec_t *ts) } /****************************************************************************** - * * - * Function: zbx_time * * * * Purpose: Gets the current time. * * * @@ -297,8 +291,6 @@ double zbx_time(void) } /****************************************************************************** - * * - * Function: zbx_current_time * * * * Purpose: Gets the current time including UTC offset * * * @@ -313,8 +305,6 @@ double zbx_current_time(void) } /****************************************************************************** - * * - * Function: zbx_is_leap_year * * * * Return value: SUCCEED - year is a leap year * * FAIL - year is not a leap year * @@ -326,8 +316,6 @@ int zbx_is_leap_year(int year) } /****************************************************************************** - * * - * Function: zbx_get_time * * * * Purpose: * * get current time and store it in memory locations provided by caller * @@ -377,8 +365,6 @@ void zbx_get_time(struct tm *tm, long *milliseconds, zbx_timezone_t *tz) } /****************************************************************************** - * * - * Function: zbx_get_timezone_offset * * * * Purpose: get time offset from UTC * * * @@ -420,8 +406,6 @@ long zbx_get_timezone_offset(time_t t, struct tm *tm) } /****************************************************************************** - * * - * Function: zbx_localtime * * * * Purpose: get broken-down representation of the time in specified time zone * * * @@ -467,8 +451,6 @@ struct tm *zbx_localtime(const time_t *time, const char *tz) } /****************************************************************************** - * * - * Function: zbx_utc_time * * * * Purpose: get UTC time from time from broken down time elements * * * @@ -508,8 +490,6 @@ int zbx_utc_time(int year, int mon, int mday, int hour, int min, int sec, int *t } /****************************************************************************** - * * - * Function: zbx_day_in_month * * * * Purpose: returns number of days in a month * * * @@ -535,8 +515,6 @@ int zbx_day_in_month(int year, int mon) } /****************************************************************************** - * * - * Function: zbx_get_duration_ms * * * * Purpose: get duration in milliseconds since time stamp till current time * * * @@ -556,8 +534,6 @@ zbx_uint64_t zbx_get_duration_ms(const zbx_timespec_t *ts) } /****************************************************************************** - * * - * Function: zbx_calloc2 * * * * Purpose: allocates nmemb * size bytes of memory and fills it with zeros * * * @@ -595,8 +571,6 @@ void *zbx_calloc2(const char *filename, int line, void *old, size_t nmemb, size_ } /****************************************************************************** - * * - * Function: zbx_malloc2 * * * * Purpose: allocates size bytes of memory * * * @@ -634,8 +608,6 @@ void *zbx_malloc2(const char *filename, int line, void *old, size_t size) } /****************************************************************************** - * * - * Function: zbx_realloc2 * * * * Purpose: changes the size of the memory block pointed to by old * * to size bytes * @@ -685,8 +657,6 @@ char *zbx_strdup2(const char *filename, int line, char *old, const char *str) } /**************************************************************************************** - * * - * Function: zbx_guaranteed_memset * * * * Purpose: For overwriting sensitive data in memory. * * Similar to memset() but should not be optimized out by a compiler. * @@ -708,8 +678,6 @@ void *zbx_guaranteed_memset(void *v, int c, size_t n) } /****************************************************************************** - * * - * Function: __zbx_zbx_setproctitle * * * * Purpose: set process title * * * @@ -737,8 +705,6 @@ void zbx_setproctitle(const char *fmt, ...) } /****************************************************************************** - * * - * Function: check_time_period * * * * Purpose: check if current time is within given period * * * @@ -762,8 +728,6 @@ static int check_time_period(const zbx_time_period_t period, struct tm *tm) } /****************************************************************************** - * * - * Function: get_current_delay * * * * Purpose: return delay value that is currently applicable * * * @@ -796,8 +760,6 @@ static int get_current_delay(int default_delay, const zbx_flexible_interval_t *f } /****************************************************************************** - * * - * Function: get_next_delay_interval * * * * Purpose: return time when next delay settings take effect * * * @@ -856,8 +818,6 @@ static int get_next_delay_interval(const zbx_flexible_interval_t *flex_intervals } /****************************************************************************** - * * - * Function: time_parse * * * * Purpose: parses time of day * * * @@ -908,8 +868,6 @@ static int time_parse(int *time, const char *text, int len, int *parsed_len) } /****************************************************************************** - * * - * Function: time_period_parse * * * * Purpose: parses time period * * * @@ -977,8 +935,6 @@ static int time_period_parse(zbx_time_period_t *period, const char *text, int le } /****************************************************************************** - * * - * Function: zbx_check_time_period * * * * Purpose: validate time period and check if specified time is within it * * * @@ -1025,8 +981,6 @@ int zbx_check_time_period(const char *period, time_t time, const char *tz, int * } /****************************************************************************** - * * - * Function: flexible_interval_free * * * * Purpose: frees flexible interval * * * @@ -1045,8 +999,6 @@ static void flexible_interval_free(zbx_flexible_interval_t *interval) } /****************************************************************************** - * * - * Function: flexible_interval_parse * * * * Purpose: parses flexible interval * * * @@ -1078,8 +1030,6 @@ static int flexible_interval_parse(zbx_flexible_interval_t *interval, const char } /****************************************************************************** - * * - * Function: calculate_dayofweek * * * * Purpose: calculates day of week * * * @@ -1101,8 +1051,6 @@ static int calculate_dayofweek(int year, int mon, int mday) } /****************************************************************************** - * * - * Function: scheduler_filter_free * * * * Purpose: frees scheduler interval filter * * * @@ -1121,8 +1069,6 @@ static void scheduler_filter_free(zbx_scheduler_filter_t *filter) } /****************************************************************************** - * * - * Function: scheduler_interval_free * * * * Purpose: frees scheduler interval * * * @@ -1148,8 +1094,6 @@ static void scheduler_interval_free(zbx_scheduler_interval_t *interval) } /****************************************************************************** - * * - * Function: scheduler_parse_filter_r * * * * Purpose: parses text string into scheduler filter * * * @@ -1272,8 +1216,6 @@ static int scheduler_parse_filter_r(zbx_scheduler_filter_t **filter, const char } /****************************************************************************** - * * - * Function: scheduler_parse_filter * * * * Purpose: parses text string into scheduler filter * * * @@ -1304,8 +1246,6 @@ static int scheduler_parse_filter(zbx_scheduler_filter_t **filter, const char *t } /****************************************************************************** - * * - * Function: scheduler_interval_parse * * * * Purpose: parses scheduler interval * * * @@ -1394,8 +1334,6 @@ static int scheduler_interval_parse(zbx_scheduler_interval_t *interval, const ch } /****************************************************************************** - * * - * Function: scheduler_get_nearest_filter_value * * * * Purpose: gets the next nearest value that satisfies the filter chain * * * @@ -1447,8 +1385,6 @@ static int scheduler_get_nearest_filter_value(const zbx_scheduler_filter_t *filt } /****************************************************************************** - * * - * Function: scheduler_get_wday_nextcheck * * * * Purpose: calculates the next day that satisfies the week day filter * * * @@ -1492,8 +1428,6 @@ static int scheduler_get_wday_nextcheck(const zbx_scheduler_interval_t *interval } /****************************************************************************** - * * - * Function: scheduler_validate_wday_filter * * * * Purpose: checks if the specified date satisfies week day filter * * * @@ -1536,8 +1470,6 @@ static int scheduler_validate_wday_filter(const zbx_scheduler_interval_t *interv } /****************************************************************************** - * * - * Function: scheduler_get_day_nextcheck * * * * Purpose: calculates the next day that satisfies month and week day filters * * * @@ -1584,8 +1516,6 @@ static int scheduler_get_day_nextcheck(const zbx_scheduler_interval_t *interval, } /****************************************************************************** - * * - * Function: scheduler_get_filter_nextcheck * * * * Purpose: calculates the time/day that satisfies the specified filter * * * @@ -1651,8 +1581,6 @@ static int scheduler_get_filter_nextcheck(const zbx_scheduler_interval_t *interv } /****************************************************************************** - * * - * Function: scheduler_apply_day_filter * * * * Purpose: applies day filter to the specified time/day calculating the next * * scheduled check * @@ -1686,8 +1614,6 @@ static void scheduler_apply_day_filter(zbx_scheduler_interval_t *interval, struc } /****************************************************************************** - * * - * Function: scheduler_apply_hour_filter * * * * Purpose: applies hour filter to the specified time/day calculating the * * next scheduled check * @@ -1718,8 +1644,6 @@ static void scheduler_apply_hour_filter(zbx_scheduler_interval_t *interval, stru } /****************************************************************************** - * * - * Function: scheduler_apply_minute_filter * * * * Purpose: applies minute filter to the specified time/day calculating the * * next scheduled check * @@ -1747,8 +1671,6 @@ static void scheduler_apply_minute_filter(zbx_scheduler_interval_t *interval, st } /****************************************************************************** - * * - * Function: scheduler_apply_second_filter * * * * Purpose: applies second filter to the specified time/day calculating the * * next scheduled check * @@ -1770,8 +1692,6 @@ static void scheduler_apply_second_filter(zbx_scheduler_interval_t *interval, st } /****************************************************************************** - * * - * Function: scheduler_find_dst_change * * * * Purpose: finds daylight saving change time inside specified time period * * * @@ -1820,8 +1740,6 @@ static time_t scheduler_find_dst_change(time_t time_start, time_t time_end) } /****************************************************************************** - * * - * Function: scheduler_tm_inc * * * * Purpose: increment struct tm value by one second * * * @@ -1855,8 +1773,6 @@ static void scheduler_tm_inc(struct tm *tm) } /****************************************************************************** - * * - * Function: scheduler_get_nextcheck * * * * Purpose: finds the next timestamp satisfying one of intervals. * * * @@ -1915,8 +1831,6 @@ static time_t scheduler_get_nextcheck(zbx_scheduler_interval_t *interval, time_t } /****************************************************************************** - * * - * Function: parse_user_macro * * * * Purpose: parses user macro and finds it's length * * * @@ -1945,8 +1859,6 @@ static int parse_user_macro(const char *str, int *len) } /****************************************************************************** - * * - * Function: parse_simple_interval * * * * Purpose: parses user macro and finds it's length * * * @@ -1977,8 +1889,6 @@ static int parse_simple_interval(const char *str, int *len, char sep, int *value } /****************************************************************************** - * * - * Function: zbx_validate_interval * * * * Purpose: validate update interval, flexible and scheduling intervals * * * @@ -2098,8 +2008,6 @@ int zbx_validate_interval(const char *str, char **error) } /****************************************************************************** - * * - * Function: zbx_interval_preproc * * * * Purpose: parses item and low-level discovery rule update intervals * * * @@ -2202,8 +2110,6 @@ fail: } /****************************************************************************** - * * - * Function: zbx_custom_interval_free * * * * Purpose: frees custom update intervals * * * @@ -2218,8 +2124,6 @@ void zbx_custom_interval_free(zbx_custom_interval_t *custom_intervals) } /****************************************************************************** - * * - * Function: calculate_item_nextcheck * * * * Purpose: calculate nextcheck timestamp for item * * * @@ -2321,8 +2225,6 @@ int calculate_item_nextcheck(zbx_uint64_t seed, int item_type, int simple_interv return nextcheck; } /****************************************************************************** - * * - * Function: calculate_item_nextcheck_unreachable * * * * Purpose: calculate nextcheck timestamp for item on unreachable host * * * @@ -2373,8 +2275,6 @@ int calculate_item_nextcheck_unreachable(int simple_interval, const zbx_custom_i return nextcheck; } /****************************************************************************** - * * - * Function: calculate_proxy_nextcheck * * * * Purpose: calculate nextcheck timestamp for passive proxy * * * @@ -2400,8 +2300,6 @@ time_t calculate_proxy_nextcheck(zbx_uint64_t hostid, unsigned int delay, time_t } /****************************************************************************** - * * - * Function: is_ip4 * * * * Purpose: is string IPv4 address * * * @@ -2453,8 +2351,6 @@ int is_ip4(const char *ip) } /****************************************************************************** - * * - * Function: is_ip6 * * * * Purpose: is string IPv6 address * * * @@ -2519,8 +2415,6 @@ int is_ip6(const char *ip) } /****************************************************************************** - * * - * Function: is_supported_ip * * * * Purpose: is string IP address of supported version * * * @@ -2544,8 +2438,6 @@ int is_supported_ip(const char *ip) } /****************************************************************************** - * * - * Function: is_ip * * * * Purpose: is string IP address * * * @@ -2563,8 +2455,6 @@ int is_ip(const char *ip) } /****************************************************************************** - * * - * Function: zbx_validate_hostname * * * * Purpose: check if string is a valid internet hostname * * * @@ -2608,8 +2498,6 @@ int zbx_validate_hostname(const char *hostname) } /****************************************************************************** - * * - * Function: ip_in_list * * * * Purpose: check if ip matches range of ip addresses * * * @@ -2668,8 +2556,6 @@ out: } /****************************************************************************** - * * - * Function: int_in_list * * * * Purpose: check if integer matches a list of integers * * * @@ -2736,8 +2622,6 @@ int zbx_double_compare(double a, double b) } /****************************************************************************** - * * - * Function: is_double_suffix * * * * Purpose: check if the string is double * * * @@ -2787,8 +2671,6 @@ static int is_double_valid_syntax(const char *str) } /****************************************************************************** - * * - * Function: is_double * * * * Purpose: validate and optionally convert a string to a number of type * * 'double' * @@ -2829,8 +2711,6 @@ int is_double(const char *str, double *value) } /****************************************************************************** - * * - * Function: is_time_suffix * * * * Purpose: check if the string is a non-negative integer with or without * * supported time suffix * @@ -2931,8 +2811,6 @@ int _wis_uint(const wchar_t *wide_string) #endif /****************************************************************************** - * * - * Function: is_uint_n_range * * * * Purpose: check if the string is unsigned integer within the specified * * range and optionally store it into value parameter * @@ -2993,8 +2871,6 @@ int is_uint_n_range(const char *str, size_t n, void *value, size_t size, zbx_uin } /****************************************************************************** - * * - * Function: is_hex_n_range * * * * Purpose: check if the string is unsigned hexadecimal integer within the * * specified range and optionally store it into value parameter * @@ -3057,8 +2933,6 @@ int is_hex_n_range(const char *str, size_t n, void *value, size_t size, zbx_uint } /****************************************************************************** - * * - * Function: is_boolean * * * * Purpose: check if the string is boolean * * * @@ -3099,8 +2973,6 @@ int is_boolean(const char *str, zbx_uint64_t *value) } /****************************************************************************** - * * - * Function: is_uoct * * * * Purpose: check if the string is unsigned octal * * * @@ -3137,8 +3009,6 @@ int is_uoct(const char *str) } /****************************************************************************** - * * - * Function: is_uhex * * * * Purpose: check if the string is unsigned hexadecimal representation of * * data in the form "0-9, a-f or A-F" * @@ -3176,8 +3046,6 @@ int is_uhex(const char *str) } /****************************************************************************** - * * - * Function: is_hex_string * * * * Purpose: check if the string is a hexadecimal representation of data in * * the form "F4 CE 46 01 0C 44 8B F4\nA0 2C 29 74 5D 3F 13 49\n" * @@ -3216,8 +3084,6 @@ int is_hex_string(const char *str) } /****************************************************************************** - * * - * Function: get_nearestindex * * * * Purpose: get nearest index position of sorted elements in array * * * @@ -3263,8 +3129,6 @@ int get_nearestindex(const void *p, size_t sz, int num, zbx_uint64_t id) } /****************************************************************************** - * * - * Function: uint64_array_add * * * * Purpose: add uint64 value to dynamic array * * * @@ -3300,8 +3164,6 @@ int uint64_array_add(zbx_uint64_t **values, int *alloc, int *num, zbx_uint64_t v } /****************************************************************************** - * * - * Function: uint64_array_exists * * * * Author: Alexander Vladishev * * * @@ -3318,8 +3180,6 @@ int uint64_array_exists(const zbx_uint64_t *values, int num, zbx_uint64_t value) } /****************************************************************************** - * * - * Function: uint64_array_remove * * * * Purpose: remove uint64 values from array * * * @@ -3369,8 +3229,6 @@ zbx_uint64_t suffix2factor(char c) } /****************************************************************************** - * * - * Function: str2uint64 * * * * Purpose: convert string to 64bit unsigned integer * * * @@ -3409,8 +3267,6 @@ int str2uint64(const char *str, const char *suffixes, zbx_uint64_t *value) } /****************************************************************************** - * * - * Function: str2double * * * * Purpose: convert string to double * * * @@ -3434,8 +3290,6 @@ double str2double(const char *str) } /****************************************************************************** - * * - * Function: is_hostname_char * * * * Return value: SUCCEED - the char is allowed in the host name * * FAIL - otherwise * @@ -3458,8 +3312,6 @@ int is_hostname_char(unsigned char c) } /****************************************************************************** - * * - * Function: is_key_char * * * * Return value: SUCCEED - the char is allowed in the item key * * FAIL - otherwise * @@ -3482,8 +3334,6 @@ int is_key_char(unsigned char c) } /****************************************************************************** - * * - * Function: is_function_char * * * * Return value: SUCCEED - the char is allowed in the trigger function * * FAIL - otherwise * @@ -3503,8 +3353,6 @@ int is_function_char(unsigned char c) } /****************************************************************************** - * * - * Function: is_macro_char * * * * Return value: SUCCEED - the char is allowed in the macro name * * FAIL - otherwise * @@ -3530,8 +3378,6 @@ int is_macro_char(unsigned char c) } /****************************************************************************** - * * - * Function: is_discovery_macro * * * * Purpose: checks if the name is a valid discovery macro * * * @@ -3558,8 +3404,6 @@ int is_discovery_macro(const char *name) } /****************************************************************************** - * * - * Function: zbx_get_function_type * * * * Purpose: Returns function type based on its name * * * @@ -3581,8 +3425,6 @@ zbx_function_type_t zbx_get_function_type(const char *func) } /****************************************************************************** - * * - * Function: make_hostname * * * * Purpose: replace all not-allowed hostname characters in the string * * * @@ -3607,8 +3449,6 @@ void make_hostname(char *host) } /****************************************************************************** - * * - * Function: get_interface_type_by_item_type * * * * Purpose: * * * @@ -3647,8 +3487,6 @@ unsigned char get_interface_type_by_item_type(unsigned char type) } /****************************************************************************** - * * - * Function: calculate_sleeptime * * * * Purpose: calculate sleep time for Zabbix processes * * * @@ -3679,8 +3517,6 @@ int calculate_sleeptime(int nextcheck, int max_sleeptime) } /****************************************************************************** - * * - * Function: parse_serveractive_element * * * * Purpose: parse a ServerActive element like "IP<:port>" or "[IPv6]<:port>" * * * @@ -3782,8 +3618,6 @@ int zbx_alarm_timed_out(void) } /****************************************************************************** - * * - * Function: zbx_create_token * * * * Purpose: creates semi-unique token based on the seed and current timestamp * * * @@ -3826,8 +3660,6 @@ char *zbx_create_token(zbx_uint64_t seed) #if !defined(_WINDOWS) && defined(HAVE_RESOLV_H) /****************************************************************************** - * * - * Function: update_resolver_conf * * * * Purpose: react to "/etc/resolv.conf" update * * * @@ -3857,8 +3689,6 @@ static void update_resolver_conf(void) #endif /****************************************************************************** - * * - * Function: zbx_update_env * * * * Purpose: throttling of update "/etc/resolv.conf" and "stdio" to the new * * log file after rotation * @@ -3882,8 +3712,6 @@ void zbx_update_env(double time_now) } /****************************************************************************** - * * - * Function: zbx_dc_get_agent_item_nextcheck * * * * Purpose: calculate item nextcheck for Zabbix agent type items * * * @@ -3907,8 +3735,6 @@ int zbx_get_agent_item_nextcheck(zbx_uint64_t itemid, const char *delay, int now } /****************************************************************************** - * * - * Function: zbx_get_report_nextcheck * * * * Purpose: calculate report nextcheck * * * @@ -3987,8 +3813,6 @@ void zbx_free_tag(zbx_tag_t *tag) } /****************************************************************************** - * * - * Function: zbx_md5buf2str * * * * Purpose: get a textual representation of md5 sum * * * @@ -4015,8 +3839,6 @@ void zbx_md5buf2str(const md5_byte_t *md5, char *str) } /****************************************************************************** - * * - * Function: zbx_hex2bin * * * * Purpose: * * convert ASCII hex digit string to a binary representation (byte * diff --git a/src/libs/zbxcommon/setproctitle.c b/src/libs/zbxcommon/setproctitle.c index 71b969b45f7..9be327341ab 100644 --- a/src/libs/zbxcommon/setproctitle.c +++ b/src/libs/zbxcommon/setproctitle.c @@ -49,8 +49,6 @@ static size_t ps_buf_size = PS_BUF_SIZE, ps_buf_size_msg = PS_BUF_SIZE; #endif /****************************************************************************** - * * - * Function: setproctitle_save_env * * * * Purpose: prepare for changing process commandline to display status * * messages with "ps" command on platforms which do not support * @@ -179,8 +177,6 @@ char **setproctitle_save_env(int argc, char **argv) #endif /* defined(PS_PSTAT_ARGV) */ /****************************************************************************** - * * - * Function: setproctitle_set_status * * * * Purpose: set a process command line displayed by "ps" command. * * * @@ -243,8 +239,6 @@ void setproctitle_set_status(const char *status) } /****************************************************************************** - * * - * Function: setproctitle_free_env * * * * Purpose: release memory allocated in setproctitle_save_env(). * * * diff --git a/src/libs/zbxcommon/str.c b/src/libs/zbxcommon/str.c index c79981d36f5..63cdc4fb3f1 100644 --- a/src/libs/zbxcommon/str.c +++ b/src/libs/zbxcommon/str.c @@ -39,8 +39,6 @@ static const char help_message_footer[] = "Documentation: "; /****************************************************************************** - * * - * Function: version * * * * Purpose: print version and compilation time of application on stdout * * by application request with parameter '-V' * @@ -63,8 +61,6 @@ void version(void) } /****************************************************************************** - * * - * Function: usage * * * * Purpose: print application parameters on stdout with layout suitable for * * 80-column terminal * @@ -121,8 +117,6 @@ void usage(void) } /****************************************************************************** - * * - * Function: help * * * * Purpose: print help of application parameters on stdout by application * * request with parameter '-h' * @@ -148,8 +142,6 @@ void help(void) } /****************************************************************************** - * * - * Function: zbx_error * * * * Purpose: Print error text to the stderr * * * @@ -175,8 +167,6 @@ void zbx_error(const char *fmt, ...) } /****************************************************************************** - * * - * Function: zbx_snprintf * * * * Purpose: Secure version of snprintf function. * * Add zero character at the end of string. * @@ -203,8 +193,6 @@ size_t zbx_snprintf(char *str, size_t count, const char *fmt, ...) } /****************************************************************************** - * * - * Function: zbx_snprintf_alloc * * * * Purpose: Secure version of snprintf function. * * Add zero character at the end of string. * @@ -253,8 +241,6 @@ retry: } /****************************************************************************** - * * - * Function: zbx_vsnprintf * * * * Purpose: Secure version of vsnprintf function. * * Add zero character at the end of string. * @@ -286,8 +272,6 @@ size_t zbx_vsnprintf(char *str, size_t count, const char *fmt, va_list args) } /****************************************************************************** - * * - * Function: zbx_strncpy_alloc, zbx_strcpy_alloc, zbx_chrcpy_alloc * * * * Purpose: If there is no '\0' byte among the first n bytes of src, * * then all n bytes will be placed into the dest buffer. * @@ -461,8 +445,6 @@ char *string_replace(const char *str, const char *sub_str1, const char *sub_str2 } /****************************************************************************** - * * - * Function: del_zeros * * * * Purpose: delete all right '0' and '.' for the string * * * @@ -528,8 +510,6 @@ void del_zeros(char *s) } /****************************************************************************** - * * - * Function: zbx_rtrim * * * * Purpose: Strip characters from the end of a string * * * @@ -559,8 +539,6 @@ int zbx_rtrim(char *str, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_ltrim * * * * Purpose: Strip characters from the beginning of a string * * * @@ -592,8 +570,6 @@ void zbx_ltrim(char *str, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_lrtrim * * * * Purpose: Removes leading and trailing characters from the specified * * character string * @@ -609,8 +585,6 @@ void zbx_lrtrim(char *str, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_remove_chars * * * * Purpose: Remove characters 'charlist' from the whole string * * * @@ -639,8 +613,6 @@ void zbx_remove_chars(char *str, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_str_printable_dyn * * * * Purpose: converts text to printable string by converting special * * characters to escape sequences * @@ -700,8 +672,6 @@ char *zbx_str_printable_dyn(const char *text) } /****************************************************************************** - * * - * Function: zbx_strlcpy * * * * Purpose: Copy src to string dst of size siz. At most siz - 1 characters * * will be copied. Always null terminates (unless siz == 0). * @@ -725,8 +695,6 @@ size_t zbx_strlcpy(char *dst, const char *src, size_t siz) } /****************************************************************************** - * * - * Function: zbx_strlcat * * * * Purpose: Appends src to string dst of size siz (unlike strncat, size is * * the full size of dst, not space left). At most siz - 1 characters * @@ -746,8 +714,6 @@ void zbx_strlcat(char *dst, const char *src, size_t siz) } /****************************************************************************** - * * - * Function: zbx_strlcpy_utf8 * * * * Purpose: copies utf-8 string + terminating zero character into specified * * buffer * @@ -770,8 +736,6 @@ size_t zbx_strlcpy_utf8(char *dst, const char *src, size_t size) } /****************************************************************************** - * * - * Function: zbx_dvsprintf * * * * Purpose: dynamical formatted output conversion * * * @@ -815,8 +779,6 @@ char *zbx_dvsprintf(char *dest, const char *f, va_list args) } /****************************************************************************** - * * - * Function: zbx_dsprintf * * * * Purpose: dynamical formatted output conversion * * * @@ -842,8 +804,6 @@ char *zbx_dsprintf(char *dest, const char *f, ...) } /****************************************************************************** - * * - * Function: zbx_strdcat * * * * Purpose: dynamical cating of strings * * * @@ -876,8 +836,6 @@ char *zbx_strdcat(char *dest, const char *src) } /****************************************************************************** - * * - * Function: zbx_strdcatf * * * * Purpose: dynamical cating of formatted strings * * * @@ -905,8 +863,6 @@ char *zbx_strdcatf(char *dest, const char *f, ...) } /****************************************************************************** - * * - * Function: zbx_check_hostname * * * * Purpose: check a byte stream for a valid hostname * * * @@ -954,8 +910,6 @@ int zbx_check_hostname(const char *hostname, char **error) } /****************************************************************************** - * * - * Function: parse_key * * * * Purpose: advances pointer to first invalid character in string * * ensuring that everything before it is a valid key * @@ -1076,8 +1030,6 @@ succeed: } /****************************************************************************** - * * - * Function: parse_host_key * * * * Purpose: return hostname and key * * key * @@ -1123,8 +1075,6 @@ int parse_host_key(char *exp, char **host, char **key) } /****************************************************************************** - * * - * Function: zbx_get_escape_string_len * * * * Purpose: calculate the required size for the escaped string * * * @@ -1150,8 +1100,6 @@ size_t zbx_get_escape_string_len(const char *src, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_dyn_escape_string * * * * Purpose: escape characters in the source string * * * @@ -1186,8 +1134,6 @@ char *zbx_dyn_escape_string(const char *src, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_escape_string * * * * Purpose: escape characters in the source string to fixed output buffer * * * @@ -1332,8 +1278,6 @@ int cmp_key_id(const char *key_1, const char *key_2) } /****************************************************************************** - * * - * Function: get_process_type_string * * * * Purpose: Returns process name * * * @@ -2131,8 +2075,6 @@ char *zbx_strshift_utf8(char *text, size_t num) } /****************************************************************************** - * * - * Function: zbx_utf8_char_len * * * * Purpose: Returns the size (in bytes) of an UTF-8 encoded character or 0 * * if the character is not a valid UTF-8. * @@ -2157,8 +2099,6 @@ size_t zbx_utf8_char_len(const char *text) } /****************************************************************************** - * * - * Function: zbx_strlen_utf8_nchars * * * * Purpose: calculates number of bytes in utf8 text limited by utf8_maxlen * * characters * @@ -2185,8 +2125,6 @@ size_t zbx_strlen_utf8_nchars(const char *text, size_t utf8_maxlen) } /****************************************************************************** - * * - * Function: zbx_strlen_utf8_nbytes * * * * Purpose: calculates number of bytes in utf8 text limited by maxlen bytes * * * @@ -2210,8 +2148,6 @@ size_t zbx_strlen_utf8_nbytes(const char *text, size_t maxlen) } /****************************************************************************** - * * - * Function: zbx_charcount_utf8_nbytes * * * * Purpose: calculates number of chars in utf8 text limited by maxlen bytes * * * @@ -2234,8 +2170,6 @@ size_t zbx_charcount_utf8_nbytes(const char *text, size_t maxlen) } /****************************************************************************** - * * - * Function: zbx_is_utf8 * * * * Purpose: check UTF-8 sequences * * * @@ -2329,8 +2263,6 @@ int zbx_is_utf8(const char *text) } /****************************************************************************** - * * - * Function: zbx_replace_invalid_utf8 * * * * Purpose: replace invalid UTF-8 sequences of bytes with '?' character * * * @@ -2437,8 +2369,6 @@ void zbx_replace_invalid_utf8(char *text) } /****************************************************************************** - * * - * Function: utf8_decode_3byte_sequence * * * * Purpose: decodes 3-byte utf-8 sequence * * * @@ -2464,8 +2394,6 @@ static int utf8_decode_3byte_sequence(const char *ptr, zbx_uint32_t *out) } /****************************************************************************** - * * - * Function: zbx_cesu8_to_utf8 * * * * Purpose: convert cesu8 encoded string to utf8 * * * @@ -2573,8 +2501,6 @@ int is_ascii_string(const char *str) } /****************************************************************************** - * * - * Function: str_linefeed * * * * Purpose: wrap long string at specified position with linefeeds * * * @@ -2643,8 +2569,6 @@ char *str_linefeed(const char *src, size_t maxline, const char *delim) } /****************************************************************************** - * * - * Function: zbx_strarr_init * * * * Purpose: initialize dynamic string array * * * @@ -2664,8 +2588,6 @@ void zbx_strarr_init(char ***arr) } /****************************************************************************** - * * - * Function: zbx_strarr_add * * * * Purpose: add a string to dynamic string array * * * @@ -2695,8 +2617,6 @@ void zbx_strarr_add(char ***arr, const char *entry) } /****************************************************************************** - * * - * Function: zbx_strarr_free * * * * Purpose: free dynamic string array memory * * * @@ -2717,8 +2637,6 @@ void zbx_strarr_free(char ***arr) } /****************************************************************************** - * * - * Function: zbx_replace_string * * * * Purpose: replace data block with 'value' * * * @@ -2758,8 +2676,6 @@ void zbx_replace_string(char **data, size_t l, size_t *r, const char *value) } /****************************************************************************** - * * - * Function: zbx_trim_str_list * * * * Purpose: remove whitespace surrounding a string list item delimiters * * * @@ -2802,8 +2718,6 @@ void zbx_trim_str_list(char *list, char delimiter) } /****************************************************************************** - * * - * Function: zbx_strcmp_null * * * * Purpose: * * compares two strings where any of them can be a NULL pointer * @@ -2827,8 +2741,6 @@ int zbx_strcmp_null(const char *s1, const char *s2) } /****************************************************************************** - * * - * Function: zbx_user_macro_parse * * * * Purpose: * * parses user macro and finds its end position and context location * @@ -2941,8 +2853,6 @@ int zbx_user_macro_parse(const char *macro, int *macro_r, int *context_l, int *c } /****************************************************************************** - * * - * Function: zbx_user_macro_parse_dyn * * * * Purpose: * * parses user macro {$MACRO:} into {$MACRO} and * @@ -3008,8 +2918,6 @@ int zbx_user_macro_parse_dyn(const char *macro, char **name, char **context, int } /****************************************************************************** - * * - * Function: zbx_user_macro_unquote_context_dyn * * * * Purpose: * * extracts the macro context unquoting if necessary * @@ -3059,8 +2967,6 @@ char *zbx_user_macro_unquote_context_dyn(const char *context, int len) } /****************************************************************************** - * * - * Function: zbx_user_macro_quote_context_dyn * * * * Purpose: * * quotes user macro context if necessary * @@ -3122,8 +3028,6 @@ char *zbx_user_macro_quote_context_dyn(const char *context, int force_quote, cha } /****************************************************************************** - * * - * Function: zbx_dyn_escape_shell_single_quote * * * * Purpose: escape single quote in shell command arguments * * * @@ -3166,8 +3070,6 @@ char *zbx_dyn_escape_shell_single_quote(const char *arg) } /****************************************************************************** - * * - * Function: function_parse_name * * * * Purpose: parses function name * * * @@ -3192,8 +3094,6 @@ static int function_parse_name(const char *expr, size_t *length) } /****************************************************************************** - * * - * Function: zbx_function_param_parse * * * * Purpose: parses function parameter * * * @@ -3239,8 +3139,6 @@ void zbx_function_param_parse(const char *expr, size_t *param_pos, size_t *lengt } /****************************************************************************** - * * - * Function: zbx_function_param_unquote_dyn * * * * Purpose: unquotes function parameter * * * @@ -3286,8 +3184,6 @@ char *zbx_function_param_unquote_dyn(const char *param, size_t len, int *quoted) } /****************************************************************************** - * * - * Function: zbx_function_param_quote * * * * Purpose: quotes function parameter * * * @@ -3335,8 +3231,6 @@ int zbx_function_param_quote(char **param, int forced) } /****************************************************************************** - * * - * Function: zbx_function_get_param_dyn * * * * Purpose: return parameter by index (Nparam) from parameter list (params) * * * @@ -3373,8 +3267,6 @@ char *zbx_function_get_param_dyn(const char *params, int Nparam) } /****************************************************************************** - * * - * Function: function_validate_parameters * * * * Purpose: validate parameters and give position of terminator if found and * * not quoted * @@ -3467,8 +3359,6 @@ static int function_validate_parameters(const char *expr, char terminator, size_ } /****************************************************************************** - * * - * Function: function_match_parenthesis * * * * Purpose: given the position of opening function parenthesis find the * * position of a closing one * @@ -3498,8 +3388,6 @@ static int function_match_parenthesis(const char *expr, size_t par_l, size_t *pa } /****************************************************************************** - * * - * Function: zbx_function_validate_parameters * * * * Purpose: validate parameters that end with '\0' * * * @@ -3520,8 +3408,6 @@ int zbx_function_validate_parameters(const char *expr, size_t *length) } /****************************************************************************** - * * - * Function: zbx_function_validate * * * * Purpose: check whether expression starts with a valid function * * * @@ -3565,8 +3451,6 @@ static int zbx_function_validate(const char *expr, size_t *par_l, size_t *par_r, } /****************************************************************************** - * * - * Function: zbx_strcmp_natural * * * * Purpose: performs natural comparison of two strings * * * @@ -3611,8 +3495,6 @@ int zbx_strcmp_natural(const char *s1, const char *s2) } /****************************************************************************** - * * - * Function: token_parse_user_macro * * * * Purpose: parses user macro token * * * @@ -3672,8 +3554,6 @@ static int token_parse_user_macro(const char *expression, const char *macro, zbx } /****************************************************************************** - * * - * Function: token_parse_lld_macro * * * * Purpose: parses lld macro token * * * @@ -3725,8 +3605,6 @@ static int token_parse_lld_macro(const char *expression, const char *macro, zbx_ } /****************************************************************************** - * * - * Function: token_parse_expression_macro * * * * Purpose: parses expression macro token * * * @@ -3826,8 +3704,6 @@ static int token_parse_expression_macro(const char *expression, const char *macr } /****************************************************************************** - * * - * Function: token_parse_objectid * * * * Purpose: parses object id token * * * @@ -3879,8 +3755,6 @@ static int token_parse_objectid(const char *expression, const char *macro, zbx_t } /****************************************************************************** - * * - * Function: token_parse_macro_segment * * * * Purpose: parses macro name segment * * * @@ -3954,8 +3828,6 @@ static int token_parse_macro_segment(const char *expression, const char *segment } /****************************************************************************** - * * - * Function: token_parse_macro_name * * * * Purpose: parses macro name * * * @@ -3995,8 +3867,6 @@ static int token_parse_macro_name(const char *expression, const char *ptr, zbx_s } /****************************************************************************** - * * - * Function: token_parse_macro * * * * Purpose: parses normal macro token * * * @@ -4036,8 +3906,6 @@ static int token_parse_macro(const char *expression, const char *macro, zbx_toke } /****************************************************************************** - * * - * Function: token_parse_function * * * * Purpose: parses function inside token * * * @@ -4068,8 +3936,6 @@ static int token_parse_function(const char *expression, const char *func, } /****************************************************************************** - * * - * Function: token_parse_func_macro * * * * Purpose: parses function macro token * * * @@ -4134,8 +4000,6 @@ static int token_parse_func_macro(const char *expression, const char *macro, con } /****************************************************************************** - * * - * Function: token_parse_simple_macro_key * * * * Purpose: parses simple macro token with given key * * * @@ -4223,8 +4087,6 @@ static int token_parse_simple_macro_key(const char *expression, const char *macr } /****************************************************************************** - * * - * Function: token_parse_simple_macro * * * * Purpose: parses simple macro token * * * @@ -4268,8 +4130,6 @@ static int token_parse_simple_macro(const char *expression, const char *macro, z } /****************************************************************************** - * * - * Function: token_parse_nested_macro * * * * Purpose: parses token with nested macros * * * @@ -4365,8 +4225,6 @@ static int token_parse_nested_macro(const char *expression, const char *macro, i } /****************************************************************************** - * * - * Function: zbx_token_find * * * * Purpose: finds token {} inside expression starting at specified position * * also searches for reference if requested * @@ -4499,8 +4357,6 @@ int zbx_token_find(const char *expression, int pos, zbx_token_t *token, zbx_toke } /****************************************************************************** - * * - * Function: zbx_token_parse_user_macro * * * * Purpose: public wrapper for token_parse_user_macro() function * * * @@ -4511,8 +4367,6 @@ int zbx_token_parse_user_macro(const char *expression, const char *macro, zbx_to } /****************************************************************************** - * * - * Function: zbx_token_parse_macro * * * * Purpose: public wrapper for token_parse_macro() function * * * @@ -4523,8 +4377,6 @@ int zbx_token_parse_macro(const char *expression, const char *macro, zbx_token_t } /****************************************************************************** - * * - * Function: zbx_token_parse_objectid * * * * Purpose: public wrapper for token_parse_objectid() function * * * @@ -4535,8 +4387,6 @@ int zbx_token_parse_objectid(const char *expression, const char *macro, zbx_toke } /****************************************************************************** - * * - * Function: zbx_token_parse_lld_macro * * * * Purpose: public wrapper for token_parse_lld_macro() function * * * @@ -4547,8 +4397,6 @@ int zbx_token_parse_lld_macro(const char *expression, const char *macro, zbx_tok } /****************************************************************************** - * * - * Function: zbx_token_parse_nested_macro * * * * Purpose: public wrapper for token_parse_nested_macro() function * * * @@ -4560,8 +4408,6 @@ int zbx_token_parse_nested_macro(const char *expression, const char *macro, int } /****************************************************************************** - * * - * Function: zbx_no_function * * * * Purpose: count calculated item (prototype) formula characters that can be * * skipped without the risk of missing a function * @@ -4627,8 +4473,6 @@ static size_t zbx_no_function(const char *expr) } /****************************************************************************** - * * - * Function: zbx_function_find * * * * Purpose: find the location of the next function and its parameters in * * calculated item (prototype) formula * @@ -4677,8 +4521,6 @@ int zbx_function_find(const char *expr, size_t *func_pos, size_t *par_l, size_t } /****************************************************************************** - * * - * Function: zbx_strmatch_condition * * * * Purpose: check if pattern matches the specified value * * * @@ -4717,8 +4559,6 @@ int zbx_strmatch_condition(const char *value, const char *pattern, unsigned char } /****************************************************************************** - * * - * Function: zbx_number_parse * * * * Purpose: parse a number like "12.345" * * * @@ -4779,8 +4619,6 @@ int zbx_number_parse(const char *number, int *len) } /****************************************************************************** - * * - * Function: zbx_suffixed_number_parse * * * * Purpose: parse a suffixed number like "12.345K" * * * @@ -4807,8 +4645,6 @@ int zbx_suffixed_number_parse(const char *number, int *len) } /****************************************************************************** - * * - * Function: num_param * * * * Purpose: find number of parameters in parameter list * * * @@ -4907,8 +4743,6 @@ int num_param(const char *p) } /****************************************************************************** - * * - * Function: get_param * * * * Purpose: return parameter by index (num) from parameter list (param) * * * @@ -5078,8 +4912,6 @@ int get_param(const char *p, int num, char *buf, size_t max_len, zbx_request_par } /****************************************************************************** - * * - * Function: get_param_len * * * * Purpose: return length of the parameter by index (num) * * from parameter list (param) * @@ -5210,8 +5042,6 @@ static int get_param_len(const char *p, int num, size_t *sz) } /****************************************************************************** - * * - * Function: get_param_dyn * * * * Purpose: return parameter by index (num) from parameter list (param) * * * @@ -5247,8 +5077,6 @@ char *get_param_dyn(const char *p, int num, zbx_request_parameter_type_t *type) } /****************************************************************************** - * * - * Function: replace_key_param * * * * Purpose: replaces an item key, SNMP OID or their parameters when callback * * function returns a new string * @@ -5279,8 +5107,6 @@ static int replace_key_param(char **data, int key_type, size_t l, size_t *r, int } /****************************************************************************** - * * - * Function: replace_key_params_dyn * * * * Purpose: replaces an item key, SNMP OID or their parameters by using * * callback function * @@ -5444,8 +5270,6 @@ clean: } /****************************************************************************** - * * - * Function: remove_param * * * * Purpose: remove parameter by index (num) from parameter list (param) * * * @@ -5493,8 +5317,6 @@ void remove_param(char *param, int num) } /****************************************************************************** - * * - * Function: str_n_in_list * * * * Purpose: check if string is contained in a list of delimited strings * * * @@ -5537,8 +5359,6 @@ int str_n_in_list(const char *list, const char *value, size_t len, char delimite } /****************************************************************************** - * * - * Function: str_in_list * * * * Purpose: check if string is contained in a list of delimited strings * * * @@ -5557,8 +5377,6 @@ int str_in_list(const char *list, const char *value, char delimiter) } /****************************************************************************** - * * - * Function: get_key_param * * * * Purpose: return parameter by index (num) from parameter list (param) * * to be used for keys: key[param1,param2] * @@ -5597,8 +5415,6 @@ int get_key_param(char *param, int num, char *buf, size_t max_len) } /****************************************************************************** - * * - * Function: num_key_param * * * * Purpose: calculate count of parameters from parameter list (param) * * to be used for keys: key[param1,param2] * @@ -5635,8 +5451,6 @@ int num_key_param(char *param) } /****************************************************************************** - * * - * Function: zbx_replace_mem_dyn * * * * Purpose: to replace memory block and allocate more memory if needed * * * @@ -5680,8 +5494,6 @@ int zbx_replace_mem_dyn(char **data, size_t *data_alloc, size_t *data_len, size_ } /****************************************************************************** - * * - * Function: zbx_strsplit * * * * Purpose: splits string * * * @@ -5719,8 +5531,6 @@ void zbx_strsplit(const char *src, char delimiter, char **left, char **right) } /****************************************************************************** - * * - * Function: zbx_trim_number * * * * Purpose: Removes spaces from both ends of the string, then unquotes it if * * double quotation mark is present on both ends of the string. If * @@ -5790,8 +5600,6 @@ static void zbx_trim_number(char *str, int strip_plus_sign) } /****************************************************************************** - * * - * Function: zbx_trim_integer * * * * Purpose: Removes spaces from both ends of the string, then unquotes it if * * double quotation mark is present on both ends of the string, then * @@ -5812,8 +5620,6 @@ void zbx_trim_integer(char *str) } /****************************************************************************** - * * - * Function: zbx_trim_float * * * * Purpose: Removes spaces from both ends of the string, then unquotes it if * * double quotation mark is present on both ends of the string. * @@ -5832,8 +5638,6 @@ void zbx_trim_float(char *str) } /****************************************************************************** - * * - * Function: zbx_get_component_version * * * * Purpose: extracts protocol version from value * * * @@ -5860,8 +5664,6 @@ int zbx_get_component_version(char *value) } /****************************************************************************** - * * - * Function: zbx_str_extract * * * * Purpose: extracts value from a string, unquoting if necessary * * * @@ -5930,8 +5732,6 @@ fail: } /****************************************************************************** - * * - * Function: zbx_truncate_itemkey * * * * Purpose: check the item key characters length and, if the length exceeds * * max allowable characters length, truncate the item key, while * @@ -6026,8 +5826,6 @@ const char *zbx_truncate_itemkey(const char *key, const size_t char_max, char *b } /****************************************************************************** - * * - * Function: zbx_truncate_value * * * * Purpose: check the value characters length and, if the length exceeds * * max allowable characters length, truncate the value * @@ -6063,8 +5861,6 @@ const char *zbx_truncate_value(const char *val, const size_t char_max, char *buf } /****************************************************************************** - * * - * Function: zbx_print_double * * * * Purpose: converts double value to string and truncates insignificant * * precision * @@ -6087,8 +5883,6 @@ const char *zbx_print_double(char *buffer, size_t size, double val) } /****************************************************************************** - * * - * Function: zbx_substr_unquote * * * * Purpose: unquotes valid substring at the specified location * * * @@ -6144,8 +5938,6 @@ char *zbx_substr_unquote(const char *src, size_t left, size_t right) } /****************************************************************************** - * * - * Function: zbx_substr * * * * Purpose: extracts substring at the specified location * * * @@ -6168,8 +5960,6 @@ char *zbx_substr(const char *src, size_t left, size_t right) } /****************************************************************************** - * * - * Function: utf8_chr_next * * * * Purpose: return pointer to the next utf-8 character * * * @@ -6189,8 +5979,6 @@ static const char *utf8_chr_next(const char *str) } /****************************************************************************** - * * - * Function: utf8_chr_prev * * * * Purpose: return pointer to the previous utf-8 character * * * @@ -6213,8 +6001,6 @@ static char *utf8_chr_prev(char *str, const char *start) } /****************************************************************************** - * * - * Function: strchr_utf8 * * * * Purpose: checks if string contains utf-8 character * * * @@ -6253,8 +6039,6 @@ static int strchr_utf8(const char *seq, const char *c) } /****************************************************************************** - * * - * Function: zbx_ltrim_utf8 * * * * Purpose: trim the specified utf-8 characters from the left side of input * * string * @@ -6285,8 +6069,6 @@ void zbx_ltrim_utf8(char *str, const char *charlist) } /****************************************************************************** - * * - * Function: zbx_rtrim_utf8 * * * * Purpose: trim the specified utf-8 characters from the right side of input * * string * diff --git a/src/libs/zbxcommon/time.c b/src/libs/zbxcommon/time.c index c996533adef..89e1d6f6d04 100644 --- a/src/libs/zbxcommon/time.c +++ b/src/libs/zbxcommon/time.c @@ -49,8 +49,6 @@ zbx_time_unit_t zbx_tm_str_to_unit(const char *text) } /****************************************************************************** - * * - * Function: zbx_tm_parse_period * * * * Purpose: parse time period in format