buf 124 daemons/based/based_io.c struct stat buf; buf 132 daemons/based/based_io.c if(stat(a_path, &buf) == 0) { buf 133 daemons/based/based_io.c a_age = buf.st_ctime; buf 135 daemons/based/based_io.c if(stat(b_path, &buf) == 0) { buf 136 daemons/based/based_io.c b_age = buf.st_ctime; buf 500 daemons/fenced/cts-fence-helper.c char buf[16] = { 0, }; buf 521 daemons/fenced/cts-fence-helper.c snprintf(buf, sizeof(buf) - 1, "%d", MAINLOOP_DEFAULT_TIMEOUT + CUSTOM_TIMEOUT_ADDITION); buf 522 daemons/fenced/cts-fence-helper.c params = stonith__key_value_add(params, "pcmk_off_timeout", buf); buf 417 include/crm/common/output_internal.h void (*output_xml) (pcmk__output_t *out, const char *name, const char *buf); buf 220 include/gettext.h char buf[1024]; buf 222 include/gettext.h (msgctxt_len + msgid_len <= sizeof (buf) buf 223 include/gettext.h ? buf buf 235 include/gettext.h if (msg_ctxt_id != buf) buf 268 include/gettext.h char buf[1024]; buf 270 include/gettext.h (msgctxt_len + msgid_len <= sizeof (buf) buf 271 include/gettext.h ? buf buf 283 include/gettext.h if (msg_ctxt_id != buf) buf 378 lib/cib/cib_file.c struct stat buf; buf 382 lib/cib/cib_file.c if (strcmp(filename, "-") && (stat(filename, &buf) < 0)) { buf 750 lib/cib/cib_file.c struct stat buf; buf 760 lib/cib/cib_file.c s_res = stat(filename, &buf); buf 764 lib/cib/cib_file.c } else if (buf.st_size == 0) { buf 76 lib/common/acl.c GString *buf = g_string_sized_new(128); buf 80 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), "[@" PCMK_XA_ID "='", buf 84 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), "[@" PCMK_XA_ID "='", buf 88 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), "[@", attr, "]", NULL); buf 91 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), NULL); buf 94 lib/common/acl.c acl->xpath = buf->str; buf 96 lib/common/acl.c g_string_free(buf, FALSE); buf 41 lib/common/attrs.c char buf[128] = OCF_RESKEY_PREFIX; buf 48 lib/common/attrs.c snprintf(buf + offset, sizeof(buf) - offset, "%s", target_var); buf 49 lib/common/attrs.c target = getenv(buf); buf 51 lib/common/attrs.c snprintf(buf + offset, sizeof(buf) - offset, "%s", phys_var); buf 52 lib/common/attrs.c host_physical = getenv(buf); buf 44 lib/common/cib_secrets.c char *buf = NULL; buf 45 lib/common/cib_secrets.c int rc = pcmk__file_contents(filename, &buf); buf 49 lib/common/cib_secrets.c free(buf); buf 53 lib/common/cib_secrets.c if (buf == NULL) { buf 59 lib/common/cib_secrets.c for (p = buf + strlen(buf) - 1; (p >= buf) && isspace(*p); p--); buf 62 lib/common/cib_secrets.c return buf; buf 358 lib/common/cmdline.c char *buf = NULL; buf 364 lib/common/cmdline.c len = vasprintf(&buf, format, ap); buf 368 lib/common/cmdline.c if (!g_shell_parse_argv(buf, NULL, &extra_args, error)) { buf 370 lib/common/cmdline.c free(buf); buf 377 lib/common/cmdline.c free(buf); buf 166 lib/common/digest.c GString *buf = g_string_sized_new(1024); buf 168 lib/common/digest.c pcmk__xml_string(xml, (filter? pcmk__xml_fmt_filtered : 0), buf, 0); buf 169 lib/common/digest.c digest = crm_md5sum(buf->str); buf 186 lib/common/digest.c g_string_free(buf, TRUE); buf 325 lib/common/io.c struct stat buf; buf 337 lib/common/io.c s_res = stat(full_file, &buf); buf 344 lib/common/io.c } else if (S_ISREG(buf.st_mode) == FALSE) { buf 346 lib/common/io.c target, (unsigned long) buf.st_mode); buf 355 lib/common/io.c s_res = stat(dir, &buf); buf 360 lib/common/io.c } else if (S_ISDIR(buf.st_mode) == FALSE) { buf 362 lib/common/io.c dir, (unsigned long) buf.st_mode); buf 367 lib/common/io.c if (!pcmk__daemon_user_can_write(target, &buf) buf 368 lib/common/io.c && !pcmk__daemon_group_can_write(target, &buf)) { buf 373 lib/common/io.c (unsigned long) buf.st_mode); buf 489 lib/common/iso8601.c sec_usec_as_string(long long sec, int usec, char *buf, size_t *offset) buf 491 lib/common/iso8601.c *offset += snprintf(buf + *offset, DATE_MAX - *offset, "%s%lld.%06d", buf 378 lib/common/mock.c __wrap_getpwnam_r(const char *name, struct passwd *pwd, char *buf, buf 386 lib/common/mock.c check_expected_ptr(buf); buf 393 lib/common/mock.c return __real_getpwnam_r(name, pwd, buf, buflen, result); buf 415 lib/common/mock.c __wrap_readlink(const char *restrict path, char *restrict buf, buf 422 lib/common/mock.c check_expected(buf); buf 428 lib/common/mock.c strncpy(buf, contents, bufsize - 1); buf 434 lib/common/mock.c return __real_readlink(path, buf, bufsize); buf 79 lib/common/mock_private.h char *buf, size_t buflen, struct passwd **result); buf 81 lib/common/mock_private.h char *buf, size_t buflen, struct passwd **result); buf 84 lib/common/mock_private.h ssize_t __real_readlink(const char *restrict path, char *restrict buf, buf 86 lib/common/mock_private.h ssize_t __wrap_readlink(const char *restrict path, char *restrict buf, buf 28 lib/common/options_display.c GString *buf = g_string_sized_new(256); buf 44 lib/common/options_display.c if (buf->len > 0) { buf 45 lib/common/options_display.c g_string_append(buf, delim); buf 47 lib/common/options_display.c g_string_append_c(buf, '"'); buf 48 lib/common/options_display.c g_string_append(buf, value); buf 49 lib/common/options_display.c g_string_append_c(buf, '"'); buf 53 lib/common/options_display.c g_string_append(buf, _(" (default)")); buf 59 lib/common/options_display.c pcmk__g_strcat(buf, buf 64 lib/common/options_display.c pcmk__g_strcat(buf, option->type, _(" (no default)"), NULL); buf 67 lib/common/options_display.c out->list_item(out, id, "%s", buf->str); buf 68 lib/common/options_display.c g_string_free(buf, TRUE); buf 276 lib/common/output_html.c char *buf = NULL; buf 283 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 287 lib/common/output_html.c priv->errors = g_slist_append(priv->errors, buf); buf 297 lib/common/output_html.c html_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 302 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); buf 328 lib/common/output_html.c char *buf = NULL; buf 332 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 337 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h3", buf); buf 339 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", buf); buf 342 lib/common/output_html.c free(buf); buf 354 lib/common/output_html.c char *buf = NULL; buf 360 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 364 lib/common/output_html.c item_node = pcmk__output_create_xml_text_node(out, "li", buf); buf 365 lib/common/output_html.c free(buf); buf 157 lib/common/output_log.c log_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 165 lib/common/output_log.c pcmk__xe_set_content(node, "%s", buf); buf 64 lib/common/output_none.c none_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 186 lib/common/output_text.c text_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 188 lib/common/output_text.c pcmk__indented_printf(out, "%s", buf); buf 297 lib/common/output_xml.c char *buf = NULL; buf 306 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 310 lib/common/output_xml.c priv->errors = g_slist_append(priv->errors, buf); buf 320 lib/common/output_xml.c xml_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 330 lib/common/output_xml.c cdata_node = xmlNewCDataBlock(parent->doc, (const xmlChar *) buf, buf 331 lib/common/output_xml.c strlen(buf)); buf 341 lib/common/output_xml.c char *buf = NULL; buf 349 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 354 lib/common/output_xml.c if (strcmp(s->from, buf) == 0) { buf 361 lib/common/output_xml.c name = g_ascii_strdown(buf, -1); buf 373 lib/common/output_xml.c free(buf); buf 381 lib/common/output_xml.c char *buf = NULL; buf 387 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 391 lib/common/output_xml.c item_node = pcmk__output_create_xml_text_node(out, PCMK_XE_ITEM, buf); buf 397 lib/common/output_xml.c free(buf); buf 413 lib/common/output_xml.c char *buf = NULL; buf 418 lib/common/output_xml.c buf = crm_strdup_printf("%lu", xmlChildElementCount(node)); buf 419 lib/common/output_xml.c crm_xml_add(node, PCMK_XA_COUNT, buf); buf 420 lib/common/output_xml.c free(buf); buf 296 lib/common/patchset_display.c GString *buf = g_string_sized_new(1024); buf 298 lib/common/patchset_display.c pcmk__xml_string(patchset, pcmk__xml_fmt_pretty|pcmk__xml_fmt_text, buf, buf 301 lib/common/patchset_display.c out->output_xml(out, PCMK_XE_XML_PATCHSET, buf->str); buf 302 lib/common/patchset_display.c g_string_free(buf, TRUE); buf 113 lib/common/pid.c char buf[LOCKSTRLEN + 1]; buf 128 lib/common/pid.c if (read(fd, buf, sizeof(buf)) < 1) { buf 134 lib/common/pid.c rc = sscanf(buf, "%lld", &pid_read); buf 215 lib/common/pid.c char buf[LOCKSTRLEN + 2]; buf 228 lib/common/pid.c snprintf(buf, sizeof(buf), "%*lld\n", LOCKSTRLEN - 1, (long long) mypid); buf 229 lib/common/pid.c rc = write(fd, buf, LOCKSTRLEN); buf 61 lib/common/tests/options/pcmk__env_option_test.c char buf[NAME_MAX]; buf 73 lib/common/tests/options/pcmk__env_option_test.c snprintf(buf, NAME_MAX, "HA_%s", long_opt); buf 74 lib/common/tests/options/pcmk__env_option_test.c expect_string(__wrap_getenv, name, buf); buf 74 lib/common/tests/options/pcmk__set_env_option_test.c char buf[NAME_MAX]; buf 81 lib/common/tests/options/pcmk__set_env_option_test.c snprintf(buf, NAME_MAX, "HA_%s", long_opt); buf 86 lib/common/tests/options/pcmk__set_env_option_test.c expect_string(__wrap_setenv, name, buf); buf 97 lib/common/tests/options/pcmk__set_env_option_test.c expect_string(__wrap_unsetenv, name, buf); buf 32 lib/common/tests/procfs/pcmk__procfs_has_pids_false_test.c expect_any(__wrap_readlink, buf); buf 31 lib/common/tests/procfs/pcmk__procfs_has_pids_true_test.c expect_any(__wrap_readlink, buf); buf 30 lib/common/tests/procfs/pcmk__procfs_pid2path_test.c expect_value(__wrap_readlink, buf, path); buf 52 lib/common/tests/procfs/pcmk__procfs_pid2path_test.c expect_value(__wrap_readlink, buf, path); buf 75 lib/common/tests/procfs/pcmk__procfs_pid2path_test.c expect_value(__wrap_readlink, buf, path); buf 24 lib/common/tests/strings/pcmk__g_strcat_test.c GString *buf = g_string_new(NULL); buf 27 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, NULL); buf 28 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, ""); buf 30 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, "", NULL); buf 31 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, ""); buf 34 lib/common/tests/strings/pcmk__g_strcat_test.c g_string_append(buf, "hello"); buf 35 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, NULL); buf 36 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, "hello"); buf 38 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, "", NULL); buf 39 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, "hello"); buf 40 lib/common/tests/strings/pcmk__g_strcat_test.c g_string_free(buf, TRUE); buf 46 lib/common/tests/strings/pcmk__g_strcat_test.c GString *buf = g_string_new(NULL); buf 49 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, "hello", " ", NULL); buf 50 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, "hello "); buf 53 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, "world", NULL); buf 54 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, "hello world"); buf 55 lib/common/tests/strings/pcmk__g_strcat_test.c g_string_free(buf, TRUE); buf 61 lib/common/tests/strings/pcmk__g_strcat_test.c GString *buf = g_string_new(NULL); buf 64 lib/common/tests/strings/pcmk__g_strcat_test.c pcmk__g_strcat(buf, "hello", NULL, " world", NULL); buf 65 lib/common/tests/strings/pcmk__g_strcat_test.c assert_string_equal((const char *) buf->str, "hello"); buf 66 lib/common/tests/strings/pcmk__g_strcat_test.c g_string_free(buf, TRUE); buf 46 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, buf); buf 68 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, buf); buf 97 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, buf); buf 110 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, buf); buf 31 lib/common/tests/utils/pcmk_daemon_user_test.c expect_any(__wrap_getpwnam_r, buf); buf 60 lib/common/tests/utils/pcmk_daemon_user_test.c expect_any(__wrap_getpwnam_r, buf); buf 21 lib/common/tests/xml/pcmk__xml_escape_test.c gchar *buf = pcmk__xml_escape(str, type); buf 23 lib/common/tests/xml/pcmk__xml_escape_test.c assert_string_equal(buf, reference); buf 24 lib/common/tests/xml/pcmk__xml_escape_test.c g_free(buf); buf 18 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c char *buf = pcmk__str_copy(str); buf 20 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c pcmk__xml_sanitize_id(buf); buf 21 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c assert_string_equal(buf, reference); buf 22 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c free(buf); buf 28 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c char *buf = pcmk__str_copy(""); buf 31 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c pcmk__assert_asserts(pcmk__xml_sanitize_id(buf)); buf 33 lib/common/tests/xml/pcmk__xml_sanitize_id_test.c free(buf); buf 565 lib/common/xml.c GString *buf = g_string_sized_new(32); buf 568 lib/common/xml.c g_string_append_printf(buf, " 0x%.2X", utf8[i]); buf 571 lib/common/xml.c (pcmk__str_empty(buf->str)? " <none>" : buf->str)); buf 572 lib/common/xml.c g_string_free(buf, TRUE); buf 626 lib/common/xml.c GString *buf = g_string_sized_new(32); buf 629 lib/common/xml.c g_string_append_printf(buf, " 0x%.2X", utf8[i]); buf 632 lib/common/xml.c (pcmk__str_empty(buf->str)? " <none>" : buf->str)); buf 633 lib/common/xml.c g_string_free(buf, TRUE); buf 447 lib/common/xml_element.c char *buf = NULL; buf 471 lib/common/xml_element.c pcmk__assert(vasprintf(&buf, format, ap) >= 0); buf 472 lib/common/xml_element.c content = buf; buf 478 lib/common/xml_element.c free(buf); buf 333 lib/fencing/st_output.c char *buf = crm_strdup_printf("Node %s last fenced at: %s", target, ctime(&when)); buf 334 lib/fencing/st_output.c pcmk__output_create_html_node(out, PCMK__XE_DIV, NULL, NULL, buf); buf 335 lib/fencing/st_output.c free(buf); buf 364 lib/fencing/st_output.c char *buf = timespec_string(when, 0, false); buf 368 lib/fencing/st_output.c PCMK_XA_WHEN, buf, buf 371 lib/fencing/st_output.c free(buf); buf 536 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, buf 538 lib/fencing/st_output.c pcmk__output_create_html_node(out, PCMK__XE_DIV, NULL, NULL, buf); buf 539 lib/fencing/st_output.c free(buf); buf 541 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s %s", agent, buf 543 lib/fencing/st_output.c pcmk__output_create_html_node(out, PCMK__XE_DIV, NULL, NULL, buf); buf 544 lib/fencing/st_output.c free(buf); buf 39 lib/fencing/st_rhcs.c char *buf = NULL; buf 48 lib/fencing/st_rhcs.c buf = crm_strdup_printf(PCMK__FENCE_BINDIR "/%s", entry->d_name); buf 49 lib/fencing/st_rhcs.c if ((stat(buf, &sb) != 0) || !S_ISREG(sb.st_mode)) { buf 56 lib/fencing/st_rhcs.c free(buf); buf 742 lib/pacemaker/pcmk_graph_consumer.c const char *buf = crm_element_value(xml_graph, "transition_id"); buf 744 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(buf != NULL, buf 746 lib/pacemaker/pcmk_graph_consumer.c pcmk__scan_min_int(buf, &(new_graph->id), 1); buf 748 lib/pacemaker/pcmk_graph_consumer.c buf = crm_element_value(xml_graph, PCMK_OPT_CLUSTER_DELAY); buf 749 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(buf != NULL, buf 751 lib/pacemaker/pcmk_graph_consumer.c pcmk_parse_interval_spec(buf, &(new_graph->network_delay)); buf 753 lib/pacemaker/pcmk_graph_consumer.c buf = crm_element_value(xml_graph, PCMK_OPT_STONITH_TIMEOUT); buf 754 lib/pacemaker/pcmk_graph_consumer.c if (buf == NULL) { buf 757 lib/pacemaker/pcmk_graph_consumer.c pcmk_parse_interval_spec(buf, &(new_graph->stonith_timeout)); buf 761 lib/pacemaker/pcmk_graph_consumer.c buf = crm_element_value(xml_graph, PCMK_OPT_BATCH_LIMIT); buf 762 lib/pacemaker/pcmk_graph_consumer.c if ((buf == NULL) buf 763 lib/pacemaker/pcmk_graph_consumer.c || (pcmk__scan_min_int(buf, &(new_graph->batch_limit), buf 768 lib/pacemaker/pcmk_graph_consumer.c buf = crm_element_value(xml_graph, PCMK_OPT_MIGRATION_LIMIT); buf 769 lib/pacemaker/pcmk_graph_consumer.c pcmk__scan_min_int(buf, &(new_graph->migration_limit), -1); buf 2476 lib/pacemaker/pcmk_output.c GString *buf = g_string_sized_new(1024); buf 2478 lib/pacemaker/pcmk_output.c pcmk__xml_string(child, pcmk__xml_fmt_pretty, buf, 0); buf 2479 lib/pacemaker/pcmk_output.c out->output_xml(out, PCMK_XE_CONSTRAINT, buf->str); buf 2480 lib/pacemaker/pcmk_output.c g_string_free(buf, TRUE); buf 2485 lib/pacemaker/pcmk_output.c GString *buf = g_string_sized_new(1024); buf 2487 lib/pacemaker/pcmk_output.c pcmk__xml_string(constraint_xml, pcmk__xml_fmt_pretty, buf, 0); buf 2488 lib/pacemaker/pcmk_output.c out->output_xml(out, PCMK_XE_CONSTRAINT, buf->str); buf 2489 lib/pacemaker/pcmk_output.c g_string_free(buf, TRUE); buf 2588 lib/pacemaker/pcmk_output.c GString *buf = g_string_sized_new(1024); buf 2591 lib/pacemaker/pcmk_output.c pcmk__xml_string(state_xml, pcmk__xml_fmt_pretty, buf, 0); buf 2592 lib/pacemaker/pcmk_output.c out->output_xml(out, PCMK__XE_TICKET_STATE, buf->str); buf 2594 lib/pacemaker/pcmk_output.c g_string_free(buf, TRUE); buf 334 lib/pacemaker/pcmk_simulate.c char *buf = NULL; buf 351 lib/pacemaker/pcmk_simulate.c buf = crm_strdup_printf("%s/%s", profiling_dir, filename); buf 352 lib/pacemaker/pcmk_simulate.c if ((stat(buf, &sb) != 0) || !S_ISREG(sb.st_mode)) { buf 360 lib/pacemaker/pcmk_simulate.c free(buf); buf 236 lib/pengine/pe_output.c char *buf = NULL; buf 278 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s:%s%s%s%s rc=%d (%s)", call, task, buf 297 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s%s%s", call, task, buf 306 lib/pengine/pe_output.c return buf; buf 312 lib/pengine/pe_output.c char *buf = NULL; buf 315 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: orphan", rsc_id); buf 327 lib/pengine/pe_output.c buf = pcmk__epoch2str(&last_failure, 0); buf 329 lib/pengine/pe_output.c PCMK_XA_LAST_FAILURE, buf); buf 330 lib/pengine/pe_output.c free(buf); buf 333 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: " PCMK_META_MIGRATION_THRESHOLD "=%d%s%s", buf 339 lib/pengine/pe_output.c buf = crm_strdup_printf("%s:", rsc_id); buf 342 lib/pengine/pe_output.c return buf; buf 659 lib/pengine/pe_output.c char *buf = crm_strdup_printf("%s\tprevents %s from running %son %s", buf 663 lib/pengine/pe_output.c pcmk__output_create_html_node(out, "li", NULL, NULL, buf); buf 666 lib/pengine/pe_output.c free(buf); buf 2332 lib/pengine/pe_output.c char *buf = pcmk__itoa(expected_score); buf 2333 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_EXPECTED, buf); buf 2334 lib/pengine/pe_output.c free(buf); buf 2807 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, buf 2810 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 2812 lib/pengine/pe_output.c free(buf); buf 2945 lib/pengine/pe_output.c char *buf = resource_history_string(rsc, rsc_id, all, failcount, last_failure); buf 2948 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); buf 2950 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 2953 lib/pengine/pe_output.c free(buf); buf 3353 lib/pengine/pe_output.c char *buf = pcmk__epoch2str(&ticket->last_granted, 0); buf 3355 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_LAST_GRANTED, buf); buf 3356 lib/pengine/pe_output.c free(buf); buf 294 lib/services/services_linux.c char buf[500]; buf 295 lib/services/services_linux.c static const size_t buf_read_len = sizeof(buf) - 1; buf 318 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); buf 321 lib/services/services_linux.c buf[rc] = 0; buf 323 lib/services/services_linux.c rc, op->id, out_type(is_stderr), buf); buf 325 lib/services/services_linux.c strcpy(data + len, buf); buf 91 lib/services/services_ocf.c char *buf = NULL; buf 99 lib/services/services_ocf.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); buf 100 lib/services/services_ocf.c if (stat(buf, &st) == 0) { buf 101 lib/services/services_ocf.c free(buf); buf 106 lib/services/services_ocf.c free(buf); buf 134 lib/services/services_ocf.c char *buf = crm_strdup_printf("%s/%s/%s", dir, op->provider, op->agent); buf 136 lib/services/services_ocf.c if (stat(buf, &st) == 0) { buf 137 lib/services/services_ocf.c op->opaque->exec = buf; buf 140 lib/services/services_ocf.c free(buf); buf 1045 lib/services/systemd.c GString *buf = g_string_sized_new(128); buf 1047 lib/services/systemd.c pcmk__g_strcat(buf, "/run/systemd/system/", unit_name, ".d", NULL); buf 1048 lib/services/systemd.c return buf; buf 1058 lib/services/systemd.c append_override_basename(GString *buf) buf 1060 lib/services/systemd.c g_string_append(buf, "/50-pacemaker.conf"); buf 52 libltdl/libltdl/lt__argz_.h const char *buf, size_t buf_len); buf 49 libltdl/lt__argz.c argz_append (char **pargz, size_t *pargz_len, const char *buf, size_t buf_len) buf 69 libltdl/lt__argz.c memcpy (argz + *pargz_len, buf, buf_len); buf 1775 libltdl/ltdl.c char *buf = 0; buf 1814 libltdl/ltdl.c buf = MALLOC (char, 1+ buf_len); buf 1815 libltdl/ltdl.c if (!buf) buf 1818 libltdl/ltdl.c assert (buf); buf 1820 libltdl/ltdl.c strcpy (buf, dirnam); buf 1821 libltdl/ltdl.c strcat (buf, "/"); buf 1822 libltdl/ltdl.c strncat (buf, dp->d_name, end_offset); buf 1823 libltdl/ltdl.c buf[buf_len] = LT_EOS_CHAR; buf 1826 libltdl/ltdl.c if (lt_argz_insertinorder (pargz, pargz_len, buf) != 0) buf 1829 libltdl/ltdl.c FREE (buf); buf 94 tools/cibadmin.c GString *buf = g_string_sized_new(1024); buf 96 tools/cibadmin.c pcmk__xml_string(xml, pcmk__xml_fmt_pretty, buf, 0); buf 98 tools/cibadmin.c fprintf(stdout, "%s", buf->str); buf 99 tools/cibadmin.c g_string_free(buf, TRUE); buf 592 tools/cibadmin.c GString *buf = g_string_sized_new(1024); buf 597 tools/cibadmin.c pcmk__xml_string(output, pcmk__xml_fmt_pretty, buf, 0); buf 598 tools/cibadmin.c fprintf(stdout, "%s", buf->str); buf 599 tools/cibadmin.c g_string_free(buf, TRUE); buf 180 tools/crm_mon_curses.c curses_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 182 tools/crm_mon_curses.c curses_indented_printf(out, "%s", buf); buf 359 tools/crm_resource_ban.c build_clear_xpath_string(GString *buf, const xmlNode *constraint_node, buf 370 tools/crm_resource_ban.c pcmk__assert(buf != NULL); buf 371 tools/crm_resource_ban.c g_string_truncate(buf, 0); buf 378 tools/crm_resource_ban.c g_string_append(buf, "//" PCMK_XE_RSC_LOCATION); buf 381 tools/crm_resource_ban.c g_string_append_c(buf, '['); buf 384 tools/crm_resource_ban.c pcmk__g_strcat(buf, "@" PCMK_XE_NODE "='", node, "'", NULL); buf 387 tools/crm_resource_ban.c g_string_append(buf, " and "); buf 408 tools/crm_resource_ban.c g_string_append(buf, rsc_role_substr->str); buf 410 tools/crm_resource_ban.c g_string_append_c(buf, ']'); buf 414 tools/crm_resource_ban.c g_string_append(buf, "|//" PCMK_XE_RSC_LOCATION); buf 417 tools/crm_resource_ban.c pcmk__g_strcat(buf, "[", rsc_role_substr, "]", NULL); buf 419 tools/crm_resource_ban.c pcmk__g_strcat(buf, buf 425 tools/crm_resource_ban.c g_string_append(buf, "//" PCMK_XE_DATE_EXPRESSION "[@" PCMK_XA_ID "='"); buf 427 tools/crm_resource_ban.c pcmk__g_strcat(buf, cons_id, "-lifetime']", NULL); buf 430 tools/crm_resource_ban.c pcmk__g_strcat(buf, buf 444 tools/crm_resource_ban.c GString *buf = NULL; buf 466 tools/crm_resource_ban.c if (buf == NULL) { buf 467 tools/crm_resource_ban.c buf = g_string_sized_new(1024); buf 470 tools/crm_resource_ban.c build_clear_xpath_string(buf, constraint_node, rsc, node, buf 472 tools/crm_resource_ban.c if (buf->len == 0) { buf 476 tools/crm_resource_ban.c date_expr_node = pcmk__xpath_find_one(constraint_node->doc, buf->str, buf 517 tools/crm_resource_ban.c if (buf != NULL) { buf 518 tools/crm_resource_ban.c g_string_free(buf, TRUE); buf 171 tools/crm_shadow.c GString *buf = g_string_sized_new(1024); buf 175 tools/crm_shadow.c buf, 0); buf 177 tools/crm_shadow.c str = g_string_free(buf, FALSE); buf 247 tools/crm_shadow.c GString *buf = g_string_sized_new(1024); buf 251 tools/crm_shadow.c buf, 0); buf 253 tools/crm_shadow.c str = g_string_free(buf, FALSE); buf 302 tools/crm_shadow.c GString *buf = g_string_sized_new(1024); buf 304 tools/crm_shadow.c pcmk__xml_string(content, pcmk__xml_fmt_pretty|pcmk__xml_fmt_text, buf, buf 307 tools/crm_shadow.c out->output_xml(out, PCMK_XE_CONTENT, buf->str); buf 308 tools/crm_shadow.c g_string_free(buf, TRUE); buf 410 tools/crm_shadow.c struct stat buf; buf 412 tools/crm_shadow.c if (!should_exist && (stat(filename, &buf) == 0)) { buf 422 tools/crm_shadow.c if (should_exist && (stat(filename, &buf) < 0)) { buf 128 tools/crm_verify.c char *buf = NULL; buf 132 tools/crm_verify.c pcmk__assert(vasprintf(&buf, msg, ap) > 0); buf 134 tools/crm_verify.c out->err(out, "error: %s", buf); buf 152 tools/crm_verify.c char *buf = NULL; buf 156 tools/crm_verify.c pcmk__assert(vasprintf(&buf, msg, ap) > 0); buf 158 tools/crm_verify.c out->err(out, "warning: %s", buf);