length 108 crmd/pengine.c pe_ipc_dispatch(const char *buffer, ssize_t length, gpointer userdata) length 70 include/crm/common/internal.h bool crm_compress_string(const char *data, int length, int max, char **result, length 73 include/crm/common/mainloop.h int (*dispatch) (const char *buffer, ssize_t length, gpointer userdata); length 139 include/crm/compatibility.h # define crm_malloc0(malloc_obj, length) do { \ length 140 include/crm/compatibility.h malloc_obj = malloc(length); \ length 142 include/crm/compatibility.h crm_err("Failed allocation of %lu bytes", (unsigned long)length); \ length 145 include/crm/compatibility.h memset(malloc_obj, 0, length); \ length 148 include/crm/compatibility.h # define crm_malloc(malloc_obj, length) do { \ length 149 include/crm/compatibility.h malloc_obj = malloc(length); \ length 151 include/crm/compatibility.h crm_err("Failed allocation of %lu bytes", (unsigned long)length); \ length 156 include/crm/compatibility.h # define crm_realloc(realloc_obj, length) do { \ length 157 include/crm/compatibility.h realloc_obj = realloc(realloc_obj, length); \ length 384 include/crm_internal.h int remote_proxy_dispatch(const char *buffer, ssize_t length, gpointer userdata); length 168 lib/ais/utils.h # define ais_malloc0(malloc_obj, length) do { \ length 169 lib/ais/utils.h malloc_obj = malloc(length); \ length 173 lib/ais/utils.h memset(malloc_obj, 0, length); \ length 93 lib/cib/cib_native.c cib_native_dispatch_internal(const char *buffer, ssize_t length, gpointer userdata) length 458 lib/cluster/cpg.c cluster->group.length = 0; length 464 lib/cluster/cpg.c cluster->group.length = 1 + QB_MIN(127, strlen(cluster->group.value)); length 564 lib/cluster/legacy.c pcmk_mcp_dispatch(const char *buffer, ssize_t length, gpointer userdata) length 125 lib/common/io.c int start = 0, length = 0, read_len = 0; length 150 lib/common/io.c length = ftell(file_strm); length 153 lib/common/io.c CRM_ASSERT(length >= 0); length 156 lib/common/io.c if (length <= 0) { length 162 lib/common/io.c crm_trace("Reading %d bytes from file", length); length 163 lib/common/io.c buffer = calloc(1, (length + 1)); length 164 lib/common/io.c read_len = fread(buffer, 1, length, file_strm); length 165 lib/common/io.c if (read_len != length) { length 166 lib/common/io.c crm_err("Calculated and read bytes differ: %d vs. %d", length, read_len); length 399 lib/common/io.c int length, read_len; length 409 lib/common/io.c length = ftell(fp); length 411 lib/common/io.c if (length > 0) { length 412 lib/common/io.c contents = calloc(length + 1, sizeof(char)); length 418 lib/common/io.c crm_trace("Reading %d bytes from %s", length, filename); length 420 lib/common/io.c read_len = fread(contents, 1, length, fp); /* Coverity: False positive */ length 421 lib/common/io.c if (read_len != length) { length 635 lib/common/mainloop.c int (*dispatch_fn_ipc) (const char *buffer, ssize_t length, gpointer userdata); length 413 lib/common/strings.c crm_compress_string(const char *data, int length, int max, char **result, unsigned int *result_len) length 422 lib/common/strings.c max = (length * 1.1) + 600; /* recommended size */ length 433 lib/common/strings.c rc = BZ2_bzBuffToBuffCompress(compressed, result_len, uncompressed, length, CRM_BZ2_BLOCKS, 0, length 439 lib/common/strings.c crm_err("Compression of %d bytes failed: %s (%d)", length, bz2_strerror(rc), rc); length 448 lib/common/strings.c length, *result_len, length / (*result_len), length 453 lib/common/strings.c length, *result_len, length / (*result_len)); length 2858 lib/common/xml.c size_t length = 0, read_len = 0; length 2877 lib/common/xml.c buffer = realloc_safe(buffer, XML_BUFFER_SIZE + length + 1); length 2878 lib/common/xml.c read_len = BZ2_bzRead(&rc, bz_file, buffer + length, XML_BUFFER_SIZE); length 2883 lib/common/xml.c length += read_len; length 2887 lib/common/xml.c buffer[length] = '\0'; length 3180 lib/common/xml.c crm_xml_escape_shuffle(char *text, int start, int *length, const char *replace) length 3185 lib/common/xml.c *length += offset; length 3186 lib/common/xml.c text = realloc_safe(text, *length); length 3188 lib/common/xml.c for (lpc = (*length) - 1; lpc > (start + offset); lpc--) { length 3201 lib/common/xml.c int length = 1 + strlen(text); length 3219 lib/common/xml.c for (index = 0; index < length; index++) { length 3224 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, "<"); length 3228 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, ">"); length 3232 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, """); length 3236 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, "'"); length 3240 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, "&"); length 3245 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, " "); length 3250 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, "\\n"); length 3254 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, "\\r"); length 3268 lib/common/xml.c copy = crm_xml_escape_shuffle(copy, index, &length, replace); length 149 lib/fencing/st_client.c int stonith_dispatch_internal(const char *buffer, ssize_t length, gpointer userdata); length 2366 lib/fencing/st_client.c stonith_dispatch_internal(const char *buffer, ssize_t length, gpointer userdata) length 297 lib/lrmd/lrmd_client.c lrmd_ipc_dispatch(const char *buffer, ssize_t length, gpointer userdata) length 128 lib/lrmd/proxy_common.c remote_proxy_dispatch(const char *buffer, ssize_t length, gpointer userdata) length 1137 lib/services/services.c int start = 0, length = 0, read_len = 0; length 1151 lib/services/services.c length = ftell(file_strm); length 1154 lib/services/services.c CRM_ASSERT(length >= 0); length 1157 lib/services/services.c if (length <= 0) { length 1164 lib/services/services.c crm_trace("Reading %d bytes from file", length); length 1165 lib/services/services.c *output = calloc(1, (length + 1)); length 1166 lib/services/services.c read_len = fread(*output, 1, length, file_strm); length 1167 lib/services/services.c if (read_len != length) { length 1169 lib/services/services.c length, read_len); length 53 libltdl/lt__strl.c size_t length; length 61 libltdl/lt__strl.c length=strlen(dst); length 67 libltdl/lt__strl.c for ( p = dst + length, q = src; length 68 libltdl/lt__strl.c (*q != 0) && (length < dstsize - 1) ; length 69 libltdl/lt__strl.c length++, p++, q++ ) length 72 libltdl/lt__strl.c dst[length]='\0'; length 78 libltdl/lt__strl.c length++; length 80 libltdl/lt__strl.c return length; length 101 libltdl/lt__strl.c size_t length=0; length 112 libltdl/lt__strl.c for ( p=dst, q=src, length=0 ; length 113 libltdl/lt__strl.c (*q != 0) && (length < dstsize-1) ; length 114 libltdl/lt__strl.c length++, p++, q++ ) length 117 libltdl/lt__strl.c dst[length]='\0'; length 123 libltdl/lt__strl.c length++; length 125 libltdl/lt__strl.c return length; length 89 pengine/native.c int length = 0; length 100 pengine/native.c length = g_hash_table_size(rsc->allowed_nodes); length 102 pengine/native.c if (length > 0) { length 137 pengine/native.c chosen->details->uname, rsc->id, length); length 148 pengine/native.c chosen ? chosen->details->uname : "<none>", rsc->id, length); length 229 tools/crm_node.c node_mcp_dispatch(const char *buffer, ssize_t length, gpointer userdata) length 76 tools/crm_resource.c resource_ipc_callback(const char *buffer, ssize_t length, gpointer userdata) length 53 tools/crmadmin.c int admin_msg_callback(const char *buffer, ssize_t length, gpointer userdata); length 458 tools/crmadmin.c admin_msg_callback(const char *buffer, ssize_t length, gpointer userdata)