80 if (service_id == servicenames[
i].
c_val) {
81 return (servicenames[
i].
c_name);
95 name1->length)) == 0);
133 "Corosync Cluster Engine exiting normally");
152 return ((
char *)name->
value);
157 ((
char *)name->
value)[
sizeof (name->
value) - 1] =
'\0';
168 str1->length)) == 0);
180 if (
path[0] ==
'\0') {
194static int safe_strcat(
char *
dst,
size_t dst_len,
const char *
src)
234 *
error_string =
"internal error - cannot get knet crypto list";
239 *
error_string =
"internal error - too many knet crypto list entries";
244 *
error_string =
"internal error - cannot get knet crypto list";
248 for (
zi = 0;
zi < entries;
zi++) {
250 }
else if (
zi == entries - 1) {
300 *
error_string =
"internal error - cannot get knet compress list";
305 *
error_string =
"internal error - too many knet compress list entries";
310 *
error_string =
"internal error - cannot get knet compress list";
314 for (
zi = 0;
zi < entries;
zi++) {
316 }
else if (
zi == entries - 1) {
int64_t cs_time_t
cs_time_t
#define CS_MAX_NAME_LENGTH
cs_error_t icmap_get_string(const char *key_name, char **str)
Shortcut for icmap_get for string type.
#define LOGSYS_LEVEL_ERROR
#define log_printf(level, format, args...)
void logsys_system_fini(void)
logsys_system_fini
#define LOGSYS_LEVEL_NOTICE
#define LOGSYS_DECLARE_SUBSYS(subsys)
The LOGSYS_DECLARE_SUBSYS macro.
uint8_t value[CS_MAX_NAME_LENGTH]
int util_is_valid_knet_crypto_model(const char *val, const char **list_str, int machine_parseable_str, const char *error_string_prefix, const char **error_string)
char * getcs_name_t(cs_name_t *name)
const char * get_state_dir(void)
cs_time_t clust_time_now(void)
Get the time of day and convert to nanoseconds.
const char * short_service_name_get(uint32_t service_id, char *buf, size_t buf_size)
Get the short name of a service from the service_id.
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)
int name_match(cs_name_t *name1, cs_name_t *name2)
Compare two names.
void setcs_name_t(cs_name_t *name, char *str)
void _corosync_out_of_memory_error(void)
void _corosync_exit_error(enum e_corosync_done err, const char *file, unsigned int line) __attribute__((noreturn))
int cs_name_tisEqual(cs_name_t *str1, char *str2)