str 67 daemons/based/based_remote.c debug_log(int level, const char *str) str 69 daemons/based/based_remote.c fputs(str, stderr); str 42 daemons/execd/remoted_tls.c debug_log(int level, const char *str) str 44 daemons/execd/remoted_tls.c fputs(str, stderr); str 158 daemons/fenced/cts-fence-helper.c #define single_test(cmd, str, num_notifications, expected_rc) \ str 168 daemons/fenced/cts-fence-helper.c crm_err("FAILURE - expected rc %d != %d(%s) for cmd - %s", expected_rc, rc, pcmk_strerror(rc), str); \ str 172 daemons/fenced/cts-fence-helper.c num_notifications, num_notifications - expected_notifications, str); \ str 176 daemons/fenced/cts-fence-helper.c crm_info("SUCCESS - %s: %d", str, rc); \ str 178 daemons/fenced/cts-fence-helper.c crm_debug("SUCCESS - %s: %d", str, rc); \ str 35 include/crm/common/strings_internal.h bool pcmk__starts_with(const char *str, const char *prefix); str 38 include/crm/common/strings_internal.h char *pcmk__trim(char *str); str 51 include/crm/common/util.h char * crm_strip_trailing_newline(char *str); str 122 include/crm/common/util_compat.h char *crm_strip_trailing_newline(char *str); str 64 include/portability.h char *strndup(const char *str, size_t len); str 108 include/portability.h char *str; /**< as char* (string, object path or signature) */ str 917 lib/common/iso8601.c parse_int(const char *str, int field_width, int upper_bound, int *result) str 926 lib/common/iso8601.c if (*str == '\0') { str 930 lib/common/iso8601.c if (str[offset] == 'T') { str 934 lib/common/iso8601.c if (str[offset] == '.' || str[offset] == ',') { str 938 lib/common/iso8601.c } else if (str[offset] == '-') { str 941 lib/common/iso8601.c } else if (str[offset] == '+' || str[offset] == ':') { str 945 lib/common/iso8601.c for (; (fraction || lpc < field_width) && isdigit((int)str[offset]); lpc++) { str 947 lib/common/iso8601.c intermediate = (str[offset] - '0') / (10 ^ lpc); str 950 lib/common/iso8601.c intermediate = str[offset] - '0'; str 965 lib/common/iso8601.c crm_trace("Found int: %d. Stopped at str[%d]='%c'", *result, lpc, str[lpc]); str 115 lib/common/output_html.c char *str = (char *) data; str 117 lib/common/output_html.c out->list_item(out, NULL, "%s", str); str 140 lib/common/output_xml.c char *str = (char *) data; str 142 lib/common/output_xml.c pcmk_create_xml_text_node(node, "error", str); str 455 lib/common/strings.c pcmk__trim(char *str) str 459 lib/common/strings.c if (str == NULL) { str 460 lib/common/strings.c return str; str 463 lib/common/strings.c for (len = strlen(str) - 1; len >= 0 && str[len] == '\n'; len--) { str 464 lib/common/strings.c str[len] = '\0'; str 467 lib/common/strings.c return str; str 483 lib/common/strings.c pcmk__starts_with(const char *str, const char *prefix) str 485 lib/common/strings.c const char *s = str; str 1303 lib/common/strings.c crm_strip_trailing_newline(char *str) str 1305 lib/common/strings.c return pcmk__trim(str); str 83 lib/common/tests/strings/pcmk__scan_double_test.c char str[LOCAL_BUF_SIZE]; str 98 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "%f", DBL_MAX); str 99 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, str 103 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "%f", -DBL_MAX); str 104 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, str 112 lib/common/tests/strings/pcmk__scan_double_test.c char str[LOCAL_BUF_SIZE]; str 119 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "1e%d", DBL_MAX_10_EXP + 1); str 120 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, EOVERFLOW); str 123 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "-1e%d", DBL_MAX_10_EXP + 1); str 124 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, EOVERFLOW); str 131 lib/common/tests/strings/pcmk__scan_double_test.c char str[LOCAL_BUF_SIZE]; str 140 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "1e%d", DBL_MIN_10_EXP - 1); str 141 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, str 146 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "-1e%d", DBL_MIN_10_EXP - 1); str 147 lib/common/tests/strings/pcmk__scan_double_test.c g_assert_cmpint(pcmk__scan_double(str, &result, NULL, NULL), ==, str 671 lib/pengine/native.c retval = outstr->str; str 640 lib/services/dbus.c data->object, data->name, (value.str? value.str : "")); str 643 lib/services/dbus.c data->callback(data->name, (value.str? value.str : ""), data->userdata); str 646 lib/services/dbus.c output = strdup(value.str? value.str : ""); str 450 lib/services/systemd.c if (value.str == NULL) { str 454 lib/services/systemd.c crm_trace("DBus ListUnitFiles listed: %s", value.str); str 456 lib/services/systemd.c match = systemd_unit_extension(value.str); str 460 lib/services/systemd.c value.str); str 465 lib/services/systemd.c basename = strrchr(value.str, '/'); str 469 lib/services/systemd.c basename = value.str; str 208 lib/services/upstart.c if(value.str) { str 210 lib/services/upstart.c path = value.str; str 211 lib/services/upstart.c job = value.str; str 283 lib/services/upstart.c if(value.str) { str 284 lib/services/upstart.c instance = strdup(value.str); str 53 libltdl/libltdl/lt__argz_.h LT_SCOPE error_t argz_create_sep(const char *str, int delim, str 80 libltdl/lt__argz.c argz_create_sep (const char *str, int delim, char **pargz, size_t *pargz_len) str 85 libltdl/lt__argz.c assert (str); str 91 libltdl/lt__argz.c argz_len = 1+ strlen (str); str 101 libltdl/lt__argz.c for (p = str, q = argz; *p != EOS_CHAR; ++p) str 132 libltdl/ltdl.c static int trim (char **dest, const char *str); str 1004 libltdl/ltdl.c trim (char **dest, const char *str) str 1008 libltdl/ltdl.c const char *end = strrchr (str, '\''); str 1009 libltdl/ltdl.c size_t len = LT_STRLEN (str); str 1014 libltdl/ltdl.c if (!end || end == str) str 1017 libltdl/ltdl.c if (len > 3 && str[0] == '\'') str 1019 libltdl/ltdl.c tmp = MALLOC (char, end - str); str 1023 libltdl/ltdl.c memcpy(tmp, &str[1], (end - str) - 1); str 1024 libltdl/ltdl.c tmp[(end - str) - 1] = LT_EOS_CHAR; str 27 replace/strndup.c strndup(const char *str, size_t len) str 29 replace/strndup.c size_t n = strnlen(str, len); str 37 replace/strndup.c return (char *)memcpy(new, str, len); str 45 tools/crm_error.c get_strings(int rc, const char **name, const char **str) str 48 tools/crm_error.c *str = crm_exit_str((crm_exit_t) rc); str 51 tools/crm_error.c *str = pcmk_rc_str(rc); str 54 tools/crm_error.c *str = pcmk_strerror(rc);