s 105 daemons/based/based_io.c struct stat s; s 108 daemons/based/based_io.c if(stat(a_path, &s) != 0) { s 113 daemons/based/based_io.c } else if ((s.st_mode & S_IFREG) != S_IFREG) { s 118 daemons/based/based_io.c switch (s.st_mode & S_IFMT) { s 68 daemons/pacemakerd/pacemakerd.c for (char **s = feature_list; *s != NULL; s++) { s 69 daemons/pacemakerd/pacemakerd.c pcmk__output_create_xml_text_node(out, "feature", *s); s 203 include/crm/common/ipc_internal.h void pcmk__drop_all_clients(qb_ipcs_service_t *s); s 83 include/crm/common/iso8601.h int crm_time_get_timeofday(crm_time_t * dt, uint32_t * h, uint32_t * m, uint32_t * s); s 25 include/crm/common/remote_internal.h void pcmk__sockaddr2str(void *sa, char *s); s 36 include/crm/common/strings_internal.h bool pcmk__ends_with(const char *s, const char *match); s 37 include/crm/common/strings_internal.h bool pcmk__ends_with_ext(const char *s, const char *match); s 120 include/crm/common/strings_internal.h gboolean pcmk__str_in_list(GList *lst, const gchar *s, uint32_t flags); s 122 include/crm/common/strings_internal.h bool pcmk__strcase_any_of(const char *s, ...) G_GNUC_NULL_TERMINATED; s 123 include/crm/common/strings_internal.h bool pcmk__str_any_of(const char *s, ...) G_GNUC_NULL_TERMINATED; s 166 include/crm/common/strings_internal.h pcmk__str_empty(const char *s) s 168 include/crm/common/strings_internal.h return (s == NULL) || (s[0] == '\0'); s 48 include/crm/common/util.h gboolean crm_is_true(const char *s); s 49 include/crm/common/util.h int crm_str_to_boolean(const char *s, int *ret); s 135 include/crm/common/util.h bool pcmk_str_is_infinity(const char *s); s 136 include/crm/common/util.h bool pcmk_str_is_minus_infinity(const char *s); s 574 include/crm/pengine/internal.h GList * pe__build_node_name_list(pe_working_set_t *data_set, const char *s); s 575 include/crm/pengine/internal.h GList * pe__build_rsc_list(pe_working_set_t *data_set, const char *s); s 49 include/portability.h char *strchrnul(const char *s, int c_in); s 58 include/portability.h size_t strnlen(const char *s, size_t maxlen); s 268 lib/common/iso8601.c crm_time_get_sec(int sec, uint * h, uint * m, uint * s) s 288 lib/common/iso8601.c *s = seconds; s 292 lib/common/iso8601.c crm_time_get_timeofday(crm_time_t * dt, uint * h, uint * m, uint * s) s 294 lib/common/iso8601.c crm_time_get_sec(dt->seconds, h, m, s); s 301 lib/common/iso8601.c uint s; s 303 lib/common/iso8601.c crm_time_get_sec(dt->seconds, h, m, &s); s 475 lib/common/iso8601.c uint h = 0, m = 0, s = 0; s 479 lib/common/iso8601.c crm_time_get_sec(dt->seconds, &h, &m, &s); s 482 lib/common/iso8601.c h, pcmk__plural_s(h), ((m || s)? " " : "")); s 486 lib/common/iso8601.c m, pcmk__plural_s(m), (s? " " : "")); s 488 lib/common/iso8601.c if (s) { s 490 lib/common/iso8601.c s, pcmk__plural_s(s)); s 568 lib/common/iso8601.c uint h = 0, m = 0, s = 0; s 574 lib/common/iso8601.c if (crm_time_get_timeofday(dt, &h, &m, &s)) { s 576 lib/common/iso8601.c "%.2u:%.2u:%.2u", h, m, s); s 580 lib/common/iso8601.c crm_time_get_sec(dt->offset, &h, &m, &s); s 717 lib/common/iso8601.c uint h, m, s; s 740 lib/common/iso8601.c crm_time_get_sec(a_time->offset, &h, &m, &s); s 363 lib/common/md5.c #define OP(a, b, c, d, s, T) \ s 368 lib/common/md5.c CYCLIC (a, s); \ s 375 lib/common/md5.c #define CYCLIC(w, s) (w = (w << s) | (w >> (32 - s))) s 409 lib/common/md5.c #define OP(f, a, b, c, d, k, s, T) \ s 413 lib/common/md5.c CYCLIC (a, s); \ s 484 lib/common/nvpair.c char s[LLSTRSIZE] = { '\0', }; s 486 lib/common/nvpair.c if (snprintf(s, LLSTRSIZE, "%lld", (long long) value) == LLSTRSIZE) { s 489 lib/common/nvpair.c return crm_xml_add(xml, name, s); s 53 lib/common/operations.c convert_interval(const char *s, guint *interval_ms) s 58 lib/common/operations.c l = strtoul(s, NULL, 10); s 305 lib/common/output_xml.c for (subst_t *s = substitutions; s->from != NULL; s++) { s 306 lib/common/output_xml.c if (!strcmp(s->from, buf)) { s 307 lib/common/output_xml.c name = g_strdup(s->to); s 1166 lib/common/remote.c pcmk__sockaddr2str(void *sa, char *s) s 1171 lib/common/remote.c s, INET6_ADDRSTRLEN); s 1176 lib/common/remote.c s, INET6_ADDRSTRLEN); s 1180 lib/common/remote.c strcpy(s, "<invalid>"); s 38 lib/common/schemas.c #define schema_scanf(s, prefix, version, suffix) \ s 39 lib/common/schemas.c sscanf((s), prefix "%hhu.%hhu" suffix, &((version).v[0]), &((version).v[1])) s 274 lib/common/schemas.c struct stat s; s 290 lib/common/schemas.c } else if (stat(xslt, &s) == 0) { s 296 lib/common/schemas.c if (stat(xslt, &s) != 0) { s 304 lib/common/schemas.c if (stat(xslt, &s) != 0) { s 314 lib/common/schemas.c transform_onleave = (stat(xslt, &s) == 0); s 415 lib/common/strings.c crm_is_true(const char *s) s 419 lib/common/strings.c if (s != NULL) { s 420 lib/common/strings.c crm_str_to_boolean(s, &ret); s 426 lib/common/strings.c crm_str_to_boolean(const char *s, int *ret) s 428 lib/common/strings.c if (s == NULL) { s 431 lib/common/strings.c } else if (strcasecmp(s, "true") == 0 s 432 lib/common/strings.c || strcasecmp(s, "on") == 0 s 433 lib/common/strings.c || strcasecmp(s, "yes") == 0 || strcasecmp(s, "y") == 0 || strcasecmp(s, "1") == 0) { s 437 lib/common/strings.c } else if (strcasecmp(s, "false") == 0 s 438 lib/common/strings.c || strcasecmp(s, "off") == 0 s 439 lib/common/strings.c || strcasecmp(s, "no") == 0 || strcasecmp(s, "n") == 0 || strcasecmp(s, "0") == 0) { s 485 lib/common/strings.c const char *s = str; s 488 lib/common/strings.c if (!s || !p) { s 491 lib/common/strings.c while (*s && *p) { s 492 lib/common/strings.c if (*s++ != *p++) { s 500 lib/common/strings.c ends_with(const char *s, const char *match, bool as_extension) s 504 lib/common/strings.c } else if (s == NULL) { s 513 lib/common/strings.c s = strrchr(s, match[0]); s 514 lib/common/strings.c return (s == NULL)? false : !strcmp(s, match); s 518 lib/common/strings.c slen = strlen(s); s 519 lib/common/strings.c return ((slen >= mlen) && !strcmp(s + slen - mlen, match)); s 535 lib/common/strings.c pcmk__ends_with(const char *s, const char *match) s 537 lib/common/strings.c return ends_with(s, match, false); s 562 lib/common/strings.c pcmk__ends_with_ext(const char *s, const char *match) s 564 lib/common/strings.c return ends_with(s, match, true); s 895 lib/common/strings.c pcmk__str_in_list(GList *lst, const gchar *s, uint32_t flags) s 907 lib/common/strings.c if (s == NULL) { s 917 lib/common/strings.c return g_list_find_custom(lst, s, fn) != NULL; s 921 lib/common/strings.c str_any_of(bool casei, const char *s, va_list args) s 925 lib/common/strings.c if (s != NULL) { s 931 lib/common/strings.c } else if (pcmk__str_eq(s, ele, s 955 lib/common/strings.c pcmk__strcase_any_of(const char *s, ...) s 960 lib/common/strings.c va_start(ap, s); s 961 lib/common/strings.c rc = str_any_of(true, s, ap); s 979 lib/common/strings.c pcmk__str_any_of(const char *s, ...) s 984 lib/common/strings.c va_start(ap, s); s 985 lib/common/strings.c rc = str_any_of(false, s, ap); s 30 lib/common/tests/xpath/pcmk__xpath_node_id_test.c char *s = NULL; s 32 lib/common/tests/xpath/pcmk__xpath_node_id_test.c s = pcmk__xpath_node_id("/some/xpath/containing/lrm[@id='xyz']", "lrm"); s 33 lib/common/tests/xpath/pcmk__xpath_node_id_test.c g_assert_cmpint(strcmp(s, "xyz"), ==, 0); s 34 lib/common/tests/xpath/pcmk__xpath_node_id_test.c free(s); s 36 lib/common/tests/xpath/pcmk__xpath_node_id_test.c s = pcmk__xpath_node_id("/some/other/lrm[@id='xyz']/xpath", "lrm"); s 37 lib/common/tests/xpath/pcmk__xpath_node_id_test.c g_assert_cmpint(strcmp(s, "xyz"), ==, 0); s 38 lib/common/tests/xpath/pcmk__xpath_node_id_test.c free(s); s 585 lib/common/utils.c pcmk_str_is_infinity(const char *s) { s 586 lib/common/utils.c return pcmk__str_any_of(s, CRM_INFINITY_S, CRM_PLUS_INFINITY_S, NULL); s 590 lib/common/utils.c pcmk_str_is_minus_infinity(const char *s) { s 591 lib/common/utils.c return pcmk__str_eq(s, CRM_MINUS_INFINITY_S, pcmk__str_none); s 363 lib/gnu/md5.c #define OP(a, b, c, d, s, T) \ s 368 lib/gnu/md5.c CYCLIC (a, s); \ s 375 lib/gnu/md5.c #define CYCLIC(w, s) (w = (w << s) | (w >> (32 - s))) s 409 lib/gnu/md5.c #define OP(f, a, b, c, d, k, s, T) \ s 413 lib/gnu/md5.c CYCLIC (a, s); \ s 30 lib/pacemaker/pcmk_sched_utilization.c utilization_value(const char *s) s 39 lib/pacemaker/pcmk_sched_utilization.c if (s != NULL) { s 40 lib/pacemaker/pcmk_sched_utilization.c pcmk__scan_min_int(s, &value, INT_MIN); s 514 lib/pengine/native.c add_output_flag(GString *s, const char *flag_desc, bool have_flags) s 516 lib/pengine/native.c g_string_append(s, (have_flags? ", " : " (")); s 517 lib/pengine/native.c g_string_append(s, flag_desc); s 523 lib/pengine/native.c add_output_node(GString *s, const char *node, bool have_nodes) s 525 lib/pengine/native.c g_string_append(s, (have_nodes? " " : " [ ")); s 526 lib/pengine/native.c g_string_append(s, node); s 721 lib/pengine/native.c gchar *s = pcmk__native_output_string(rsc, name, node, show_opts, s 725 lib/pengine/native.c pcmk_create_html_node(list_node, "span", NULL, cl, s); s 726 lib/pengine/native.c g_free(s); s 753 lib/pengine/native.c gchar *s = pcmk__native_output_string(rsc, name, node, show_opts, s 756 lib/pengine/native.c out->list_item(out, NULL, "%s", s); s 757 lib/pengine/native.c g_free(s); s 710 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured (%d ", s 713 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 714 lib/pengine/pe_output.c free(s); s 718 lib/pengine/pe_output.c s = crm_strdup_printf(", %d ", nblocked); s 719 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 720 lib/pengine/pe_output.c free(s); s 726 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured (%d ", s 729 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 730 lib/pengine/pe_output.c free(s); s 735 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured (%d ", s 738 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 739 lib/pengine/pe_output.c free(s); s 745 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured", s 747 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 748 lib/pengine/pe_output.c free(s); s 799 lib/pengine/pe_output.c char *s = pcmk__itoa(nnodes); s 800 lib/pengine/pe_output.c crm_xml_add(nodes_node, "number", s); s 801 lib/pengine/pe_output.c free(s); s 803 lib/pengine/pe_output.c s = pcmk__itoa(nresources); s 804 lib/pengine/pe_output.c crm_xml_add(resources_node, "number", s); s 805 lib/pengine/pe_output.c free(s); s 807 lib/pengine/pe_output.c s = pcmk__itoa(ndisabled); s 808 lib/pengine/pe_output.c crm_xml_add(resources_node, "disabled", s); s 809 lib/pengine/pe_output.c free(s); s 811 lib/pengine/pe_output.c s = pcmk__itoa(nblocked); s 812 lib/pengine/pe_output.c crm_xml_add(resources_node, "blocked", s); s 813 lib/pengine/pe_output.c free(s); s 1167 lib/pengine/pe_output.c char *s = failed_action_string(xml_op); s 1169 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", s); s 1170 lib/pengine/pe_output.c free(s); s 1209 lib/pengine/pe_output.c char *s = NULL; s 1214 lib/pengine/pe_output.c s = pcmk__itoa(interval_ms); s 1222 lib/pengine/pe_output.c "interval", s, s 1226 lib/pengine/pe_output.c free(s); s 1287 lib/pengine/pe_output.c char *s = crm_strdup_printf(" standby%s", node->details->running_rsc ? " (with active resources)" : ""); s 1288 lib/pengine/pe_output.c pcmk_create_html_node(parent, "span", NULL, " standby", s); s 1289 lib/pengine/pe_output.c free(s); s 1555 lib/pengine/pe_output.c char *s = crm_strdup_printf("%s: %s", name, value); s 1564 lib/pengine/pe_output.c pcmk_create_html_node(item_node, "span", NULL, NULL, s); s 1565 lib/pengine/pe_output.c free(s); s 2198 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", interval_ms_s); s 2199 lib/pengine/pe_output.c crm_xml_add(node, "interval", s); s 2200 lib/pengine/pe_output.c free(s); s 2214 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", value); s 2215 lib/pengine/pe_output.c crm_xml_add(node, XML_RSC_OP_T_EXEC, s); s 2216 lib/pengine/pe_output.c free(s); s 2220 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", value); s 2221 lib/pengine/pe_output.c crm_xml_add(node, XML_RSC_OP_T_QUEUE, s); s 2222 lib/pengine/pe_output.c free(s); s 2332 lib/pengine/pe_output.c char *s = pcmk__itoa(failcount); s 2334 lib/pengine/pe_output.c crm_xml_add(node, PCMK__FAIL_COUNT_PREFIX, s); s 2335 lib/pengine/pe_output.c free(s); s 245 lib/pengine/rules.c uint32_t h, m, s, y, d, w; s 254 lib/pengine/rules.c crm_time_get_timeofday(now, &h, &m, &s); s 257 lib/pengine/rules.c CHECK_ONE(cron_spec, "seconds", s); s 1599 lib/pengine/unpack.c for (const char *s = end; s > id; --s) { s 1600 lib/pengine/unpack.c switch (*s) { s 1613 lib/pengine/unpack.c return (s == end)? s : (s - 1); s 2438 lib/pengine/utils.c pe__build_node_name_list(pe_working_set_t *data_set, const char *s) { s 2441 lib/pengine/utils.c if (pcmk__str_eq(s, "*", pcmk__str_null_matches)) { s 2448 lib/pengine/utils.c pe_node_t *node = pe_find_node(data_set->nodes, s); s 2454 lib/pengine/utils.c nodes = g_list_prepend(nodes, strdup(s)); s 2462 lib/pengine/utils.c nodes = pe__unames_with_tag(data_set, s); s 2470 lib/pengine/utils.c pe__build_rsc_list(pe_working_set_t *data_set, const char *s) { s 2473 lib/pengine/utils.c if (pcmk__str_eq(s, "*", pcmk__str_null_matches)) { s 2476 lib/pengine/utils.c pe_resource_t *rsc = pe_find_resource_with_flags(data_set->resources, s, s 2485 lib/pengine/utils.c if (strstr(s, ":") != NULL) { s 2495 lib/pengine/utils.c resources = pe__rscs_with_tag(data_set, s); s 103 lib/services/services_linux.c ssize_t s; s 108 lib/services/services_linux.c s = read(fd, &fdsi, sizeof(struct signalfd_siginfo)); s 109 lib/services/services_linux.c if (s != sizeof(struct signalfd_siginfo)) { s 44 libltdl/ltdl.h #define LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0) s 240 maint/mocked/based.c char *s; s 262 maint/mocked/based.c || (s s 263 maint/mocked/based.c = malloc((ctxt->modules_cnt * 2 + 2) * sizeof(*s))) == NULL) { s 266 maint/mocked/based.c s[0] = 'h'; s 270 maint/mocked/based.c s[(ctxt->modules_cnt - i) + 1] = '|'; s 271 maint/mocked/based.c s[(ctxt->modules_cnt - i) + 2] = ctxt->modules[c - 1]->shortopt; s 273 maint/mocked/based.c s[ctxt->modules_cnt * 2 + 1] = '\0'; s 274 maint/mocked/based.c printf("Usage: %s [-{%s}]\n", argv[0], s); s 277 maint/mocked/based.c free(s); s 7 replace/strchrnul.c strchrnul(const char *s, int c_in) s 11 replace/strchrnul.c while (*s && (*s != c)) s 12 replace/strchrnul.c s++; s 14 replace/strchrnul.c return (char *)s; s 24 replace/strnlen.c strnlen(const char *s, size_t maxlen) s 28 replace/strnlen.c eospos = memchr(s, (int)'\0', maxlen); s 30 replace/strnlen.c return (eospos == NULL ? maxlen : (size_t) (eospos - s)); s 224 tools/crm_mon.c for (char **s = parts; *s != NULL; s++) { s 225 tools/crm_mon.c unsigned int bit = find_section_bit(*s); s 227 tools/crm_mon.c if (pcmk__str_eq(*s, "all", pcmk__str_none)) { s 229 tools/crm_mon.c } else if (pcmk__str_eq(*s, "none", pcmk__str_none)) { s 254 tools/crm_mon.c for (char **s = parts; *s != NULL; s++) { s 255 tools/crm_mon.c unsigned int bit = find_section_bit(*s); s 257 tools/crm_mon.c if (pcmk__str_eq(*s, "all", pcmk__str_none)) { s 259 tools/crm_mon.c } else if (pcmk__starts_with(*s, "bans")) { s 266 tools/crm_mon.c if (strlen(*s) > 4 && (*s)[4] == ':') { s 267 tools/crm_mon.c options.neg_location_prefix = strdup(*s+5); s 269 tools/crm_mon.c } else if (pcmk__str_any_of(*s, "default", "defaults", NULL)) { s 271 tools/crm_mon.c } else if (pcmk__str_eq(*s, "none", pcmk__str_none)) { s 301 tools/crm_mon.c char *s = node->data; s 303 tools/crm_mon.c if (pcmk__starts_with(s, "--include=")) { s 304 tools/crm_mon.c rc = apply_include(s+10, error); s 305 tools/crm_mon.c } else if (pcmk__starts_with(s, "-I=")) { s 306 tools/crm_mon.c rc = apply_include(s+3, error); s 307 tools/crm_mon.c } else if (pcmk__starts_with(s, "--exclude=")) { s 308 tools/crm_mon.c rc = apply_exclude(s+10, error); s 309 tools/crm_mon.c } else if (pcmk__starts_with(s, "-U=")) { s 310 tools/crm_mon.c rc = apply_exclude(s+3, error); s 325 tools/crm_mon.c char *s = crm_strdup_printf("%s=%s", option_name, optarg); s 327 tools/crm_mon.c options.user_includes_excludes = g_slist_append(options.user_includes_excludes, s); s 333 tools/crm_mon.c char *s = crm_strdup_printf("%s=%s", option_name, optarg); s 335 tools/crm_mon.c options.includes_excludes = g_slist_append(options.includes_excludes, s); s 493 tools/crm_mon.c char *s = crm_strdup_printf("bans:%s", optarg); s 494 tools/crm_mon.c gboolean rc = include_exclude_cb("--include", s, data, err); s 495 tools/crm_mon.c free(s); s 1722 tools/crm_mon.c char *s = crm_strdup_printf("offline node: %s", node->details->uname); s 1724 tools/crm_mon.c pcmk__add_word(&offline_nodes, &offline_nodes_len, s); s 1725 tools/crm_mon.c free(s); s 1587 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { s 1588 tools/crm_resource.c char *name = calloc(1, strlen(*s)); s 1589 tools/crm_resource.c char *value = calloc(1, strlen(*s)); s 1590 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); s 1612 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { s 1621 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { s 1622 tools/crm_resource.c strv[i] = crm_strdup_printf("[%d of %d] %s\n", i, len, *s);