|
corosync
|
#include <config.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <errno.h>#include <sys/time.h>#include <assert.h>#include <sys/socket.h>#include <libknet.h>#include <corosync/corotypes.h>#include <corosync/corodefs.h>#include <corosync/icmap.h>#include <corosync/logsys.h>#include "util.h"
Go to the source code of this file.
Data Structures | |
| struct | service_names |
Macros | |
| #define | UTILS_IS_VALID_KNET_LIST_MAX_ITEMS 256 |
Definition at line 129 of file util.c.
References COROSYNC_DONE_EXIT, log_printf, LOGSYS_LEVEL_ERROR, LOGSYS_LEVEL_NOTICE, logsys_system_fini(), and nodeid.
Definition at line 175 of file util.c.
References CS_OK, icmap_get_string(), LOCALSTATEDIR, and nodeid.
Referenced by main().
Definition at line 143 of file util.c.
References CS_MAX_NAME_LENGTH, cs_name_t::length, min, nodeid, and cs_name_t::value.
| LOGSYS_DECLARE_SUBSYS | ( | "MAIN" | ) |
Definition at line 156 of file util.c.
References CS_MAX_NAME_LENGTH, cs_name_t::length, nodeid, and cs_name_t::value.
Get the short name of a service from the service_id.
Definition at line 75 of file util.c.
References service_names::c_name, service_names::c_val, and nodeid.
| int util_is_valid_knet_compress_model | ( | const char * | val, |
| const char ** | list_str, | ||
| int | machine_parseable_str, | ||
| const char * | error_string_prefix, | ||
| const char ** | error_string | ||
| ) |
Definition at line 321 of file util.c.
References nodeid, and UTILS_IS_VALID_KNET_LIST_MAX_ITEMS.
| int util_is_valid_knet_crypto_cipher | ( | const char * | val, |
| const char ** | list_str, | ||
| int | machine_parseable_str, | ||
| const char * | error_string_prefix, | ||
| const char ** | error_string | ||
| ) |
Definition at line 356 of file util.c.
References nodeid, and UTILS_IS_VALID_KNET_LIST_MAX_ITEMS.
| int util_is_valid_knet_crypto_hash | ( | const char * | val, |
| const char ** | list_str, | ||
| int | machine_parseable_str, | ||
| const char * | error_string_prefix, | ||
| const char ** | error_string | ||
| ) |
Definition at line 404 of file util.c.
References nodeid, and UTILS_IS_VALID_KNET_LIST_MAX_ITEMS.