len 514 crmd/lrm.c int len = 0; len 552 crmd/lrm.c int start = len; len 556 crmd/lrm.c len += strlen(param->rap_name) + 2; // include spaces around len 557 crmd/lrm.c list = realloc_safe(list, len + 1); // include null terminator len 46 crmd/pengine.c int len = 15; len 49 crmd/pengine.c len += strlen(id); len 50 crmd/pengine.c len += strlen(PE_STATE_DIR); len 52 crmd/pengine.c filename = calloc(1, len); len 306 crmd/te_utils.c int len = strlen(target_copy); len 309 crmd/te_utils.c local_rc = write(confirm, target_copy, len); len 315 crmd/te_utils.c } else if (local_rc < len) { len 665 fencing/commands.c int len = lpc - last; len 667 fencing/commands.c if(len > 1) { len 668 fencing/commands.c line = malloc(1 + len); len 672 fencing/commands.c snprintf(line, 1 + len, "%s", hosts + last); len 673 fencing/commands.c line[len] = 0; /* Because it might be '\n' */ len 674 fencing/commands.c parse_host_line(line, len, &output); len 149 fencing/standalone_config.c size_t len = strlen(":;") + 1; len 163 fencing/standalone_config.c len += strlen(node); len 166 fencing/standalone_config.c len += strlen(ports); len 173 fencing/standalone_config.c tmp = realloc_safe(tmp, len + offset + 1); len 175 fencing/standalone_config.c tmp = malloc(len); len 61 include/crm/common/util.h char *crm_itoa_stack(int an_int, char *buf, size_t len); len 119 include/crm/common/util.h char *score2char_stack(int score, char *buf, size_t len); len 118 include/crm_internal.h const char *get_cluster_pref(GHashTable * options, pe_cluster_option * option_list, int len, len 122 include/crm_internal.h const char *desc_long, pe_cluster_option * option_list, int len); len 124 include/crm_internal.h void verify_all_options(GHashTable * options, pe_cluster_option * option_list, int len); len 72 include/portability.h char *strndup(const char *str, size_t len); len 552 lib/ais/plugin.c int offset = 1, len = 0; len 556 lib/ais/plugin.c for (len = strlen(path); offset < len; offset++) { len 1607 lib/ais/plugin.c int len = 0; len 1643 lib/ais/plugin.c len = min(local_uname_len, MAX_NAME - 1); len 1645 lib/ais/plugin.c memcpy(msg->uname, local_uname, len); len 1647 lib/ais/plugin.c len = min(strlen(VERSION), MAX_NAME - 1); len 1649 lib/ais/plugin.c memcpy(msg->version, VERSION, len); len 1746 lib/ais/plugin.c int len = ais_data_len(msg); len 1756 lib/ais/plugin.c if (data && len > 12 && strncmp("remove-peer:", data, 12) == 0) { len 606 lib/ais/utils.c int len = 0; len 611 lib/ais/utils.c len = strlen(prefix) + strlen(suffix) + 2; len 613 lib/ais/utils.c ais_malloc0(new_str, (len)); len 615 lib/ais/utils.c new_str[len - 1] = 0; len 424 lib/cib/cib_ops.c int last = 0, lpc = 0, len = 0; len 426 lib/cib/cib_ops.c len = strlen(replace); len 427 lib/cib/cib_ops.c while (lpc <= len) { len 113 lib/cluster/cluster.c int len = 32; len 116 lib/cluster/cluster.c buffer = calloc(1, (len + 1)); len 118 lib/cluster/cluster.c snprintf(buffer, len, "%u", node->id); len 256 lib/cluster/heartbeat.c unsigned int len = 0; len 270 lib/cluster/heartbeat.c len = (orig * 1.1) + 600; /* recommended size */ len 272 lib/cluster/heartbeat.c compressed = malloc(len); len 273 lib/cluster/heartbeat.c rc = BZ2_bzBuffToBuffCompress(compressed, &len, buffer, orig, CRM_BZ2_BLOCKS, 0, CRM_BZ2_WORK); len 284 lib/cluster/heartbeat.c crm_trace("Compression details: %d -> %d", orig, len); len 285 lib/cluster/heartbeat.c ha_msg_addbin(msg, name, buffer, len); len 294 lib/cluster/heartbeat.c crm_debug("Trying to decompress %d bytes", len); len 296 lib/cluster/heartbeat.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &used, compressed, len, 1, 0); len 797 lib/cluster/legacy.c size_t len = 0; len 808 lib/cluster/legacy.c if (CS_OK == confdb_key_get(config, object_handle, key, strlen(key), &buffer, &len)) { len 52 lib/common/io.c int offset = 1, len = 0; len 56 lib/common/io.c for (len = strlen(path); offset < len; offset++) { len 88 lib/common/io.c int len = 40; len 99 lib/common/io.c len += strlen(directory); len 100 lib/common/io.c len += strlen(series); len 101 lib/common/io.c filename = malloc(len); len 129 lib/common/io.c int len = 36; len 134 lib/common/io.c len += strlen(directory); len 135 lib/common/io.c len += strlen(series); len 136 lib/common/io.c series_file = malloc(len); len 197 lib/common/io.c int len = 36; len 211 lib/common/io.c len += strlen(directory); len 212 lib/common/io.c len += strlen(series); len 213 lib/common/io.c series_file = malloc(len); len 952 lib/common/logging.c int len = 0; len 970 lib/common/logging.c len = 2 + strlen(argv[lpc]); /* +1 space, +1 EOS */ len 971 lib/common/logging.c arg_string = realloc_safe(arg_string, len + existing_len); len 1259 lib/common/logging.c int len = 0; len 1264 lib/common/logging.c len = vasprintf (&string, format, ap); len 1265 lib/common/logging.c CRM_ASSERT(len > 0); len 51 lib/common/operations.c int len = 0, offset = 0, ch = 0; len 56 lib/common/operations.c len = strlen(key); len 57 lib/common/operations.c offset = len - 1; len 62 lib/common/operations.c int digits = len - offset; len 120 lib/common/operations.c int len = 12; len 127 lib/common/operations.c len += strlen(op_type); len 128 lib/common/operations.c len += strlen(rsc_id); len 129 lib/common/operations.c len += strlen(notify_type); len 130 lib/common/operations.c if(len > 0) { len 131 lib/common/operations.c op_id = malloc(len); len 142 lib/common/operations.c int len = 80; len 147 lib/common/operations.c len += strlen(transition_key); len 149 lib/common/operations.c fail_state = malloc(len); len 151 lib/common/operations.c snprintf(fail_state, len, "%d:%s", op_status, transition_key); len 159 lib/common/operations.c int len = 80; len 164 lib/common/operations.c len += strlen(transition_key); len 166 lib/common/operations.c fail_state = malloc(len); len 168 lib/common/operations.c snprintf(fail_state, len, "%d:%d;%s", op_status, op_rc, transition_key); len 202 lib/common/operations.c int len = 40; len 207 lib/common/operations.c len += strlen(node); len 209 lib/common/operations.c fail_state = malloc(len); len 211 lib/common/operations.c snprintf(fail_state, len, "%d:%d:%d:%-*s", action_id, transition_id, target_rc, 36, node); len 226 lib/common/remote.c crm_send_tls(gnutls_session_t * session, const char *buf, size_t len) len 236 lib/common/remote.c total_send = len; len 237 lib/common/remote.c crm_trace("Message size: %llu", (unsigned long long) len); len 240 lib/common/remote.c rc = gnutls_record_send(*session, unsent, len); len 244 lib/common/remote.c (unsigned long long) len); len 252 lib/common/remote.c } else if (rc < len) { len 253 lib/common/remote.c crm_debug("Sent %d of %llu bytes", rc, (unsigned long long) len); len 254 lib/common/remote.c len -= rc; len 267 lib/common/remote.c crm_send_plaintext(int sock, const char *buf, size_t len) len 277 lib/common/remote.c total_send = len; len 280 lib/common/remote.c sock, (unsigned long long) len); len 282 lib/common/remote.c rc = write(sock, unsent, len); len 291 lib/common/remote.c crm_perror(LOG_ERR, "Could only write %d of the remaining %d bytes", rc, (int)len); len 295 lib/common/remote.c } else if (rc < len) { len 297 lib/common/remote.c rc, (unsigned long long) len); len 298 lib/common/remote.c len -= rc; len 687 lib/common/remote.c socklen_t len = sizeof(error); len 727 lib/common/remote.c if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { len 34 lib/common/strings.c int len = 0; len 39 lib/common/strings.c len = strlen(prefix) + strlen(suffix) + 2; len 41 lib/common/strings.c new_str = malloc(len); len 44 lib/common/strings.c new_str[len - 1] = 0; len 50 lib/common/strings.c crm_itoa_stack(int an_int, char *buffer, size_t len) len 53 lib/common/strings.c snprintf(buffer, len, "%d", an_int); len 62 lib/common/strings.c int len = 32; len 65 lib/common/strings.c buffer = malloc(len + 1); len 67 lib/common/strings.c snprintf(buffer, len, "%d", an_int); len 199 lib/common/strings.c int len; len 205 lib/common/strings.c for (len = strlen(str) - 1; len >= 0 && str[len] == '\n'; len--) { len 206 lib/common/strings.c str[len] = '\0'; len 396 lib/common/strings.c int len = 0; len 405 lib/common/strings.c len = last + 2; /* +1 space, +1 EOS */ len 406 lib/common/strings.c len += strlen(value); len 407 lib/common/strings.c list = realloc_safe(list, len); len 268 lib/common/utils.c score2char_stack(int score, char *buf, size_t len) len 275 lib/common/utils.c return crm_itoa_stack(score, buf, len); len 356 lib/common/utils.c get_cluster_pref(GHashTable * options, pe_cluster_option * option_list, int len, const char *name) len 360 lib/common/utils.c for (int lpc = 0; lpc < len; lpc++) { len 376 lib/common/utils.c const char *desc_long, pe_cluster_option * option_list, int len) len 388 lib/common/utils.c for (lpc = 0; lpc < len; lpc++) { len 410 lib/common/utils.c verify_all_options(GHashTable * options, pe_cluster_option * option_list, int len) len 414 lib/common/utils.c for (lpc = 0; lpc < len; lpc++) { len 1426 lib/common/utils.c int lpc = 0, len = 0; len 1433 lib/common/utils.c len = strlen(buffer); len 1435 lib/common/utils.c crm_trace("Beginning digest of %d bytes", len); len 1438 lib/common/utils.c md5_buffer(buffer, len, raw_digest); len 2798 lib/common/xml.c int len = strlen(input); len 2801 lib/common/xml.c while(lpc < len) { len 3046 lib/common/xml.c int len = 0; len 3051 lib/common/xml.c len = vasprintf(&id, format, ap); len 3053 lib/common/xml.c CRM_ASSERT(len > 0); len 200 lib/common/xpath.c int len = 0; len 211 lib/common/xpath.c len = strlen(xpath_prefix) + strlen(xpath) + 1; len 212 lib/common/xpath.c xpath_full = malloc(len); len 323 lib/fencing/st_client.c int len = 0; len 354 lib/fencing/st_client.c crm_trace("Adding %s (%dc) at offset %d", device_list->value, adding, len); len 355 lib/fencing/st_client.c list = realloc_safe(list, len + adding + 1); /* +1 EOS */ len 361 lib/fencing/st_client.c sprintf(list + len, "%s%s", len?",":"", device_list->value); len 362 lib/fencing/st_client.c len += adding; len 399 lib/fencing/st_client.c int len = 3; /* =, \n, \0 */ len 413 lib/fencing/st_client.c len += strlen(key); len 414 lib/fencing/st_client.c len += strlen(value); len 419 lib/fencing/st_client.c *args = realloc_safe(*args, last + len); len 715 lib/fencing/st_client.c int len = 0; len 731 lib/fencing/st_client.c output = realloc_safe(output, len + more + 1); len 732 lib/fencing/st_client.c snprintf(output + len, more + 1, "%s", buffer); len 733 lib/fencing/st_client.c len += more; len 830 lib/fencing/st_client.c int pid, status = 0, len, rc = -EPROTO; len 859 lib/fencing/st_client.c len = strlen(action->args); len 932 lib/fencing/st_client.c ret = write(p_write_fd, action->args + total, len - total); len 937 lib/fencing/st_client.c } while (errno == EINTR && total < len); len 939 lib/fencing/st_client.c if (total != len) { len 940 lib/fencing/st_client.c crm_perror(LOG_ERR, "Sent %d not %d bytes", total, len); len 1217 lib/fencing/st_client.c int len = 0; len 1222 lib/fencing/st_client.c len = vasprintf (&string, format, ap); len 1223 lib/fencing/st_client.c CRM_ASSERT(len > 0); len 210 lib/gnu/md5.c md5_buffer (const char *buffer, size_t len, void *resblock) len 218 lib/gnu/md5.c md5_process_bytes (buffer, len, &ctx); len 226 lib/gnu/md5.c md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx) len 233 lib/gnu/md5.c size_t add = 128 - left_over > len ? len : 128 - left_over; len 250 lib/gnu/md5.c len -= add; len 254 lib/gnu/md5.c if (len >= 64) len 259 lib/gnu/md5.c while (len > 64) len 263 lib/gnu/md5.c len -= 64; len 268 lib/gnu/md5.c md5_process_block (buffer, len & ~63, ctx); len 269 lib/gnu/md5.c buffer = (const char *) buffer + (len & ~63); len 270 lib/gnu/md5.c len &= 63; len 275 lib/gnu/md5.c if (len > 0) len 279 lib/gnu/md5.c memcpy (&((char *) ctx->buffer)[left_over], buffer, len); len 280 lib/gnu/md5.c left_over += len; len 305 lib/gnu/md5.c md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx) len 309 lib/gnu/md5.c size_t nwords = len / sizeof (uint32_t); len 319 lib/gnu/md5.c ctx->total[0] += len; len 320 lib/gnu/md5.c if (ctx->total[0] < len) len 86 lib/gnu/md5.h extern void __md5_process_block (const void *buffer, size_t len, len 93 lib/gnu/md5.h extern void __md5_process_bytes (const void *buffer, size_t len, len 118 lib/gnu/md5.h extern void *__md5_buffer (const char *buffer, size_t len, len 464 lib/pengine/rules.c int len = 0; len 473 lib/pengine/rules.c len = strlen(srcstring); len 474 lib/pengine/rules.c while (lpc <= len) { len 486 lib/pengine/rules.c len = len - lpc; len 487 lib/pengine/rules.c len--; len 488 lib/pengine/rules.c if (len <= 0) { len 492 lib/pengine/rules.c *value = calloc(1, len + 1); len 497 lib/pengine/rules.c memcpy(*value, temp, len); len 498 lib/pengine/rules.c (*value)[len] = '\0'; len 952 lib/pengine/rules.c size_t len = 0; len 968 lib/pengine/rules.c len += p - last_match_index + (match_data->pmatch[i].rm_eo - match_data->pmatch[i].rm_so); len 975 lib/pengine/rules.c len += p - last_match_index + 1; len 978 lib/pengine/rules.c if (len - 1 <= 0) { len 982 lib/pengine/rules.c p_dst = result = calloc(1, len); len 252 lib/pengine/utils.c int len = sizeof(score); len 263 lib/pengine/utils.c score2char_stack(node->weight, score, len); len 277 lib/pengine/utils.c int len = sizeof(score); len 281 lib/pengine/utils.c score2char_stack(node->weight, score, len); len 310 lib/pengine/utils.c int len = 0; len 313 lib/pengine/utils.c len = strlen(*dump_text) + strlen(" ") + strlen(key) + strlen("=") + strlen(value) + 1; len 314 lib/pengine/utils.c new_text = calloc(1, len); len 324 lib/pengine/utils.c int len = 0; len 327 lib/pengine/utils.c len = strlen(comment) + strlen(": ") + strlen(node->details->uname) + strlen(" capacity:") + 1; len 328 lib/pengine/utils.c dump_text = calloc(1, len); len 345 lib/pengine/utils.c int len = 0; len 348 lib/pengine/utils.c len = strlen(comment) + strlen(": ") + strlen(rsc->id) + strlen(" utilization on ") len 350 lib/pengine/utils.c dump_text = calloc(1, len); len 327 lib/services/services.c int len = 3; len 334 lib/services/services.c len += strlen(key); len 335 lib/services/services.c long_opt = calloc(1, len); len 337 lib/services/services.c long_opt[len - 1] = 0; len 42 lib/services/services_linux.c int rc = 0, len = 0; len 53 lib/services/services_linux.c len = strlen(op->stderr_data); len 55 lib/services/services_linux.c crm_trace("Reading %s stderr into offset %d", op->id, len); len 58 lib/services/services_linux.c len = strlen(op->stdout_data); len 60 lib/services/services_linux.c crm_trace("Reading %s stdout into offset %d", op->id, len); len 63 lib/services/services_linux.c crm_trace("Reading %s %s into offset %d", op->id, is_stderr?"stderr":"stdout", len); len 71 lib/services/services_linux.c data = realloc_safe(data, len + rc + 1); len 72 lib/services/services_linux.c len += sprintf(data + len, "%s", buf); len 119 lib/services/upstart.c int len, lpc; len 127 lib/services/upstart.c len = strlen(match) - shuffle; len 128 lib/services/upstart.c for (lpc = 1; lpc <= len; lpc++) { len 140 libltdl/loaders/loadlibrary.c size_t len; len 151 libltdl/loaders/loadlibrary.c len = LT_STRLEN (filename); len 153 libltdl/loaders/loadlibrary.c if (len >= MAX_PATH) len 165 libltdl/loaders/loadlibrary.c len = 0; len 168 libltdl/loaders/loadlibrary.c len = 0; len 178 libltdl/loaders/loadlibrary.c if (!len) len 179 libltdl/loaders/loadlibrary.c len = strlen (wpath); len 181 libltdl/loaders/loadlibrary.c if (len + 1 >= MAX_PATH) len 187 libltdl/loaders/loadlibrary.c wpath[len] = '.'; len 188 libltdl/loaders/loadlibrary.c wpath[len+1] = '\0'; len 287 libltdl/loaders/loadlibrary.c size_t len; len 300 libltdl/loaders/loadlibrary.c len = LT_STRLEN (error_message); len 301 libltdl/loaders/loadlibrary.c if (len && error_message[len - 1] == '\n') len 302 libltdl/loaders/loadlibrary.c error_message[--len] = LT_EOS_CHAR; len 303 libltdl/loaders/loadlibrary.c if (len && error_message[len - 1] == '\r') len 304 libltdl/loaders/loadlibrary.c error_message[--len] = LT_EOS_CHAR; len 306 libltdl/loaders/loadlibrary.c return len ? error_message : default_errmsg; len 1002 libltdl/ltdl.c size_t len = LT_STRLEN (str); len 1010 libltdl/ltdl.c if (len > 3 && str[0] == '\'') len 158 mcp/corosync.c size_t len = 0; len 169 mcp/corosync.c if (CS_OK == confdb_key_get(config, object_handle, key, strlen(key), &buffer, &len)) { len 280 pengine/master.c size_t len = sizeof(score); len 311 pengine/master.c score2char_stack(child->sort_index, score, len); len 663 pengine/master.c size_t len = sizeof(score); len 765 pengine/master.c score2char_stack(child_rsc->sort_index, score, len); len 2188 pengine/native.c int len = 0; len 2202 pengine/native.c len = strlen(rsc->id); len 2203 pengine/native.c if(len > rsc_width) { len 2204 pengine/native.c rsc_width = len + 2; len 2256 pengine/native.c len = strlen(details); len 2257 pengine/native.c if(len > detail_width) { len 2258 pengine/native.c detail_width = len; len 2686 pengine/native.c int len = 0; len 2692 pengine/native.c len = strlen(last_rsc_id); len 2695 pengine/native.c lpc = len - 1; len 2734 pengine/native.c last_rsc_id = calloc(1, len + 2); len 2735 pengine/native.c memcpy(last_rsc_id, tmp, len); len 2737 pengine/native.c last_rsc_id[len] = '0'; len 2738 pengine/native.c last_rsc_id[len + 1] = 0; len 102 pengine/notif.c int len = 0; len 109 pengine/notif.c len = 2 + strlen(node->details->uname); len 115 pengine/notif.c node_list = realloc_safe(node_list, len + existing_len); len 133 pengine/notif.c len = 2 + strlen(node->details->uname); len 134 pengine/notif.c metal_list = realloc_safe(metal_list, len + existing_len); len 199 pengine/notif.c int len = 2 + strlen(rsc_id); /* +1 space, +1 EOS */ len 205 pengine/notif.c crm_trace("Adding %s (%dc) at offset %d", rsc_id, len - 2, existing_len); len 206 pengine/notif.c *rsc_list = realloc_safe(*rsc_list, len + existing_len); len 216 pengine/notif.c int len = 2 + strlen(uname); len 222 pengine/notif.c crm_trace("Adding %s (%dc) at offset %d", uname, len - 2, existing_len); len 223 pengine/notif.c *node_list = realloc_safe(*node_list, len + existing_len); len 27 replace/strndup.c strndup(const char *str, size_t len) len 29 replace/strndup.c size_t n = strnlen(str, len); len 30 replace/strndup.c char *new = (char *)malloc(len + 1); len 37 replace/strndup.c return (char *)memcpy(new, str, len); len 36 replace/unsetenv.c const size_t len = strlen(name); len 40 replace/unsetenv.c if (!strncmp(*ep, name, len) && (*ep)[len] == '=') { len 3651 tools/crm_mon.c int len = 25; /* Note: Check extra padding on the Subject line below */ len 3683 tools/crm_mon.c len += strlen(crm_mail_prefix); len 3684 tools/crm_mon.c len += strlen(task); len 3685 tools/crm_mon.c len += strlen(rsc); len 3686 tools/crm_mon.c len += strlen(node); len 3687 tools/crm_mon.c len += strlen(desc); len 3688 tools/crm_mon.c len++; len 3690 tools/crm_mon.c crm_mail_subject = calloc(1, len); len 3692 tools/crm_mon.c snprintf(crm_mail_subject, len, "%s - %s event for %s on %s: %s\r\n", crm_mail_prefix, task, len 3695 tools/crm_mon.c len = 0; len 3696 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, "\r\n%s\r\n", crm_mail_prefix); len 3697 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, "====\r\n\r\n"); len 3699 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, len 3702 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, len 3706 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, "\r\nDetails:\r\n"); len 3707 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, len 3710 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len, len 3712 tools/crm_mon.c len += snprintf(crm_mail_body + len, BODY_MAX - len,