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 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 44 include/crm/common/strings_internal.h gboolean pcmk__str_in_list(GList *lst, const gchar *s); s 46 include/crm/common/strings_internal.h bool pcmk__strcase_any_of(const char *s, ...) G_GNUC_NULL_TERMINATED; s 47 include/crm/common/strings_internal.h bool pcmk__str_any_of(const char *s, ...) G_GNUC_NULL_TERMINATED; s 89 include/crm/common/strings_internal.h pcmk__str_empty(const char *s) s 91 include/crm/common/strings_internal.h return (s == NULL) || (s[0] == '\0'); s 50 include/crm/common/util.h gboolean crm_is_true(const char *s); s 51 include/crm/common/util.h int crm_str_to_boolean(const char *s, int *ret); s 226 include/crm/common/util.h bool pcmk_str_is_infinity(const char *s); s 227 include/crm/common/util.h bool pcmk_str_is_minus_infinity(const char *s); s 47 include/portability.h char *strchrnul(const char *s, int c_in); s 57 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 477 lib/common/nvpair.c char s[LLSTRSIZE] = { '\0', }; s 479 lib/common/nvpair.c if (snprintf(s, LLSTRSIZE, "%lld", (long long) value) == LLSTRSIZE) { s 482 lib/common/nvpair.c return crm_xml_add(xml, name, s); s 52 lib/common/operations.c convert_interval(const char *s, guint *interval_ms) s 57 lib/common/operations.c l = strtoul(s, NULL, 10); s 301 lib/common/output_xml.c for (subst_t *s = substitutions; s->from != NULL; s++) { s 302 lib/common/output_xml.c if (!strcmp(s->from, buf)) { s 303 lib/common/output_xml.c name = s->to; s 1179 lib/common/remote.c pcmk__sockaddr2str(void *sa, char *s) s 1184 lib/common/remote.c s, INET6_ADDRSTRLEN); s 1189 lib/common/remote.c s, INET6_ADDRSTRLEN); s 1193 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 392 lib/common/strings.c crm_is_true(const char *s) s 396 lib/common/strings.c if (s != NULL) { s 397 lib/common/strings.c crm_str_to_boolean(s, &ret); s 403 lib/common/strings.c crm_str_to_boolean(const char *s, int *ret) s 405 lib/common/strings.c if (s == NULL) { s 408 lib/common/strings.c } else if (strcasecmp(s, "true") == 0 s 409 lib/common/strings.c || strcasecmp(s, "on") == 0 s 410 lib/common/strings.c || strcasecmp(s, "yes") == 0 || strcasecmp(s, "y") == 0 || strcasecmp(s, "1") == 0) { s 414 lib/common/strings.c } else if (strcasecmp(s, "false") == 0 s 415 lib/common/strings.c || strcasecmp(s, "off") == 0 s 416 lib/common/strings.c || strcasecmp(s, "no") == 0 || strcasecmp(s, "n") == 0 || strcasecmp(s, "0") == 0) { s 454 lib/common/strings.c const char *s = str; s 457 lib/common/strings.c if (!s || !p) { s 460 lib/common/strings.c while (*s && *p) { s 461 lib/common/strings.c if (*s++ != *p++) { s 469 lib/common/strings.c ends_with(const char *s, const char *match, bool as_extension) s 473 lib/common/strings.c } else if (s == NULL) { s 482 lib/common/strings.c s = strrchr(s, match[0]); s 483 lib/common/strings.c return (s == NULL)? false : !strcmp(s, match); s 487 lib/common/strings.c slen = strlen(s); s 488 lib/common/strings.c return ((slen >= mlen) && !strcmp(s + slen - mlen, match)); s 504 lib/common/strings.c pcmk__ends_with(const char *s, const char *match) s 506 lib/common/strings.c return ends_with(s, match, false); s 531 lib/common/strings.c pcmk__ends_with_ext(const char *s, const char *match) s 533 lib/common/strings.c return ends_with(s, match, true); s 794 lib/common/strings.c pcmk__str_in_list(GList *lst, const gchar *s) s 804 lib/common/strings.c return g_list_find_custom(lst, s, (GCompareFunc) strcmp) != NULL; s 808 lib/common/strings.c str_any_of(bool casei, const char *s, va_list args) s 812 lib/common/strings.c if (s != NULL) { s 818 lib/common/strings.c } else if (pcmk__str_eq(s, ele, s 842 lib/common/strings.c pcmk__strcase_any_of(const char *s, ...) s 847 lib/common/strings.c va_start(ap, s); s 848 lib/common/strings.c rc = str_any_of(true, s, ap); s 866 lib/common/strings.c pcmk__str_any_of(const char *s, ...) s 871 lib/common/strings.c va_start(ap, s); s 872 lib/common/strings.c rc = str_any_of(false, s, ap); s 531 lib/common/utils.c pcmk_str_is_infinity(const char *s) { s 532 lib/common/utils.c return pcmk__str_any_of(s, CRM_INFINITY_S, CRM_PLUS_INFINITY_S, NULL); s 536 lib/common/utils.c pcmk_str_is_minus_infinity(const char *s) { s 537 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 543 lib/pengine/native.c add_output_flag(GString *s, const char *flag_desc, bool have_flags) s 545 lib/pengine/native.c g_string_append(s, (have_flags? ", " : " (")); s 546 lib/pengine/native.c g_string_append(s, flag_desc); s 552 lib/pengine/native.c add_output_node(GString *s, const char *node, bool have_nodes) s 554 lib/pengine/native.c g_string_append(s, (have_nodes? " " : " [ ")); s 555 lib/pengine/native.c g_string_append(s, node); s 761 lib/pengine/native.c gchar *s = native_output_string(rsc, name, node, options, target_role, s 765 lib/pengine/native.c pcmk_create_html_node(list_node, "span", NULL, cl, s); s 766 lib/pengine/native.c g_free(s); s 829 lib/pengine/native.c gchar *s = native_output_string(rsc, name, node, options, target_role, s 832 lib/pengine/native.c out->list_item(out, NULL, "%s", s); s 833 lib/pengine/native.c g_free(s); s 504 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured (%d ", s 507 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 508 lib/pengine/pe_output.c free(s); s 512 lib/pengine/pe_output.c s = crm_strdup_printf(", %d ", nblocked); s 513 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 514 lib/pengine/pe_output.c free(s); s 520 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured (%d ", s 523 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 524 lib/pengine/pe_output.c free(s); s 529 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured (%d ", s 532 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 533 lib/pengine/pe_output.c free(s); s 539 lib/pengine/pe_output.c char *s = crm_strdup_printf("%d resource instance%s configured", s 541 lib/pengine/pe_output.c pcmk_create_html_node(resources_node, "span", NULL, NULL, s); s 542 lib/pengine/pe_output.c free(s); s 593 lib/pengine/pe_output.c char *s = crm_itoa(nnodes); s 594 lib/pengine/pe_output.c xmlSetProp(nodes_node, (pcmkXmlStr) "number", (pcmkXmlStr) s); s 595 lib/pengine/pe_output.c free(s); s 597 lib/pengine/pe_output.c s = crm_itoa(nresources); s 598 lib/pengine/pe_output.c xmlSetProp(resources_node, (pcmkXmlStr) "number", (pcmkXmlStr) s); s 599 lib/pengine/pe_output.c free(s); s 601 lib/pengine/pe_output.c s = crm_itoa(ndisabled); s 602 lib/pengine/pe_output.c xmlSetProp(resources_node, (pcmkXmlStr) "disabled", (pcmkXmlStr) s); s 603 lib/pengine/pe_output.c free(s); s 605 lib/pengine/pe_output.c s = crm_itoa(nblocked); s 606 lib/pengine/pe_output.c xmlSetProp(resources_node, (pcmkXmlStr) "blocked", (pcmkXmlStr) s); s 607 lib/pengine/pe_output.c free(s); s 955 lib/pengine/pe_output.c char *s = failed_action_string(xml_op); s 957 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", s); s 958 lib/pengine/pe_output.c free(s); s 992 lib/pengine/pe_output.c char *s = NULL; s 998 lib/pengine/pe_output.c s = crm_itoa(interval_ms); s 1008 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "interval", (pcmkXmlStr) s); s 1012 lib/pengine/pe_output.c free(s); s 1047 lib/pengine/pe_output.c char *s = crm_strdup_printf(" standby%s", node->details->running_rsc ? " (with active resources)" : ""); s 1048 lib/pengine/pe_output.c pcmk_create_html_node(item_node, "span", NULL, " standby", s); s 1049 lib/pengine/pe_output.c free(s); s 1267 lib/pengine/pe_output.c char *s = crm_strdup_printf("%s: %s", name, value); s 1270 lib/pengine/pe_output.c pcmk_create_html_node(item_node, "span", NULL, NULL, s); s 1271 lib/pengine/pe_output.c free(s); s 1539 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", interval_ms_s); s 1540 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "interval", (pcmkXmlStr) s); s 1541 lib/pengine/pe_output.c free(s); s 1567 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", value); s 1568 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) XML_RSC_OP_T_EXEC, (pcmkXmlStr) s); s 1569 lib/pengine/pe_output.c free(s); s 1573 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", value); s 1574 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) XML_RSC_OP_T_QUEUE, (pcmkXmlStr) s); s 1575 lib/pengine/pe_output.c free(s); s 1632 lib/pengine/pe_output.c char *s = crm_itoa(failcount); s 1635 lib/pengine/pe_output.c (pcmkXmlStr) s); s 1636 lib/pengine/pe_output.c free(s); s 276 lib/pengine/rules.c uint32_t h, m, s, y, d, w; s 285 lib/pengine/rules.c crm_time_get_timeofday(now, &h, &m, &s); s 288 lib/pengine/rules.c CHECK_ONE(cron_spec, "seconds", s); s 1541 lib/pengine/unpack.c for (const char *s = end; s > id; --s) { s 1542 lib/pengine/unpack.c switch (*s) { s 1555 lib/pengine/unpack.c return (s == end)? s : (s - 1); 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 208 tools/crm_mon.c for (char **s = parts; *s != NULL; s++) { s 209 tools/crm_mon.c unsigned int bit = find_section_bit(*s); s 211 tools/crm_mon.c if (pcmk__str_eq(*s, "all", pcmk__str_none)) { s 213 tools/crm_mon.c } else if (pcmk__str_eq(*s, "none", pcmk__str_none)) { s 238 tools/crm_mon.c for (char **s = parts; *s != NULL; s++) { s 239 tools/crm_mon.c unsigned int bit = find_section_bit(*s); s 241 tools/crm_mon.c if (pcmk__str_eq(*s, "all", pcmk__str_none)) { s 243 tools/crm_mon.c } else if (pcmk__starts_with(*s, "bans")) { s 250 tools/crm_mon.c if (strlen(*s) > 4 && (*s)[4] == ':') { s 251 tools/crm_mon.c options.neg_location_prefix = strdup(*s+5); s 253 tools/crm_mon.c } else if (pcmk__str_any_of(*s, "default", "defaults", NULL)) { s 255 tools/crm_mon.c } else if (pcmk__str_eq(*s, "none", pcmk__str_none)) { s 285 tools/crm_mon.c char *s = node->data; s 287 tools/crm_mon.c if (pcmk__starts_with(s, "--include=")) { s 288 tools/crm_mon.c rc = apply_include(s+10, error); s 289 tools/crm_mon.c } else if (pcmk__starts_with(s, "-I=")) { s 290 tools/crm_mon.c rc = apply_include(s+3, error); s 291 tools/crm_mon.c } else if (pcmk__starts_with(s, "--exclude=")) { s 292 tools/crm_mon.c rc = apply_exclude(s+10, error); s 293 tools/crm_mon.c } else if (pcmk__starts_with(s, "-U=")) { s 294 tools/crm_mon.c rc = apply_exclude(s+3, error); s 309 tools/crm_mon.c char *s = crm_strdup_printf("%s=%s", option_name, optarg); s 311 tools/crm_mon.c options.user_includes_excludes = g_slist_append(options.user_includes_excludes, s); s 317 tools/crm_mon.c char *s = crm_strdup_printf("%s=%s", option_name, optarg); s 319 tools/crm_mon.c options.includes_excludes = g_slist_append(options.includes_excludes, s); s 482 tools/crm_mon.c char *s = crm_strdup_printf("bans:%s", optarg); s 483 tools/crm_mon.c gboolean rc = include_exclude_cb("--include", s, data, err); s 484 tools/crm_mon.c free(s); s 1487 tools/crm_mon.c char *s = crm_strdup_printf("offline node: %s", node->details->uname); s 1489 tools/crm_mon.c pcmk__add_word(&offline_nodes, &offline_nodes_len, s); s 1490 tools/crm_mon.c free(s); s 59 tools/crm_mon_print.c build_uname_list(pe_working_set_t *data_set, const char *s) { s 62 tools/crm_mon_print.c if (pcmk__str_eq(s, "*", pcmk__str_null_matches)) { s 69 tools/crm_mon_print.c pe_node_t *node = pe_find_node(data_set->nodes, s); s 75 tools/crm_mon_print.c unames = g_list_prepend(unames, strdup(s)); s 83 tools/crm_mon_print.c unames = pe__unames_with_tag(data_set, s); s 91 tools/crm_mon_print.c build_rsc_list(pe_working_set_t *data_set, const char *s) { s 94 tools/crm_mon_print.c if (pcmk__str_eq(s, "*", pcmk__str_null_matches)) { s 97 tools/crm_mon_print.c pe_resource_t *rsc = pe_find_resource_with_flags(data_set->resources, s, s 106 tools/crm_mon_print.c if (strstr(s, ":") != NULL) { s 116 tools/crm_mon_print.c resources = pe__rscs_with_tag(data_set, s); s 1548 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { s 1549 tools/crm_resource.c char *name = calloc(1, strlen(*s)); s 1550 tools/crm_resource.c char *value = calloc(1, strlen(*s)); s 1551 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); s 1572 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { s 1581 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { s 1582 tools/crm_resource.c strv[i] = crm_strdup_printf("[%d of %d] %s\n", i, len, *s);