buffer 569 daemons/attrd/attrd_ipc.c rc = pcmk__ipc_msg_append(&client->buffer, data); buffer 580 daemons/attrd/attrd_ipc.c g_byte_array_free(client->buffer, TRUE); buffer 581 daemons/attrd/attrd_ipc.c client->buffer = NULL; buffer 589 daemons/attrd/attrd_ipc.c if (client->buffer != NULL) { buffer 590 daemons/attrd/attrd_ipc.c g_byte_array_free(client->buffer, TRUE); buffer 591 daemons/attrd/attrd_ipc.c client->buffer = NULL; buffer 317 daemons/based/based_callbacks.c rc = pcmk__ipc_msg_append(&cib_client->buffer, data); buffer 328 daemons/based/based_callbacks.c g_byte_array_free(cib_client->buffer, TRUE); buffer 329 daemons/based/based_callbacks.c cib_client->buffer = NULL; buffer 337 daemons/based/based_callbacks.c if (cib_client->buffer != NULL) { buffer 338 daemons/based/based_callbacks.c g_byte_array_free(cib_client->buffer, TRUE); buffer 339 daemons/based/based_callbacks.c cib_client->buffer = NULL; buffer 410 daemons/based/based_callbacks.c char buffer[32]; buffer 417 daemons/based/based_callbacks.c snprintf(buffer, 32, "%" PRIu64, ping_seq); buffer 418 daemons/based/based_callbacks.c crm_trace("Requesting peer digests (%s)", buffer); buffer 422 daemons/based/based_callbacks.c crm_xml_add(ping, PCMK__XA_CIB_PING_ID, buffer); buffer 387 daemons/controld/controld_control.c rc = pcmk__ipc_msg_append(&client->buffer, data); buffer 398 daemons/controld/controld_control.c g_byte_array_free(client->buffer, TRUE); buffer 399 daemons/controld/controld_control.c client->buffer = NULL; buffer 407 daemons/controld/controld_control.c if (client->buffer != NULL) { buffer 408 daemons/controld/controld_control.c g_byte_array_free(client->buffer, TRUE); buffer 409 daemons/controld/controld_control.c client->buffer = NULL; buffer 137 daemons/execd/pacemaker-execd.c rc = pcmk__ipc_msg_append(&client->buffer, data); buffer 148 daemons/execd/pacemaker-execd.c g_byte_array_free(client->buffer, TRUE); buffer 149 daemons/execd/pacemaker-execd.c client->buffer = NULL; buffer 157 daemons/execd/pacemaker-execd.c if (client->buffer != NULL) { buffer 158 daemons/execd/pacemaker-execd.c g_byte_array_free(client->buffer, TRUE); buffer 159 daemons/execd/pacemaker-execd.c client->buffer = NULL; buffer 257 daemons/execd/remoted_proxy.c rc = pcmk__ipc_msg_append(&client->buffer, data); buffer 268 daemons/execd/remoted_proxy.c g_byte_array_free(client->buffer, TRUE); buffer 269 daemons/execd/remoted_proxy.c client->buffer = NULL; buffer 277 daemons/execd/remoted_proxy.c if (client->buffer != NULL) { buffer 278 daemons/execd/remoted_proxy.c g_byte_array_free(client->buffer, TRUE); buffer 279 daemons/execd/remoted_proxy.c client->buffer = NULL; buffer 270 daemons/execd/remoted_tls.c char buffer[INET6_ADDRSTRLEN] = { 0, }; buffer 272 daemons/execd/remoted_tls.c pcmk__sockaddr2str(addr->ai_addr, buffer); buffer 273 daemons/execd/remoted_tls.c crm_trace("Attempting to bind to address %s", buffer); buffer 287 daemons/execd/remoted_tls.c crm_err("Local address reuse not allowed on %s: %s", buffer, pcmk_rc_str(rc)); buffer 297 daemons/execd/remoted_tls.c crm_err("Couldn't disable IPV6-only on %s: %s", buffer, pcmk_rc_str(rc)); buffer 305 daemons/execd/remoted_tls.c crm_err("Cannot bind to %s: %s", buffer, pcmk_rc_str(rc)); buffer 312 daemons/execd/remoted_tls.c crm_err("Cannot listen on %s: %s", buffer, pcmk_rc_str(rc)); buffer 275 daemons/fenced/fenced_commands.c char buffer[64] = { 0, }; buffer 289 daemons/fenced/fenced_commands.c snprintf(buffer, sizeof(buffer), "pcmk_%s_timeout", action); buffer 290 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, buffer); buffer 926 daemons/fenced/fenced_commands.c char *buffer = NULL; buffer 936 daemons/fenced/fenced_commands.c buffer = g_hash_table_lookup(metadata_cache, agent); buffer 937 daemons/fenced/fenced_commands.c if (buffer == NULL) { buffer 947 daemons/fenced/fenced_commands.c NULL, &buffer, 10); buffer 949 daemons/fenced/fenced_commands.c if (rc || !buffer) { buffer 953 daemons/fenced/fenced_commands.c g_hash_table_replace(metadata_cache, pcmk__str_copy(agent), buffer); buffer 956 daemons/fenced/fenced_commands.c *metadata = pcmk__xml_parse(buffer); buffer 103 daemons/fenced/pacemaker-fenced.c rc = pcmk__ipc_msg_append(&c->buffer, data); buffer 114 daemons/fenced/pacemaker-fenced.c g_byte_array_free(c->buffer, TRUE); buffer 115 daemons/fenced/pacemaker-fenced.c c->buffer = NULL; buffer 123 daemons/fenced/pacemaker-fenced.c if (c->buffer != NULL) { buffer 124 daemons/fenced/pacemaker-fenced.c g_byte_array_free(c->buffer, TRUE); buffer 125 daemons/fenced/pacemaker-fenced.c c->buffer = NULL; buffer 222 daemons/pacemakerd/pcmkd_messages.c rc = pcmk__ipc_msg_append(&c->buffer, data); buffer 233 daemons/pacemakerd/pcmkd_messages.c g_byte_array_free(c->buffer, TRUE); buffer 234 daemons/pacemakerd/pcmkd_messages.c c->buffer = NULL; buffer 242 daemons/pacemakerd/pcmkd_messages.c if (c->buffer != NULL) { buffer 243 daemons/pacemakerd/pcmkd_messages.c g_byte_array_free(c->buffer, TRUE); buffer 244 daemons/pacemakerd/pcmkd_messages.c c->buffer = NULL; buffer 239 daemons/schedulerd/schedulerd_messages.c rc = pcmk__ipc_msg_append(&c->buffer, data); buffer 250 daemons/schedulerd/schedulerd_messages.c g_byte_array_free(c->buffer, TRUE); buffer 251 daemons/schedulerd/schedulerd_messages.c c->buffer = NULL; buffer 259 daemons/schedulerd/schedulerd_messages.c if (c->buffer != NULL) { buffer 260 daemons/schedulerd/schedulerd_messages.c g_byte_array_free(c->buffer, TRUE); buffer 261 daemons/schedulerd/schedulerd_messages.c c->buffer = NULL; buffer 107 include/crm/common/ipc_internal.h char *buffer; buffer 180 include/crm/common/ipc_internal.h GByteArray *buffer; buffer 255 include/crm/common/ipc_internal.h int pcmk__ipc_msg_append(GByteArray **buffer, guint8 *data); buffer 96 include/crm/common/mainloop.h int (*dispatch) (const char *buffer, ssize_t length, gpointer userdata); buffer 171 include/crm/common/strings_internal.h void pcmk__g_strcat(GString *buffer, ...) G_GNUC_NULL_TERMINATED; buffer 83 include/crm/common/util.h char *crm_md5sum(const char *buffer); buffer 30 include/crm/common/xml_io_internal.h void pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer, buffer 82 include/crm/lrmd_internal.h int remote_proxy_dispatch(const char *buffer, ssize_t length, buffer 174 lib/cib/cib_native.c cib_native_dispatch_internal(const char *buffer, ssize_t length, buffer 189 lib/cib/cib_native.c msg = pcmk__xml_parse(buffer); buffer 291 lib/cib/cib_remote.c free(private->command.buffer); buffer 292 lib/cib/cib_remote.c private->command.buffer = NULL; buffer 338 lib/cib/cib_remote.c free(private->command.buffer); buffer 339 lib/cib/cib_remote.c free(private->callback.buffer); buffer 340 lib/cib/cib_remote.c private->command.buffer = NULL; buffer 341 lib/cib/cib_remote.c private->callback.buffer = NULL; buffer 180 lib/common/crmcommon_private.h void pcmk__dump_xml_attr(const xmlAttr *attr, GString *buffer); buffer 63 lib/common/digest.c GString *buffer = g_string_sized_new(1024); buffer 66 lib/common/digest.c g_string_append_c(buffer, ' '); buffer 67 lib/common/digest.c pcmk__xml_string(xml, 0, buffer, 0); buffer 68 lib/common/digest.c g_string_append_c(buffer, '\n'); buffer 70 lib/common/digest.c return buffer; buffer 86 lib/common/digest.c GString *buffer = dump_xml_for_digest(input); buffer 90 lib/common/digest.c CRM_CHECK(buffer->len > 2, buffer 91 lib/common/digest.c g_string_free(buffer, TRUE); buffer 94 lib/common/digest.c digest = crm_md5sum((const char *) buffer->str); buffer 97 lib/common/digest.c g_string_free(buffer, TRUE); buffer 251 lib/common/digest.c crm_md5sum(const char *buffer) buffer 256 lib/common/digest.c if (buffer == NULL) { buffer 260 lib/common/digest.c raw_digest = g_compute_checksum_for_string(G_CHECKSUM_MD5, buffer, -1); buffer 314 lib/common/ipc_client.c dispatch_ipc_data(const char *buffer, pcmk_ipc_api_t *api) buffer 319 lib/common/ipc_client.c if (buffer == NULL) { buffer 325 lib/common/ipc_client.c msg = pcmk__xml_parse(buffer); buffer 355 lib/common/ipc_client.c dispatch_ipc_source_data(const char *buffer, ssize_t length, gpointer user_data) buffer 360 lib/common/ipc_client.c dispatch_ipc_data(buffer, api); buffer 856 lib/common/ipc_client.c GByteArray *buffer; buffer 895 lib/common/ipc_client.c client->buffer = NULL; buffer 996 lib/common/ipc_client.c if (client->buffer != NULL) { buffer 1092 lib/common/ipc_client.c guint8 *buffer = NULL; buffer 1096 lib/common/ipc_client.c buffer = g_malloc0(crm_ipc_default_buffer_size()); buffer 1100 lib/common/ipc_client.c ssize_t bytes = qb_ipcc_event_recv(client->ipc, buffer, buffer 1103 lib/common/ipc_client.c header = (pcmk__ipc_header_t *)(void *) buffer; buffer 1130 lib/common/ipc_client.c rc = pcmk__ipc_msg_append(&client->buffer, buffer); buffer 1143 lib/common/ipc_client.c if (client->buffer->len > 0) { buffer 1145 lib/common/ipc_client.c rc = client->buffer->len - sizeof(pcmk__ipc_header_t); buffer 1149 lib/common/ipc_client.c g_free(buffer); buffer 1158 lib/common/ipc_client.c if (client->buffer != NULL) { buffer 1159 lib/common/ipc_client.c g_byte_array_free(client->buffer, TRUE); buffer 1160 lib/common/ipc_client.c client->buffer = NULL; buffer 1168 lib/common/ipc_client.c CRM_CHECK(client->buffer != NULL, return NULL); buffer 1169 lib/common/ipc_client.c return (const char *) (client->buffer->data + sizeof(pcmk__ipc_header_t)); buffer 1178 lib/common/ipc_client.c if (client->buffer == NULL) { buffer 1182 lib/common/ipc_client.c header = (pcmk__ipc_header_t *)(void*) client->buffer->data; buffer 1198 lib/common/ipc_client.c guint8 *buffer = NULL; buffer 1214 lib/common/ipc_client.c buffer = g_malloc0(crm_ipc_default_buffer_size()); buffer 1220 lib/common/ipc_client.c *bytes = qb_ipcc_recv(client->ipc, buffer, crm_ipc_default_buffer_size(), buffer 1223 lib/common/ipc_client.c hdr = (pcmk__ipc_header_t *) (void *) buffer; buffer 1244 lib/common/ipc_client.c rc = pcmk__ipc_msg_append(&client->buffer, buffer); buffer 1255 lib/common/ipc_client.c data = buffer + sizeof(pcmk__ipc_header_t); buffer 1268 lib/common/ipc_client.c if (client->buffer->len > 0) { buffer 1270 lib/common/ipc_client.c client->buffer->len, reply_id, client->server_name, buffer 1293 lib/common/ipc_client.c g_free(buffer); buffer 1303 lib/common/ipc_client.c char *buffer = pcmk__assert_alloc(crm_ipc_default_buffer_size(), buffer 1306 lib/common/ipc_client.c qb_rc = qb_ipcc_recv(client->ipc, buffer, crm_ipc_default_buffer_size(), buffer 1316 lib/common/ipc_client.c header = (pcmk__ipc_header_t *)(void *) buffer; buffer 1334 lib/common/ipc_client.c free(buffer); buffer 99 lib/common/ipc_common.c pcmk__ipc_msg_append(GByteArray **buffer, guint8 *data) buffer 111 lib/common/ipc_common.c full_header = (pcmk__ipc_header_t *) (void *) (*buffer)->data; buffer 117 lib/common/ipc_common.c CRM_CHECK(buffer != NULL && *buffer != NULL && header->part_id != 0, buffer 120 lib/common/ipc_common.c g_byte_array_append(*buffer, payload, header->size); buffer 132 lib/common/ipc_common.c CRM_CHECK(buffer != NULL && *buffer == NULL, return EINVAL); buffer 133 lib/common/ipc_common.c *buffer = g_byte_array_new(); buffer 144 lib/common/ipc_common.c g_byte_array_append(*buffer, data, buffer 148 lib/common/ipc_common.c full_header = (pcmk__ipc_header_t *) (void *) (*buffer)->data; buffer 155 lib/common/ipc_common.c CRM_CHECK(buffer != NULL && *buffer != NULL, return EINVAL); buffer 157 lib/common/ipc_common.c g_byte_array_append(*buffer, payload, header->size - 1); buffer 171 lib/common/ipc_common.c CRM_CHECK(buffer != NULL && *buffer == NULL, return EINVAL); buffer 172 lib/common/ipc_common.c *buffer = g_byte_array_new(); buffer 173 lib/common/ipc_common.c g_byte_array_append(*buffer, data, buffer 181 lib/common/ipc_common.c crm_trace("Buffer = %s", (*buffer)->data + sizeof(pcmk__ipc_header_t)); buffer 186 lib/common/ipc_common.c full_header = (pcmk__ipc_header_t *) (void *) (*buffer)->data; buffer 187 lib/common/ipc_common.c full_header->size = (*buffer)->len - sizeof(pcmk__ipc_header_t); buffer 316 lib/common/ipc_server.c if (c->buffer != NULL) { buffer 317 lib/common/ipc_server.c g_byte_array_free(c->buffer, TRUE); buffer 318 lib/common/ipc_server.c c->buffer = NULL; buffer 331 lib/common/ipc_server.c free(c->remote->buffer); buffer 404 lib/common/ipc_server.c pcmk__ipc_header_t *header = (void *) c->buffer->data; buffer 524 lib/common/logging.c char buffer[NAME_MAX]; buffer 541 lib/common/logging.c snprintf(buffer, NAME_MAX, "%s.%d", blackbox_file_prefix, counter++); buffer 543 lib/common/logging.c crm_notice("Blackbox dump requested, please see %s for contents", buffer); buffer 548 lib/common/logging.c cs->function, cs->lineno, cs->filename, buffer); buffer 550 lib/common/logging.c crm_notice("Problem detected, please see %s for additional details", buffer); buffer 554 lib/common/logging.c qb_log_blackbox_write_to_file(buffer); buffer 697 lib/common/mainloop.c int (*dispatch_fn_ipc) (const char *buffer, ssize_t length, gpointer userdata); buffer 737 lib/common/mainloop.c const char *buffer = crm_ipc_buffer(client->ipc); buffer 742 lib/common/mainloop.c if (client->dispatch_fn_ipc(buffer, read_rc, client->userdata) < 0) { buffer 176 lib/common/output_log.c char* buffer = NULL; buffer 183 lib/common/output_log.c len = vasprintf(&buffer, format, ap); buffer 190 lib/common/output_log.c if(strcmp(buffer, "") == 0) { buffer 194 lib/common/output_log.c g_queue_push_tail(priv->prefixes, buffer); buffer 205 lib/common/output_log.c char* buffer = NULL; buffer 219 lib/common/output_log.c len = vasprintf(&buffer, format, ap); buffer 223 lib/common/output_log.c if (strcmp(buffer, "") != 0) { /* We don't want empty messages */ buffer 226 lib/common/output_log.c logger(priv, "%s: %s: %s", prefix, name, buffer); buffer 228 lib/common/output_log.c logger(priv, "%s: %s", name, buffer); buffer 232 lib/common/output_log.c logger(priv, "%s: %s", prefix, buffer); buffer 234 lib/common/output_log.c logger(priv, "%s", buffer); buffer 238 lib/common/output_log.c free(buffer); buffer 176 lib/common/procfs.c char buffer[2048]; buffer 178 lib/common/procfs.c while (fgets(buffer, sizeof(buffer), stream)) { buffer 179 lib/common/procfs.c if (pcmk__starts_with(buffer, "cpu") && isdigit(buffer[3])) { buffer 349 lib/common/procfs.c char buffer[64*1024]; buffer 384 lib/common/procfs.c if (fgets(buffer, sizeof(buffer), stream) != NULL) { buffer 390 lib/common/procfs.c rc = sscanf(buffer, "%d %[^ ] %c %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu", buffer 434 lib/common/procfs.c char buffer[256]; buffer 449 lib/common/procfs.c if (fgets(buffer, sizeof(buffer), stream) != NULL) { buffer 450 lib/common/procfs.c char *nl = strstr(buffer, "\n"); buffer 453 lib/common/procfs.c *load = strtof(buffer, NULL); buffer 99 lib/common/remote.c struct remote_header_v0 *header = (struct remote_header_v0 *)remote->buffer; buffer 312 lib/common/remote.c remote->buffer + header->payload_offset, buffer 331 lib/common/remote.c memcpy(uncompressed, remote->buffer, header->payload_offset); /* Preserve the header */ buffer 334 lib/common/remote.c free(remote->buffer); buffer 335 lib/common/remote.c remote->buffer = uncompressed; buffer 342 lib/common/remote.c CRM_LOG_ASSERT(remote->buffer[sizeof(struct remote_header_v0) + header->payload_uncompressed - 1] == 0); buffer 344 lib/common/remote.c xml = pcmk__xml_parse(remote->buffer + header->payload_offset); buffer 350 lib/common/remote.c crm_err("Couldn't parse: '%.120s'", remote->buffer + header->payload_offset); buffer 450 lib/common/remote.c remote->buffer = pcmk__realloc(remote->buffer, remote->buffer_size + 1); buffer 455 lib/common/remote.c remote->buffer + remote->buffer_offset, buffer 468 lib/common/remote.c remote->buffer + remote->buffer_offset, buffer 482 lib/common/remote.c remote->buffer[remote->buffer_offset] = '\0'; buffer 809 lib/common/remote.c char buffer[INET6_ADDRSTRLEN]; buffer 869 lib/common/remote.c memset(buffer, 0, PCMK__NELEM(buffer)); buffer 870 lib/common/remote.c pcmk__sockaddr2str(addr, buffer); buffer 871 lib/common/remote.c crm_info("Attempting remote connection to %s:%d", buffer, port); buffer 1299 lib/common/strings.c pcmk__g_strcat(GString *buffer, ...) buffer 1303 lib/common/strings.c pcmk__assert(buffer != NULL); buffer 1304 lib/common/strings.c va_start(ap, buffer); buffer 1312 lib/common/strings.c g_string_append(buffer, ele); buffer 106 lib/common/utils.c char *buffer = NULL; buffer 110 lib/common/utils.c buffer = calloc(1, PCMK__PW_BUFFER_LEN); buffer 111 lib/common/utils.c if (buffer == NULL) { buffer 115 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PCMK__PW_BUFFER_LEN, &pwentry); buffer 130 lib/common/utils.c free(buffer); buffer 342 lib/common/utils.c char *buffer = malloc(37); /* Including NUL byte */ buffer 344 lib/common/utils.c pcmk__mem_assert(buffer); buffer 346 lib/common/utils.c uuid_unparse(uuid, buffer); buffer 347 lib/common/utils.c return buffer; buffer 108 lib/common/xml_attr.c pcmk__dump_xml_attr(const xmlAttr *attr, GString *buffer) buffer 139 lib/common/xml_attr.c pcmk__g_strcat(buffer, " ", name, "=\"", value, "\"", NULL); buffer 19 lib/common/xml_display.c static int show_xml_node(pcmk__output_t *out, GString *buffer, buffer 91 lib/common/xml_display.c show_xml_element(pcmk__output_t *out, GString *buffer, const char *prefix, buffer 100 lib/common/xml_display.c g_string_truncate(buffer, 0); buffer 103 lib/common/xml_display.c g_string_append_c(buffer, ' '); buffer 105 lib/common/xml_display.c pcmk__g_strcat(buffer, "<", data->name, NULL); buffer 128 lib/common/xml_display.c pcmk__g_strcat(buffer, " ", p_name, "=\"", buffer 135 lib/common/xml_display.c g_string_append_c(buffer, '>'); buffer 138 lib/common/xml_display.c g_string_append(buffer, "/>"); buffer 143 lib/common/xml_display.c buffer->str); buffer 154 lib/common/xml_display.c int temp_rc = show_xml_node(out, buffer, prefix, child, depth + 1, buffer 193 lib/common/xml_display.c show_xml_node(pcmk__output_t *out, GString *buffer, const char *prefix, buffer 200 lib/common/xml_display.c return show_xml_element(out, buffer, prefix, data, depth, options); buffer 225 lib/common/xml_display.c GString *buffer = NULL; buffer 237 lib/common/xml_display.c buffer = g_string_sized_new(1024); buffer 238 lib/common/xml_display.c rc = show_xml_node(out, buffer, prefix, data, depth, options); buffer 239 lib/common/xml_display.c g_string_free(buffer, TRUE); buffer 42 lib/common/xml_io.c char *buffer = NULL; buffer 64 lib/common/xml_io.c buffer = pcmk__realloc(buffer, length + PCMK__BUFFER_SIZE + 1); buffer 65 lib/common/xml_io.c read_len = BZ2_bzRead(&rc, bz_file, buffer + length, PCMK__BUFFER_SIZE); buffer 78 lib/common/xml_io.c free(buffer); buffer 79 lib/common/xml_io.c buffer = NULL; buffer 81 lib/common/xml_io.c buffer[length] = '\0'; buffer 87 lib/common/xml_io.c return buffer; buffer 214 lib/common/xml_io.c dump_xml_element(const xmlNode *data, uint32_t options, GString *buffer, buffer 222 lib/common/xml_io.c g_string_append_c(buffer, ' '); buffer 225 lib/common/xml_io.c pcmk__g_strcat(buffer, "<", data->name, NULL); buffer 231 lib/common/xml_io.c pcmk__dump_xml_attr(attr, buffer); buffer 236 lib/common/xml_io.c g_string_append(buffer, "/>"); buffer 239 lib/common/xml_io.c g_string_append_c(buffer, '>'); buffer 243 lib/common/xml_io.c g_string_append_c(buffer, '\n'); buffer 249 lib/common/xml_io.c pcmk__xml_string(child, options, buffer, depth + 1); buffer 253 lib/common/xml_io.c g_string_append_c(buffer, ' '); buffer 256 lib/common/xml_io.c pcmk__g_strcat(buffer, "</", data->name, ">", NULL); buffer 259 lib/common/xml_io.c g_string_append_c(buffer, '\n'); buffer 274 lib/common/xml_io.c dump_xml_text(const xmlNode *data, uint32_t options, GString *buffer, buffer 288 lib/common/xml_io.c g_string_append_c(buffer, ' '); buffer 291 lib/common/xml_io.c g_string_append(buffer, content); buffer 294 lib/common/xml_io.c g_string_append_c(buffer, '\n'); buffer 309 lib/common/xml_io.c dump_xml_cdata(const xmlNode *data, uint32_t options, GString *buffer, buffer 316 lib/common/xml_io.c g_string_append_c(buffer, ' '); buffer 319 lib/common/xml_io.c pcmk__g_strcat(buffer, "<![CDATA[", (const char *) data->content, "]]>", buffer 323 lib/common/xml_io.c g_string_append_c(buffer, '\n'); buffer 337 lib/common/xml_io.c dump_xml_comment(const xmlNode *data, uint32_t options, GString *buffer, buffer 344 lib/common/xml_io.c g_string_append_c(buffer, ' '); buffer 347 lib/common/xml_io.c pcmk__g_strcat(buffer, "<!--", (const char *) data->content, "-->", NULL); buffer 350 lib/common/xml_io.c g_string_append_c(buffer, '\n'); buffer 370 lib/common/xml_io.c pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer, buffer 378 lib/common/xml_io.c pcmk__assert(buffer != NULL); buffer 384 lib/common/xml_io.c dump_xml_element(data, options, buffer, depth); buffer 388 lib/common/xml_io.c dump_xml_text(data, options, buffer, depth); buffer 392 lib/common/xml_io.c dump_xml_comment(data, options, buffer, depth); buffer 395 lib/common/xml_io.c dump_xml_cdata(data, options, buffer, depth); buffer 478 lib/common/xml_io.c GString *buffer = g_string_sized_new(1024); buffer 482 lib/common/xml_io.c pcmk__xml_string(xml, pcmk__xml_fmt_pretty, buffer, 0); buffer 483 lib/common/xml_io.c CRM_CHECK(!pcmk__str_empty(buffer->str), buffer 491 lib/common/xml_io.c && (write_compressed_stream(buffer->str, filename, stream, buffer 496 lib/common/xml_io.c rc = fprintf(stream, "%s", buffer->str); buffer 520 lib/common/xml_io.c g_string_free(buffer, TRUE); buffer 136 lib/fencing/st_actions.c char buffer[512]; buffer 138 lib/fencing/st_actions.c snprintf(buffer, sizeof(buffer), "pcmk_%s_action", action); buffer 139 lib/fencing/st_actions.c value = g_hash_table_lookup(device_args, buffer); buffer 273 lib/fencing/st_actions.c char buffer[512]; buffer 276 lib/fencing/st_actions.c snprintf(buffer, sizeof(buffer), "pcmk_%s_retries", action_name); buffer 277 lib/fencing/st_actions.c value = g_hash_table_lookup(device_args, buffer); buffer 1067 lib/fencing/st_client.c stonith_dispatch_internal(const char *buffer, ssize_t length, gpointer userdata) buffer 1079 lib/fencing/st_client.c blob.xml = pcmk__xml_parse(buffer); buffer 1081 lib/fencing/st_client.c crm_warn("Received malformed message from fencer: %s", buffer); buffer 182 lib/fencing/st_lha.c char *buffer = NULL; buffer 264 lib/fencing/st_lha.c buffer = crm_strdup_printf(META_TEMPLATE, agent, buffer 280 lib/fencing/st_lha.c *output = buffer; buffer 282 lib/fencing/st_lha.c free(buffer); buffer 227 lib/fencing/st_rhcs.c GString *buffer = NULL; buffer 236 lib/fencing/st_rhcs.c buffer = g_string_sized_new(1024); buffer 237 lib/fencing/st_rhcs.c pcmk__xml_string(xml, pcmk__xml_fmt_pretty|pcmk__xml_fmt_text, buffer, 0); buffer 239 lib/fencing/st_rhcs.c if (pcmk__str_empty(buffer->str)) { buffer 245 lib/fencing/st_rhcs.c pcmk__str_update(output, buffer->str); buffer 249 lib/fencing/st_rhcs.c if (buffer != NULL) { buffer 250 lib/fencing/st_rhcs.c g_string_free(buffer, TRUE); buffer 260 lib/fencing/st_rhcs.c char *buffer = crm_strdup_printf(PCMK__FENCE_BINDIR "/%s", agent); buffer 261 lib/fencing/st_rhcs.c int rc = stat(buffer, &prop); buffer 263 lib/fencing/st_rhcs.c free(buffer); buffer 358 lib/lrmd/lrmd_client.c lrmd_ipc_dispatch(const char *buffer, ssize_t length, gpointer userdata) buffer 364 lib/lrmd/lrmd_client.c xmlNode *msg = pcmk__xml_parse(buffer); buffer 650 lib/lrmd/lrmd_client.c free(native->remote->buffer); buffer 652 lib/lrmd/lrmd_client.c native->remote->buffer = NULL; buffer 751 lib/lrmd/lrmd_client.c if (native->remote->buffer && native->process_notify) { buffer 130 lib/lrmd/proxy_common.c remote_proxy_dispatch(const char *buffer, ssize_t length, gpointer userdata) buffer 137 lib/lrmd/proxy_common.c xml = pcmk__xml_parse(buffer); buffer 145 lib/lrmd/proxy_common.c crm_trace("Passing response back to %.8s on %s: %.200s - request id: %d", proxy->session_id, proxy->node_name, buffer, proxy->last_request_id); buffer 150 lib/lrmd/proxy_common.c crm_trace("Passing event back to %.8s on %s: %.200s", proxy->session_id, proxy->node_name, buffer); buffer 482 lib/pacemaker/pcmk_fence.c char *buffer = NULL; buffer 483 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, buffer 490 lib/pacemaker/pcmk_fence.c out->output_xml(out, PCMK_XE_METADATA, buffer); buffer 491 lib/pacemaker/pcmk_fence.c free(buffer); buffer 280 lib/pengine/bundle.c GString *buffer) buffer 297 lib/pengine/bundle.c g_string_append_printf(buffer, " --add-host=%s-%d:%s", buffer 301 lib/pengine/bundle.c g_string_append_printf(buffer, " --hosts-entry=%s=%s-%d", buffer 431 lib/pengine/bundle.c GString *buffer = NULL; buffer 446 lib/pengine/bundle.c buffer = g_string_sized_new(4096); buffer 463 lib/pengine/bundle.c g_string_append(buffer, " --restart=no"); buffer 472 lib/pengine/bundle.c g_string_append_printf(buffer, " %s%s-%d", hostname_opt, data->prefix, buffer 475 lib/pengine/bundle.c pcmk__g_strcat(buffer, " ", env_opt, "PCMK_stderr=1", NULL); buffer 478 lib/pengine/bundle.c pcmk__g_strcat(buffer, " --net=", data->container_network, NULL); buffer 482 lib/pengine/bundle.c pcmk__g_strcat(buffer, " ", env_opt, "PCMK_" PCMK__ENV_REMOTE_PORT "=", buffer 485 lib/pengine/bundle.c g_string_append_printf(buffer, " %sPCMK_" PCMK__ENV_REMOTE_PORT "=%d", buffer 502 lib/pengine/bundle.c pcmk__g_strcat(buffer, buffer 507 lib/pengine/bundle.c pcmk__g_strcat(buffer, ":", mount->options, NULL); buffer 523 lib/pengine/bundle.c pcmk__g_strcat(buffer, buffer 530 lib/pengine/bundle.c pcmk__g_strcat(buffer, buffer 553 lib/pengine/bundle.c pcmk__g_strcat(buffer, " ", data->launcher_options, NULL); buffer 557 lib/pengine/bundle.c pcmk__g_strcat(buffer, " ", data->container_host_options, NULL); buffer 561 lib/pengine/bundle.c (const char *) buffer->str); buffer 562 lib/pengine/bundle.c g_string_free(buffer, TRUE); buffer 1161 lib/pengine/bundle.c GString *buffer = NULL; buffer 1215 lib/pengine/bundle.c buffer = g_string_sized_new(1024); buffer 1231 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); buffer 1239 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); buffer 1252 lib/pengine/bundle.c GString *buffer = g_string_sized_new(1024); buffer 1259 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); buffer 1263 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); buffer 1521 lib/pengine/bundle.c char buffer[LINE_MAX]; buffer 1528 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", buffer 1531 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", buffer 1535 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, " (%s)", buffer 1539 lib/pengine/bundle.c pe__common_output_html(out, rsc, buffer, node, show_opts); buffer 1685 lib/pengine/bundle.c char buffer[LINE_MAX]; buffer 1692 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", buffer 1695 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", buffer 1699 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, " (%s)", buffer 1703 lib/pengine/bundle.c pe__common_output_text(out, rsc, buffer, node, show_opts); buffer 960 lib/pengine/native.c char buffer[LINE_MAX]; buffer 969 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", class); buffer 975 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, buffer 979 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, ":%s", kind); buffer 983 lib/pengine/native.c rsc_counter = g_hash_table_lookup(rsc_table, buffer); buffer 987 lib/pengine/native.c g_hash_table_insert(rsc_table, strdup(buffer), rsc_counter); buffer 1013 lib/pengine/native.c active_counter = g_hash_table_lookup(node_table, buffer); buffer 1017 lib/pengine/native.c g_hash_table_insert(node_table, strdup(buffer), active_counter); buffer 414 lib/services/services_linux.c char buffer[500]; buffer 416 lib/services/services_linux.c snprintf(buffer, sizeof(buffer), strcmp(key, "OCF_CHECK_LEVEL") != 0 ? "OCF_RESKEY_%s" : "%s", (char *)key); buffer 417 lib/services/services_linux.c set_ocf_env(buffer, value, user_data); buffer 487 lib/services/services_linux.c char *buffer = crm_strdup_printf("%s=%s\n", (char *)key, (char *) value); buffer 488 lib/services/services_linux.c size_t len = strlen(buffer); buffer 494 lib/services/services_linux.c ret = write(op->opaque->stdin_fd, buffer + total, len - total); buffer 499 lib/services/services_linux.c free(buffer); buffer 1407 lib/services/services_linux.c char buffer[PATH_MAX]; buffer 1422 lib/services/services_linux.c snprintf(buffer, sizeof(buffer), "%s/%s", root, namelist[lpc]->d_name); buffer 1424 lib/services/services_linux.c if (stat(buffer, &sb)) { buffer 107 lib/services/services_lsb.c char buffer[1024] = { 0, }; buffer 133 lib/services/services_lsb.c while (fgets(buffer, sizeof(buffer), fp)) { buffer 136 lib/services/services_lsb.c if (pcmk__starts_with(buffer, LSB_INITSCRIPT_INFOBEGIN_TAG)) { buffer 145 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &provides, PROVIDES)) { buffer 148 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &required_start, buffer 152 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &required_stop, REQUIRED_STOP)) { buffer 155 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &should_start, SHOULD_START)) { buffer 158 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &should_stop, SHOULD_STOP)) { buffer 161 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &default_start, DEFAULT_START)) { buffer 164 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &default_stop, DEFAULT_STOP)) { buffer 167 lib/services/services_lsb.c if (lsb_meta_helper_get_value(buffer, &short_desc, SHORT_DESC)) { buffer 173 lib/services/services_lsb.c && pcmk__starts_with(buffer, DESCRIPTION)) { buffer 178 lib/services/services_lsb.c g_string_append(desc, buffer + sizeof(DESCRIPTION) - 1); buffer 181 lib/services/services_lsb.c buffer[0] = '\0'; buffer 182 lib/services/services_lsb.c while (fgets(buffer, sizeof(buffer), fp)) { buffer 183 lib/services/services_lsb.c if (pcmk__starts_with(buffer, "# ") buffer 184 lib/services/services_lsb.c || pcmk__starts_with(buffer, "#\t")) { buffer 188 lib/services/services_lsb.c g_string_append(desc, buffer + 1); buffer 209 lib/services/services_lsb.c if (pcmk__starts_with(buffer, LSB_INITSCRIPT_INFOEND_TAG)) { buffer 212 lib/services/services_lsb.c if (buffer[0] != '#') { buffer 36 lib/services/services_ocf.c char buffer[PATH_MAX]; buffer 46 lib/services/services_ocf.c sprintf(buffer, "%s/%s", dir, provider); buffer 47 lib/services/services_ocf.c tmp = services_os_get_single_directory_list(buffer, files, executable); buffer 108 tools/crm_diff.c GString *buffer = g_string_sized_new(1024); buffer 110 tools/crm_diff.c pcmk__xml_string(patch, pcmk__xml_fmt_pretty, buffer, 0); buffer 112 tools/crm_diff.c printf("%s", buffer->str); buffer 113 tools/crm_diff.c g_string_free(buffer, TRUE); buffer 132 tools/crm_diff.c char *buffer; buffer 136 tools/crm_diff.c buffer = pcmk__digest_xml(output, true); buffer 137 tools/crm_diff.c crm_trace("Digest: %s", pcmk__s(buffer, "<null>\n")); buffer 138 tools/crm_diff.c free(buffer); buffer 244 tools/crm_node.c GString *buffer = NULL; buffer 249 tools/crm_node.c pcmk__add_separated_word(&buffer, 128, pcmk__s(node->uname, ""), " "); buffer 253 tools/crm_node.c if (buffer != NULL) { buffer 254 tools/crm_node.c out->info(out, "%s", buffer->str); buffer 255 tools/crm_node.c g_string_free(buffer, TRUE);