s 117 cib/io.c struct stat s; s 120 cib/io.c if(stat(a_path, &s) != 0) { s 125 cib/io.c } else if ((s.st_mode & S_IFREG) != S_IFREG) { s 130 cib/io.c switch (s.st_mode & S_IFMT) { s 67 include/crm/common/internal.h gboolean crm_ends_with(const char *s, const char *match); s 68 include/crm/common/internal.h gboolean crm_ends_with_ext(const char *s, const char *match); s 75 include/crm/common/internal.h crm_strlen_zero(const char *s) s 77 include/crm/common/internal.h return !s || *s == '\0'; s 114 include/crm/common/ipcs.h void crm_client_disconnect_all(qb_ipcs_service_t *s); s 86 include/crm/common/iso8601.h int crm_time_get_timeofday(crm_time_t * dt, uint32_t * h, uint32_t * m, uint32_t * s); s 63 include/crm/common/util.h gboolean crm_is_true(const char *s); s 64 include/crm/common/util.h int crm_str_to_boolean(const char *s, int *ret); s 206 include/crm_internal.h void crm_sockaddr2str(void *sa, char *s); s 56 include/portability.h char *strchrnul(const char *s, int c_in); s 66 include/portability.h size_t strnlen(const char *s, size_t maxlen); s 79 lib/ais/utils.c ais_string_to_boolean(const char *s) s 83 lib/ais/utils.c if (s == NULL) { s 87 lib/ais/utils.c if (strcasecmp(s, "true") == 0 s 88 lib/ais/utils.c || strcasecmp(s, "on") == 0 s 89 lib/ais/utils.c || strcasecmp(s, "yes") == 0 || strcasecmp(s, "y") == 0 || strcasecmp(s, "1") == 0) { s 114 lib/ais/utils.h extern int ais_get_boolean(const char *s); s 230 lib/common/iso8601.c crm_time_get_sec(int sec, uint * h, uint * m, uint * s) s 250 lib/common/iso8601.c *s = seconds; s 256 lib/common/iso8601.c crm_time_get_timeofday(crm_time_t * dt, uint * h, uint * m, uint * s) s 258 lib/common/iso8601.c return crm_time_get_sec(dt->seconds, h, m, s); s 264 lib/common/iso8601.c uint s; s 266 lib/common/iso8601.c return crm_time_get_sec(dt->seconds, h, m, &s); s 430 lib/common/iso8601.c uint h = 0, m = 0, s = 0; s 434 lib/common/iso8601.c crm_time_get_sec(dt->seconds, &h, &m, &s); s 457 lib/common/iso8601.c if(s) { s 458 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%u second%s ", s, s>1?"s":""); s 471 lib/common/iso8601.c unsigned long long s = crm_time_get_seconds(date_time); s 473 lib/common/iso8601.c snprintf(date_s, 32, "%lld", s); /* Durations may not be +ve */ s 477 lib/common/iso8601.c unsigned long long s = crm_time_get_seconds_since_epoch(date_time); s 479 lib/common/iso8601.c snprintf(date_s, 32, "%lld", s); /* Durations may not be +ve */ s 509 lib/common/iso8601.c uint h, m, s; s 516 lib/common/iso8601.c if (crm_time_get_timeofday(dt, &h, &m, &s)) { s 517 lib/common/iso8601.c snprintf(time_s, 33, "%.2u:%.2u:%.2u", h, m, s); s 521 lib/common/iso8601.c crm_time_get_sec(dt->offset, &h, &m, &s); s 621 lib/common/iso8601.c uint h, m, s; s 645 lib/common/iso8601.c crm_time_get_sec(dt->offset, &h, &m, &s); s 959 lib/common/remote.c crm_sockaddr2str(void *sa, char *s) s 964 lib/common/remote.c s, INET6_ADDRSTRLEN); s 969 lib/common/remote.c s, INET6_ADDRSTRLEN); s 973 lib/common/remote.c strcpy(s, "<invalid>"); s 48 lib/common/schemas.c #define schema_scanf(s, prefix, version, suffix) \ s 49 lib/common/schemas.c sscanf((s), prefix "%hhu.%hhu" suffix, &((version).v[0]), &((version).v[1])) s 313 lib/common/schemas.c struct stat s; s 318 lib/common/schemas.c if (stat(xslt, &s) != 0) { s 165 lib/common/strings.c crm_is_true(const char *s) s 169 lib/common/strings.c if (s != NULL) { s 170 lib/common/strings.c crm_str_to_boolean(s, &ret); s 176 lib/common/strings.c crm_str_to_boolean(const char *s, int *ret) s 178 lib/common/strings.c if (s == NULL) { s 181 lib/common/strings.c } else if (strcasecmp(s, "true") == 0 s 182 lib/common/strings.c || strcasecmp(s, "on") == 0 s 183 lib/common/strings.c || strcasecmp(s, "yes") == 0 || strcasecmp(s, "y") == 0 || strcasecmp(s, "1") == 0) { s 187 lib/common/strings.c } else if (strcasecmp(s, "false") == 0 s 188 lib/common/strings.c || strcasecmp(s, "off") == 0 s 189 lib/common/strings.c || strcasecmp(s, "no") == 0 || strcasecmp(s, "n") == 0 || strcasecmp(s, "0") == 0) { s 254 lib/common/strings.c const char *s = str; s 257 lib/common/strings.c if (!s || !p) { s 260 lib/common/strings.c while (*s && *p) { s 261 lib/common/strings.c if (*s++ != *p++) { s 270 lib/common/strings.c crm_ends_with_internal(const char *s, const char *match, gboolean as_extension) s 272 lib/common/strings.c if ((s == NULL) || (match == NULL)) { s 280 lib/common/strings.c return !strcmp(null2emptystr(strrchr(s, match[0])), match); s 284 lib/common/strings.c slen = strlen(s); s 285 lib/common/strings.c return ((slen >= mlen) && !strcmp(s + slen - mlen, match)); s 302 lib/common/strings.c crm_ends_with(const char *s, const char *match) s 304 lib/common/strings.c return crm_ends_with_internal(s, match, FALSE); s 331 lib/common/strings.c crm_ends_with_ext(const char *s, const char *match) s 333 lib/common/strings.c return crm_ends_with_internal(s, match, TRUE); s 340 lib/gnu/md5.c #define OP(a, b, c, d, s, T) \ s 345 lib/gnu/md5.c CYCLIC (a, s); \ s 352 lib/gnu/md5.c #define CYCLIC(w, s) (w = (w << s) | (w >> (32 - s))) s 386 lib/gnu/md5.c #define OP(f, a, b, c, d, k, s, T) \ s 390 lib/gnu/md5.c CYCLIC (a, s); \ s 554 lib/pengine/rules.c uint32_t h, m, s, y, d, w; s 558 lib/pengine/rules.c crm_time_get_timeofday(now, &h, &m, &s); s 560 lib/pengine/rules.c cron_check("seconds", s); s 1574 lib/pengine/unpack.c for (const char *s = end; s > id; --s) { s 1575 lib/pengine/unpack.c switch (*s) { s 1588 lib/pengine/unpack.c return (s == end)? s : (s - 1); s 510 lib/services/services_linux.c ssize_t s; s 512 lib/services/services_linux.c s = read(sfd, &fdsi, sizeof(struct signalfd_siginfo)); s 513 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 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));