Source
421
421
} \
422
422
while (0)
423
423
424
424
/* to avoid dependency on libzbxnix.a */
425
425
#define THIS_SHOULD_NEVER_HAPPEN_NO_BACKTRACE \
426
426
zbx_error("ERROR [file and function: <%s,%s>, revision:%s, line:%d] Something impossible has just" \
427
427
" happened.", __FILE__, __func__, ZABBIX_REVISION, __LINE__)
428
428
429
429
#define ARRSIZE(a) (sizeof(a) / sizeof(*a))
430
430
431
-
void zbx_print_help(const char *param, const char **help_message, const char **usage_message);
432
-
void zbx_print_usage(const char **usage_message);
431
+
void zbx_print_help(const char *param, const char **help_message, const char **usage_message, const char *progname);
432
+
void zbx_print_usage(const char **usage_message, const char *progname);
433
433
void zbx_print_version(const char *title_message);
434
434
435
435
const char *get_program_name(const char *path);
436
436
typedef unsigned char (*zbx_get_program_type_f)(void);
437
437
typedef const char *(*zbx_get_progname_f)(void);
438
438
typedef int (*zbx_get_config_forks_f)(unsigned char process_type);
439
439
typedef const char *(*zbx_get_config_str_f)(void);
440
440
typedef int (*zbx_get_config_int_f)(void);
441
441
442
442
typedef enum