buf 155 daemons/based/based_io.c struct stat buf; buf 163 daemons/based/based_io.c if(stat(a_path, &buf) == 0) { buf 164 daemons/based/based_io.c a_age = buf.st_ctime; buf 166 daemons/based/based_io.c if(stat(b_path, &buf) == 0) { buf 167 daemons/based/based_io.c b_age = buf.st_ctime; buf 528 daemons/fenced/cts-fence-helper.c char buf[16] = { 0, }; buf 549 daemons/fenced/cts-fence-helper.c snprintf(buf, sizeof(buf) - 1, "%d", MAINLOOP_DEFAULT_TIMEOUT + CUSTOM_TIMEOUT_ADDITION); buf 550 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 74 lib/common/acl.c GString *buf = g_string_sized_new(128); buf 78 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), "[@" PCMK_XA_ID "='", buf 82 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), "[@" PCMK_XA_ID "='", buf 86 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), "[@", attr, "]", NULL); buf 89 lib/common/acl.c pcmk__g_strcat(buf, "//", pcmk__s(tag, "*"), NULL); buf 92 lib/common/acl.c acl->xpath = buf->str; buf 94 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 59 lib/common/cib_secrets.c char buf[MAX_VALUE_LEN+1]; buf 69 lib/common/cib_secrets.c if (!fgets(buf, MAX_VALUE_LEN, fp)) { buf 77 lib/common/cib_secrets.c for (p = buf + strlen(buf) - 1; (p >= buf) && isspace(*p); p--); buf 79 lib/common/cib_secrets.c return strdup(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 327 lib/common/io.c struct stat buf; buf 339 lib/common/io.c s_res = stat(full_file, &buf); buf 346 lib/common/io.c } else if (S_ISREG(buf.st_mode) == FALSE) { buf 348 lib/common/io.c target, (unsigned long) buf.st_mode); buf 357 lib/common/io.c s_res = stat(dir, &buf); buf 362 lib/common/io.c } else if (S_ISDIR(buf.st_mode) == FALSE) { buf 364 lib/common/io.c dir, (unsigned long) buf.st_mode); buf 369 lib/common/io.c if (!pcmk__daemon_user_can_write(target, &buf) buf 370 lib/common/io.c && !pcmk__daemon_group_can_write(target, &buf)) { buf 375 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 379 lib/common/mock.c __wrap_getpwnam_r(const char *name, struct passwd *pwd, char *buf, buf 387 lib/common/mock.c check_expected_ptr(buf); buf 394 lib/common/mock.c return __real_getpwnam_r(name, pwd, buf, buflen, result); buf 416 lib/common/mock.c __wrap_readlink(const char *restrict path, char *restrict buf, buf 423 lib/common/mock.c check_expected_ptr(buf); buf 429 lib/common/mock.c strncpy(buf, contents, bufsize - 1); buf 435 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 273 lib/common/output_html.c char *buf = NULL; buf 280 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 284 lib/common/output_html.c priv->errors = g_slist_append(priv->errors, buf); buf 294 lib/common/output_html.c html_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 299 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); buf 325 lib/common/output_html.c char *buf = NULL; buf 329 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 334 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h3", buf); buf 336 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", buf); buf 339 lib/common/output_html.c free(buf); buf 351 lib/common/output_html.c char *buf = NULL; buf 357 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 361 lib/common/output_html.c item_node = pcmk__output_create_xml_text_node(out, "li", buf); buf 362 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 185 lib/common/output_text.c text_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 187 lib/common/output_text.c pcmk__indented_printf(out, "%s", buf); buf 294 lib/common/output_xml.c char *buf = NULL; buf 303 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 307 lib/common/output_xml.c priv->errors = g_slist_append(priv->errors, buf); buf 317 lib/common/output_xml.c xml_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 327 lib/common/output_xml.c cdata_node = xmlNewCDataBlock(parent->doc, (pcmkXmlStr) buf, strlen(buf)); buf 337 lib/common/output_xml.c char *buf = NULL; buf 345 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 350 lib/common/output_xml.c if (strcmp(s->from, buf) == 0) { buf 357 lib/common/output_xml.c name = g_ascii_strdown(buf, -1); buf 369 lib/common/output_xml.c free(buf); buf 377 lib/common/output_xml.c char *buf = NULL; buf 383 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 387 lib/common/output_xml.c item_node = pcmk__output_create_xml_text_node(out, PCMK_XE_ITEM, buf); buf 393 lib/common/output_xml.c free(buf); buf 409 lib/common/output_xml.c char *buf = NULL; buf 414 lib/common/output_xml.c buf = crm_strdup_printf("%lu", xmlChildElementCount(node)); buf 415 lib/common/output_xml.c crm_xml_add(node, PCMK_XA_COUNT, buf); buf 416 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 545 lib/common/xml.c GString *buf = g_string_sized_new(32); buf 548 lib/common/xml.c g_string_append_printf(buf, " 0x%.2X", utf8[i]); buf 551 lib/common/xml.c (pcmk__str_empty(buf->str)? " <none>" : buf->str)); buf 552 lib/common/xml.c g_string_free(buf, TRUE); buf 606 lib/common/xml.c GString *buf = g_string_sized_new(32); buf 609 lib/common/xml.c g_string_append_printf(buf, " 0x%.2X", utf8[i]); buf 612 lib/common/xml.c (pcmk__str_empty(buf->str)? " <none>" : buf->str)); buf 613 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 314 lib/fencing/st_output.c char *buf = crm_strdup_printf("Node %s last fenced at: %s", target, ctime(&when)); buf 315 lib/fencing/st_output.c pcmk__output_create_html_node(out, PCMK__XE_DIV, NULL, NULL, buf); buf 316 lib/fencing/st_output.c free(buf); buf 345 lib/fencing/st_output.c char *buf = timespec_string(when, 0, false); buf 349 lib/fencing/st_output.c PCMK_XA_WHEN, buf, buf 352 lib/fencing/st_output.c free(buf); buf 517 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, buf 519 lib/fencing/st_output.c pcmk__output_create_html_node(out, PCMK__XE_DIV, NULL, NULL, buf); buf 520 lib/fencing/st_output.c free(buf); buf 522 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s %s", agent, buf 524 lib/fencing/st_output.c pcmk__output_create_html_node(out, PCMK__XE_DIV, NULL, NULL, buf); buf 525 lib/fencing/st_output.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 233 lib/pengine/pe_output.c char *buf = NULL; buf 275 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s:%s%s%s%s rc=%d (%s)", call, task, buf 294 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s%s%s", call, task, buf 303 lib/pengine/pe_output.c return buf; buf 309 lib/pengine/pe_output.c char *buf = NULL; buf 312 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: orphan", rsc_id); buf 324 lib/pengine/pe_output.c buf = pcmk__epoch2str(&last_failure, 0); buf 326 lib/pengine/pe_output.c PCMK_XA_LAST_FAILURE, buf); buf 327 lib/pengine/pe_output.c free(buf); buf 330 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: " PCMK_META_MIGRATION_THRESHOLD "=%d%s%s", buf 336 lib/pengine/pe_output.c buf = crm_strdup_printf("%s:", rsc_id); buf 339 lib/pengine/pe_output.c return buf; buf 656 lib/pengine/pe_output.c char *buf = crm_strdup_printf("%s\tprevents %s from running %son %s", buf 660 lib/pengine/pe_output.c pcmk__output_create_html_node(out, "li", NULL, NULL, buf); buf 663 lib/pengine/pe_output.c free(buf); buf 2324 lib/pengine/pe_output.c char *buf = pcmk__itoa(expected_score); buf 2325 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_EXPECTED, buf); buf 2326 lib/pengine/pe_output.c free(buf); buf 2798 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, buf 2801 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 2803 lib/pengine/pe_output.c free(buf); buf 2936 lib/pengine/pe_output.c char *buf = resource_history_string(rsc, rsc_id, all, failcount, last_failure); buf 2939 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); buf 2941 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 2944 lib/pengine/pe_output.c free(buf); buf 3341 lib/pengine/pe_output.c char *buf = pcmk__epoch2str(&ticket->last_granted, 0); buf 3343 lib/pengine/pe_output.c crm_xml_add(node, PCMK_XA_LAST_GRANTED, buf); buf 3344 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 320 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); buf 323 lib/services/services_linux.c buf[rc] = 0; buf 325 lib/services/services_linux.c (long long) rc, op->id, out_type(is_stderr), buf); buf 327 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 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 95 tools/cibadmin.c GString *buf = g_string_sized_new(1024); buf 97 tools/cibadmin.c pcmk__xml_string(xml, pcmk__xml_fmt_pretty, buf, 0); buf 99 tools/cibadmin.c fprintf(stdout, "%s", buf->str); buf 100 tools/cibadmin.c g_string_free(buf, TRUE); buf 589 tools/cibadmin.c GString *buf = g_string_sized_new(1024); buf 594 tools/cibadmin.c pcmk__xml_string(output, pcmk__xml_fmt_pretty, buf, 0); buf 595 tools/cibadmin.c fprintf(stdout, "%s", buf->str); buf 596 tools/cibadmin.c g_string_free(buf, TRUE); buf 179 tools/crm_mon_curses.c curses_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 181 tools/crm_mon_curses.c curses_indented_printf(out, "%s", buf); buf 356 tools/crm_resource_ban.c build_clear_xpath_string(GString *buf, const xmlNode *constraint_node, buf 367 tools/crm_resource_ban.c pcmk__assert(buf != NULL); buf 368 tools/crm_resource_ban.c g_string_truncate(buf, 0); buf 375 tools/crm_resource_ban.c g_string_append(buf, "//" PCMK_XE_RSC_LOCATION); buf 378 tools/crm_resource_ban.c g_string_append_c(buf, '['); buf 381 tools/crm_resource_ban.c pcmk__g_strcat(buf, "@" PCMK_XE_NODE "='", node, "'", NULL); buf 384 tools/crm_resource_ban.c g_string_append(buf, " and "); buf 405 tools/crm_resource_ban.c g_string_append(buf, rsc_role_substr->str); buf 407 tools/crm_resource_ban.c g_string_append_c(buf, ']'); buf 411 tools/crm_resource_ban.c g_string_append(buf, "|//" PCMK_XE_RSC_LOCATION); buf 414 tools/crm_resource_ban.c pcmk__g_strcat(buf, "[", rsc_role_substr, "]", NULL); buf 416 tools/crm_resource_ban.c pcmk__g_strcat(buf, buf 422 tools/crm_resource_ban.c g_string_append(buf, "//" PCMK_XE_DATE_EXPRESSION "[@" PCMK_XA_ID "='"); buf 424 tools/crm_resource_ban.c pcmk__g_strcat(buf, cons_id, "-lifetime']", NULL); buf 427 tools/crm_resource_ban.c pcmk__g_strcat(buf, buf 441 tools/crm_resource_ban.c GString *buf = NULL; buf 457 tools/crm_resource_ban.c if (buf == NULL) { buf 458 tools/crm_resource_ban.c buf = g_string_sized_new(1024); buf 461 tools/crm_resource_ban.c build_clear_xpath_string(buf, constraint_node, rsc, node, buf 463 tools/crm_resource_ban.c if (buf->len == 0) { buf 467 tools/crm_resource_ban.c date_expr_node = get_xpath_object((const char *) buf->str, buf 508 tools/crm_resource_ban.c if (buf != NULL) { buf 509 tools/crm_resource_ban.c g_string_free(buf, TRUE); buf 172 tools/crm_shadow.c GString *buf = g_string_sized_new(1024); buf 176 tools/crm_shadow.c buf, 0); buf 178 tools/crm_shadow.c str = g_string_free(buf, FALSE); buf 248 tools/crm_shadow.c GString *buf = g_string_sized_new(1024); buf 252 tools/crm_shadow.c buf, 0); buf 254 tools/crm_shadow.c str = g_string_free(buf, FALSE); buf 303 tools/crm_shadow.c GString *buf = g_string_sized_new(1024); buf 305 tools/crm_shadow.c pcmk__xml_string(content, pcmk__xml_fmt_pretty|pcmk__xml_fmt_text, buf, buf 308 tools/crm_shadow.c out->output_xml(out, PCMK_XE_CONTENT, buf->str); buf 309 tools/crm_shadow.c g_string_free(buf, TRUE); buf 411 tools/crm_shadow.c struct stat buf; buf 413 tools/crm_shadow.c if (!should_exist && (stat(filename, &buf) == 0)) { buf 423 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);