buf 150 daemons/based/based_io.c struct stat buf; buf 158 daemons/based/based_io.c if(stat(a_path, &buf) == 0) { buf 159 daemons/based/based_io.c a_age = buf.st_ctime; buf 161 daemons/based/based_io.c if(stat(b_path, &buf) == 0) { buf 162 daemons/based/based_io.c b_age = buf.st_ctime; buf 504 daemons/fenced/cts-fence-helper.c char buf[16] = { 0, }; buf 525 daemons/fenced/cts-fence-helper.c snprintf(buf, sizeof(buf) - 1, "%d", MAINLOOP_DEFAULT_TIMEOUT + CUSTOM_TIMEOUT_ADDITION); buf 526 daemons/fenced/cts-fence-helper.c params = stonith_key_value_add(params, "pcmk_off_timeout", buf); buf 393 include/crm/common/output_internal.h void (*output_xml) (pcmk__output_t *out, const char *name, const char *buf); buf 57 include/crm/common/util.h char *score2char_stack(int score, char *buf, size_t len); buf 60 include/crm/common/util_compat.h char *crm_itoa_stack(int an_int, char *buf, size_t len); buf 144 lib/cib/cib_file.c struct stat buf; buf 154 lib/cib/cib_file.c s_res = stat(filename, &buf); buf 158 lib/cib/cib_file.c } else if (buf.st_size == 0) { buf 548 lib/cib/cib_file.c struct stat buf; buf 552 lib/cib/cib_file.c if (strcmp(filename, "-") && (stat(filename, &buf) < 0)) { 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 278 lib/common/cmdline.c char *buf = NULL; buf 284 lib/common/cmdline.c len = vasprintf(&buf, format, ap); buf 288 lib/common/cmdline.c if (!g_shell_parse_argv(buf, NULL, &extra_args, error)) { buf 290 lib/common/cmdline.c free(buf); buf 297 lib/common/cmdline.c free(buf); buf 330 lib/common/io.c struct stat buf; buf 342 lib/common/io.c s_res = stat(full_file, &buf); buf 349 lib/common/io.c } else if (S_ISREG(buf.st_mode) == FALSE) { buf 351 lib/common/io.c target, (unsigned long) buf.st_mode); buf 360 lib/common/io.c s_res = stat(dir, &buf); buf 365 lib/common/io.c } else if (S_ISDIR(buf.st_mode) == FALSE) { buf 367 lib/common/io.c dir, (unsigned long) buf.st_mode); buf 372 lib/common/io.c if (!pcmk__daemon_user_can_write(target, &buf) buf 373 lib/common/io.c && !pcmk__daemon_group_can_write(target, &buf)) { buf 378 lib/common/io.c (unsigned long) buf.st_mode); buf 244 lib/common/output_html.c char *buf = NULL; buf 251 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 255 lib/common/output_html.c priv->errors = g_slist_append(priv->errors, buf); buf 265 lib/common/output_html.c html_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 270 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); buf 296 lib/common/output_html.c char *buf = NULL; buf 300 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 305 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h3", buf); buf 307 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", buf); buf 310 lib/common/output_html.c free(buf); buf 322 lib/common/output_html.c char *buf = NULL; buf 328 lib/common/output_html.c len = vasprintf(&buf, format, ap); buf 332 lib/common/output_html.c item_node = pcmk__output_create_xml_text_node(out, "li", buf); buf 333 lib/common/output_html.c free(buf); buf 123 lib/common/output_log.c log_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 131 lib/common/output_log.c xmlNodeSetContent(node, (pcmkXmlStr) buf); buf 67 lib/common/output_none.c none_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 163 lib/common/output_text.c text_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 165 lib/common/output_text.c pcmk__indented_printf(out, "%s", buf); buf 188 lib/common/output_xml.c char *buf = dump_xml_formatted_with_text(priv->root); buf 189 lib/common/output_xml.c fprintf(out->dest, "%s", buf); buf 191 lib/common/output_xml.c free(buf); buf 256 lib/common/output_xml.c char *buf = NULL; buf 263 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 267 lib/common/output_xml.c priv->errors = g_slist_append(priv->errors, buf); buf 277 lib/common/output_xml.c xml_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 284 lib/common/output_xml.c cdata_node = xmlNewCDataBlock(getDocPtr(parent), (pcmkXmlStr) buf, strlen(buf)); buf 294 lib/common/output_xml.c char *buf = NULL; buf 300 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 306 lib/common/output_xml.c if (!strcmp(s->from, buf)) { buf 314 lib/common/output_xml.c name = g_ascii_strdown(buf, -1); buf 326 lib/common/output_xml.c free(buf); buf 334 lib/common/output_xml.c char *buf = NULL; buf 340 lib/common/output_xml.c len = vasprintf(&buf, format, ap); buf 344 lib/common/output_xml.c item_node = pcmk__output_create_xml_text_node(out, "item", buf); buf 350 lib/common/output_xml.c free(buf); buf 368 lib/common/output_xml.c char *buf = NULL; buf 372 lib/common/output_xml.c buf = crm_strdup_printf("%lu", xmlChildElementCount(node)); buf 373 lib/common/output_xml.c crm_xml_add(node, "count", buf); buf 374 lib/common/output_xml.c free(buf); buf 129 lib/common/pid.c char buf[LOCKSTRLEN + 1]; buf 144 lib/common/pid.c if (read(fd, buf, sizeof(buf)) < 1) { buf 149 lib/common/pid.c if (sscanf(buf, "%lld", &pid_read) > 0) { buf 224 lib/common/pid.c char buf[LOCKSTRLEN + 2]; buf 237 lib/common/pid.c snprintf(buf, sizeof(buf), "%*lld\n", LOCKSTRLEN - 1, (long long) mypid); buf 238 lib/common/pid.c rc = write(fd, buf, LOCKSTRLEN); buf 101 lib/common/utils.c score2char_stack(int score, char *buf, size_t len) buf 103 lib/common/utils.c CRM_CHECK((buf != NULL) && (len >= sizeof(CRM_MINUS_INFINITY_S)), buf 107 lib/common/utils.c strncpy(buf, CRM_INFINITY_S, 9); buf 109 lib/common/utils.c strncpy(buf, CRM_MINUS_INFINITY_S , 10); buf 111 lib/common/utils.c snprintf(buf, len, "%d", score); buf 113 lib/common/utils.c return buf; buf 26 lib/fencing/st_output.c char *buf = NULL; buf 29 lib/fencing/st_output.c buf = crm_time_as_string(crm_when, crm_time_log_date | crm_time_log_timeofday | crm_time_log_with_timezone); buf 31 lib/fencing/st_output.c return buf; buf 164 lib/fencing/st_output.c char *buf = crm_strdup_printf("Node %s last fenced at: %s", target, ctime(&when)); buf 165 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); buf 166 lib/fencing/st_output.c free(buf); buf 195 lib/fencing/st_output.c char *buf = time_t_string(when); buf 199 lib/fencing/st_output.c "when", buf, buf 202 lib/fencing/st_output.c free(buf); buf 295 lib/fencing/st_output.c char *buf = time_t_string(event->completed); buf 303 lib/fencing/st_output.c full_history ? "completed" : "last-failed", buf, buf 312 lib/fencing/st_output.c full_history ? "completed" : "last-successful", buf); buf 322 lib/fencing/st_output.c free(buf); buf 333 lib/fencing/st_output.c char *buf = NULL; buf 366 lib/fencing/st_output.c buf = time_t_string(event->completed); buf 367 lib/fencing/st_output.c crm_xml_add(node, "completed", buf); buf 368 lib/fencing/st_output.c free(buf); buf 384 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, buf 386 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); buf 387 lib/fencing/st_output.c free(buf); buf 389 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s %s", agent, buf 391 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); buf 392 lib/fencing/st_output.c free(buf); buf 84 lib/gnu/gl_openssl.h GL_CRYPTO_FN (_process_bytes) (const void *buf, size_t len, struct _gl_ctx *ctx) buf 85 lib/gnu/gl_openssl.h { OPENSSL_FN (_Update) ((_gl_CTX *) ctx, buf, len); } buf 88 lib/gnu/gl_openssl.h GL_CRYPTO_FN (_process_block) (const void *buf, size_t len, struct _gl_ctx *ctx) buf 89 lib/gnu/gl_openssl.h { GL_CRYPTO_FN (_process_bytes) (buf, len, ctx); } buf 97 lib/gnu/gl_openssl.h GL_CRYPTO_FN (_buffer) (const char *buf, size_t len, void *restrict res) buf 98 lib/gnu/gl_openssl.h { return OPENSSL_FN () ((const unsigned char *) buf, len, (unsigned char *) res); } buf 195 lib/pengine/pe_output.c char *buf = NULL; buf 200 lib/pengine/pe_output.c buf = crm_strdup_printf("%s on %s '%s' (%d): call=%s, status='%s', " buf 215 lib/pengine/pe_output.c return buf; buf 257 lib/pengine/pe_output.c char *buf = NULL; buf 296 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s:%s%s%s%s rc=%d (%s)", call, task, buf 315 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s%s%s", call, task, buf 324 lib/pengine/pe_output.c return buf; buf 330 lib/pengine/pe_output.c char *buf = NULL; buf 333 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: orphan", rsc_id); buf 350 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: migration-threshold=%d%s%s", buf 356 lib/pengine/pe_output.c buf = crm_strdup_printf("%s:", rsc_id); buf 359 lib/pengine/pe_output.c return buf; buf 595 lib/pengine/pe_output.c char *buf = crm_strdup_printf("%s\tprevents %s from running %son %s", buf 599 lib/pengine/pe_output.c pcmk__output_create_html_node(out, "li", NULL, NULL, buf); buf 602 lib/pengine/pe_output.c free(buf); buf 832 lib/pengine/pe_output.c char *buf = crm_strdup_printf("%s (version %s) - partition with quorum", buf 834 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, buf); buf 835 lib/pengine/pe_output.c free(buf); buf 837 lib/pengine/pe_output.c char *buf = crm_strdup_printf("%s (version %s) - partition", buf 839 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, buf); buf 840 lib/pengine/pe_output.c free(buf); buf 1111 lib/pengine/pe_output.c char *buf = last_changed_string(last_written, user, client, origin); buf 1118 lib/pengine/pe_output.c pcmk_create_html_node(changed_node, "span", NULL, NULL, buf); buf 1120 lib/pengine/pe_output.c free(buf); buf 1153 lib/pengine/pe_output.c char *buf = last_changed_string(last_written, user, client, origin); buf 1156 lib/pengine/pe_output.c out->list_item(out, "Last change", " %s", buf); buf 1158 lib/pengine/pe_output.c free(buf); buf 1359 lib/pengine/pe_output.c char *buf = crm_strdup_printf("Node: %s", node_name); buf 1362 lib/pengine/pe_output.c pcmk_create_html_node(item_node, "span", NULL, NULL, buf); buf 1365 lib/pengine/pe_output.c free(buf); buf 1388 lib/pengine/pe_output.c char *buf = NULL; buf 1392 lib/pengine/pe_output.c buf = crm_strdup_printf("GuestNode %s: %s", node_name, node_mode); buf 1394 lib/pengine/pe_output.c buf = crm_strdup_printf("RemoteNode %s: %s", node_name, node_mode); buf 1396 lib/pengine/pe_output.c buf = crm_strdup_printf("Node %s: %s", node_name, node_mode); buf 1406 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); buf 1420 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); buf 1433 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 1436 lib/pengine/pe_output.c free(buf); buf 1570 lib/pengine/pe_output.c char *buf = crm_strdup_printf("(connectivity is degraded -- expected %d", expected_score); buf 1571 lib/pengine/pe_output.c pcmk_create_html_node(item_node, "span", NULL, "bold", buf); buf 1572 lib/pengine/pe_output.c free(buf); buf 1702 lib/pengine/pe_output.c char *buf = pcmk__itoa(expected_score); buf 1703 lib/pengine/pe_output.c crm_xml_add(node, "expected", buf); buf 1704 lib/pengine/pe_output.c free(buf); buf 2169 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, buf 2172 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 2174 lib/pengine/pe_output.c free(buf); buf 2295 lib/pengine/pe_output.c char *buf = resource_history_string(rsc, rsc_id, all, failcount, last_failure); buf 2298 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); buf 2300 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); buf 2303 lib/pengine/pe_output.c free(buf); buf 243 lib/services/services.c char *buf = NULL; buf 253 lib/services/services.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); buf 254 lib/services/services.c if (stat(buf, &st) == 0) { buf 257 lib/services/services.c free(buf); buf 258 lib/services/services.c buf = NULL; buf 263 lib/services/services.c if (buf) { buf 264 lib/services/services.c op->opaque->exec = buf; buf 260 lib/services/services_linux.c char buf[500]; buf 261 lib/services/services_linux.c static const size_t buf_read_len = sizeof(buf) - 1; buf 284 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); buf 286 lib/services/services_linux.c buf[rc] = 0; buf 287 lib/services/services_linux.c crm_trace("Got %d chars: %.80s", rc, buf); buf 289 lib/services/services_linux.c len += sprintf(data + len, "%s", buf); buf 1226 lib/services/services_linux.c char *buf = NULL; buf 1234 lib/services/services_linux.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); buf 1235 lib/services/services_linux.c if (stat(buf, &st) == 0) { buf 1236 lib/services/services_linux.c free(buf); buf 1241 lib/services/services_linux.c free(buf); buf 66 lib/services/services_nagios.c char *buf = NULL; buf 74 lib/services/services_nagios.c buf = crm_strdup_printf(NAGIOS_PLUGIN_DIR "/%s", name); buf 75 lib/services/services_nagios.c if (stat(buf, &st) == 0) { buf 79 lib/services/services_nagios.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 174 tools/crm_mon_curses.c curses_output_xml(pcmk__output_t *out, const char *name, const char *buf) { buf 176 tools/crm_mon_curses.c curses_indented_printf(out, "%s", buf); buf 459 tools/crm_mon_curses.c char *buf = NULL; buf 462 tools/crm_mon_curses.c buf = crm_time_as_string(crm_when, crm_time_log_date | crm_time_log_timeofday | crm_time_log_with_timezone); buf 470 tools/crm_mon_curses.c full_history ? "completed" : "last-failed", buf, buf 479 tools/crm_mon_curses.c full_history ? "completed" : "last-successful", buf); buf 489 tools/crm_mon_curses.c free(buf); buf 257 tools/crm_shadow.c struct stat buf; buf 427 tools/crm_shadow.c rc = stat(shadow_file, &buf);