HelenOS sources
s1 60 common/include/mem.h #define memcmp(s1, s2, cnt) __builtin_memcmp((s1), (s2), (cnt))
s1 112 common/include/str.h extern int str_cmp(const char *s1, const char *s2);
s1 113 common/include/str.h extern int str_lcmp(const char *s1, const char *s2, size_t max_len);
s1 114 common/include/str.h extern int str_casecmp(const char *s1, const char *s2);
s1 115 common/include/str.h extern int str_lcasecmp(const char *s1, const char *s2, size_t max_len);
s1 255 common/stdc/mem.c int memcmp(const void *s1, const void *s2, size_t len)
s1 257 common/stdc/mem.c uint8_t *u1 = (uint8_t *) s1;
s1 582 common/str.c int str_cmp(const char *s1, const char *s2)
s1 591 common/str.c c1 = str_decode(s1, &off1, STR_NO_LIMIT);
s1 629 common/str.c int str_lcmp(const char *s1, const char *s2, size_t max_len)
s1 643 common/str.c c1 = str_decode(s1, &off1, STR_NO_LIMIT);
s1 681 common/str.c int str_casecmp(const char *s1, const char *s2)
s1 690 common/str.c c1 = tolower(str_decode(s1, &off1, STR_NO_LIMIT));
s1 729 common/str.c int str_lcasecmp(const char *s1, const char *s2, size_t max_len)
s1 743 common/str.c c1 = tolower(str_decode(s1, &off1, STR_NO_LIMIT));
s1 56 kernel/arch/mips32/include/arch/context_struct.h uint32_t s1;
s1 102 kernel/arch/mips32/include/arch/istate_struct.h uint32_t s1;
s1 98 kernel/arch/mips32/src/exception.c istate->s0, istate->s1, istate->s2, istate->s3);
s1 60 kernel/arch/riscv64/include/arch/context_struct.h uint64_t s1;
s1 60 kernel/generic/common/include/mem.h #define memcmp(s1, s2, cnt) __builtin_memcmp((s1), (s2), (cnt))
s1 112 kernel/generic/common/include/str.h extern int str_cmp(const char *s1, const char *s2);
s1 113 kernel/generic/common/include/str.h extern int str_lcmp(const char *s1, const char *s2, size_t max_len);
s1 114 kernel/generic/common/include/str.h extern int str_casecmp(const char *s1, const char *s2);
s1 115 kernel/generic/common/include/str.h extern int str_lcasecmp(const char *s1, const char *s2, size_t max_len);
s1 255 kernel/generic/common/stdc/mem.c int memcmp(const void *s1, const void *s2, size_t len)
s1 257 kernel/generic/common/stdc/mem.c uint8_t *u1 = (uint8_t *) s1;
s1 582 kernel/generic/common/str.c int str_cmp(const char *s1, const char *s2)
s1 591 kernel/generic/common/str.c c1 = str_decode(s1, &off1, STR_NO_LIMIT);
s1 629 kernel/generic/common/str.c int str_lcmp(const char *s1, const char *s2, size_t max_len)
s1 643 kernel/generic/common/str.c c1 = str_decode(s1, &off1, STR_NO_LIMIT);
s1 681 kernel/generic/common/str.c int str_casecmp(const char *s1, const char *s2)
s1 690 kernel/generic/common/str.c c1 = tolower(str_decode(s1, &off1, STR_NO_LIMIT));
s1 729 kernel/generic/common/str.c int str_lcasecmp(const char *s1, const char *s2, size_t max_len)
s1 743 kernel/generic/common/str.c c1 = tolower(str_decode(s1, &off1, STR_NO_LIMIT));
s1 51 kernel/generic/include/macros.h _NO_TRACE static inline int overlaps(uint64_t s1, uint64_t sz1, uint64_t s2,
s1 54 kernel/generic/include/macros.h uint64_t e1 = s1 + sz1 - 1;
s1 59 kernel/generic/include/macros.h return ((s1 <= e2) && (s2 <= e1));
s1 63 kernel/generic/include/macros.h return ((s1 >= s2) && (s1 <= e2));
s1 66 kernel/generic/include/macros.h return ((s2 >= s1) && (s2 <= e1));
s1 69 kernel/generic/include/macros.h return (s1 == s2);
s1 80 kernel/generic/include/macros.h _NO_TRACE static inline int iswithin(uint64_t s1, uint64_t sz1, uint64_t s2,
s1 88 kernel/generic/include/macros.h return (s1 == s2) && (sz2 == 0);
s1 90 kernel/generic/include/macros.h e1 = s1 + sz1 - 1;
s1 92 kernel/generic/include/macros.h return (s1 <= s2) && (s2 <= e1);
s1 97 kernel/generic/include/macros.h return ((s1 <= s2) && (e1 >= e2));
s1 96 uspace/app/bdsh/cmds/modules/cp/cp.c static int strtoint(const char *s1)
s1 100 uspace/app/bdsh/cmds/modules/cp/cp.c if (-1 == (t1 = strtol(s1, (char **) NULL, 10)))
s1 996 uspace/app/sbi/src/run_expr.c const char *s1, *s2;
s1 1005 uspace/app/sbi/src/run_expr.c s1 = v1->var->u.string_v->value;
s1 1014 uspace/app/sbi/src/run_expr.c string_v->value = os_str_acat(s1, s2);
s1 1036 uspace/app/sbi/src/run_expr.c zf = os_str_cmp(s1, s2) == 0;
s1 1302 uspace/app/sbi/src/run_expr.c const char *s1, *s2;
s1 1331 uspace/app/sbi/src/run_expr.c s1 = v1->var->u.string_v->value;
s1 1334 uspace/app/sbi/src/run_expr.c *res = os_str_cmp(s1, s2) == 0;
s1 79 uspace/lib/bithenge/src/linux/common.h static inline int str_cmp(const char *s1, const char *s2)
s1 81 uspace/lib/bithenge/src/linux/common.h return strcmp(s1, s2);
s1 84 uspace/lib/bithenge/src/linux/common.h static inline errno_t str_lcmp(const char *s1, const char *s2, size_t max_len)
s1 86 uspace/lib/bithenge/src/linux/common.h return strncmp(s1, s2, max_len);
s1 109 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r17 = istate->s1;
s1 67 uspace/lib/c/arch/mips32/include/libarch/fibril_context.h uint32_t s1;
s1 102 uspace/lib/c/arch/mips32/include/libarch/istate_struct.h uint32_t s1;
s1 60 uspace/lib/c/common/include/mem.h #define memcmp(s1, s2, cnt) __builtin_memcmp((s1), (s2), (cnt))
s1 112 uspace/lib/c/common/include/str.h extern int str_cmp(const char *s1, const char *s2);
s1 113 uspace/lib/c/common/include/str.h extern int str_lcmp(const char *s1, const char *s2, size_t max_len);
s1 114 uspace/lib/c/common/include/str.h extern int str_casecmp(const char *s1, const char *s2);
s1 115 uspace/lib/c/common/include/str.h extern int str_lcasecmp(const char *s1, const char *s2, size_t max_len);
s1 255 uspace/lib/c/common/stdc/mem.c int memcmp(const void *s1, const void *s2, size_t len)
s1 257 uspace/lib/c/common/stdc/mem.c uint8_t *u1 = (uint8_t *) s1;
s1 582 uspace/lib/c/common/str.c int str_cmp(const char *s1, const char *s2)
s1 591 uspace/lib/c/common/str.c c1 = str_decode(s1, &off1, STR_NO_LIMIT);
s1 629 uspace/lib/c/common/str.c int str_lcmp(const char *s1, const char *s2, size_t max_len)
s1 643 uspace/lib/c/common/str.c c1 = str_decode(s1, &off1, STR_NO_LIMIT);
s1 681 uspace/lib/c/common/str.c int str_casecmp(const char *s1, const char *s2)
s1 690 uspace/lib/c/common/str.c c1 = tolower(str_decode(s1, &off1, STR_NO_LIMIT));
s1 729 uspace/lib/c/common/str.c int str_lcasecmp(const char *s1, const char *s2, size_t max_len)
s1 743 uspace/lib/c/common/str.c c1 = tolower(str_decode(s1, &off1, STR_NO_LIMIT));
s1 51 uspace/lib/c/generic/string.c char *strcpy(char *s1, const char *s2)
s1 53 uspace/lib/c/generic/string.c char *dp = s1;
s1 62 uspace/lib/c/generic/string.c return s1;
s1 80 uspace/lib/c/generic/string.c char *strncpy(char *s1, const char *s2, size_t n)
s1 82 uspace/lib/c/generic/string.c char *dp = s1;
s1 91 uspace/lib/c/generic/string.c return s1;
s1 104 uspace/lib/c/generic/string.c char *strcat(char *s1, const char *s2)
s1 106 uspace/lib/c/generic/string.c char *dp = s1;
s1 119 uspace/lib/c/generic/string.c return s1;
s1 132 uspace/lib/c/generic/string.c char *strncat(char *s1, const char *s2, size_t n)
s1 134 uspace/lib/c/generic/string.c char *dp = s1;
s1 149 uspace/lib/c/generic/string.c return s1;
s1 159 uspace/lib/c/generic/string.c int strcmp(const char *s1, const char *s2)
s1 161 uspace/lib/c/generic/string.c while (*s1 == *s2 && *s1 != '\0') {
s1 162 uspace/lib/c/generic/string.c ++s1;
s1 166 uspace/lib/c/generic/string.c return *s1 - *s2;
s1 176 uspace/lib/c/generic/string.c int strcoll(const char *s1, const char *s2)
s1 179 uspace/lib/c/generic/string.c return strcmp(s1, s2);
s1 190 uspace/lib/c/generic/string.c int strncmp(const char *s1, const char *s2, size_t n)
s1 192 uspace/lib/c/generic/string.c while (*s1 == *s2 && *s1 != '\0' && n > 0) {
s1 193 uspace/lib/c/generic/string.c ++s1;
s1 199 uspace/lib/c/generic/string.c return *s1 - *s2;
s1 218 uspace/lib/c/generic/string.c size_t strxfrm(char *s1, const char *s2, size_t n)
s1 226 uspace/lib/c/generic/string.c *s1++ = *s2;
s1 266 uspace/lib/c/generic/string.c size_t strcspn(const char *s1, const char *s2)
s1 272 uspace/lib/c/generic/string.c while (*s1 != '\0') {
s1 274 uspace/lib/c/generic/string.c p = strchr(s2, *s1);
s1 280 uspace/lib/c/generic/string.c ++s1;
s1 294 uspace/lib/c/generic/string.c char *strpbrk(const char *s1, const char *s2)
s1 298 uspace/lib/c/generic/string.c while (*s1 != '\0') {
s1 300 uspace/lib/c/generic/string.c p = strchr(s2, *s1);
s1 304 uspace/lib/c/generic/string.c return (char *) s1;
s1 306 uspace/lib/c/generic/string.c ++s1;
s1 345 uspace/lib/c/generic/string.c size_t strspn(const char *s1, const char *s2)
s1 351 uspace/lib/c/generic/string.c while (*s1 != '\0') {
s1 353 uspace/lib/c/generic/string.c p = strchr(s2, *s1);
s1 359 uspace/lib/c/generic/string.c ++s1;
s1 376 uspace/lib/c/generic/string.c char *strstr(const char *s1, const char *s2)
s1 388 uspace/lib/c/generic/string.c while (*s1 != '\0') {
s1 389 uspace/lib/c/generic/string.c if (strncmp(s1, s2, len) == 0)
s1 390 uspace/lib/c/generic/string.c return (char *) s1;
s1 391 uspace/lib/c/generic/string.c ++s1;
s1 408 uspace/lib/c/generic/string.c char *__strtok_r(char *s1, const char *s2, char **saveptr)
s1 414 uspace/lib/c/generic/string.c if (s1 != NULL) {
s1 416 uspace/lib/c/generic/string.c s = s1;
s1 467 uspace/lib/c/generic/string.c char *strtok(char *s1, const char *s2)
s1 469 uspace/lib/c/generic/string.c return __strtok_r(s1, s2, &strtok_saveptr);
s1 694 uspace/lib/c/generic/time.c sysarg_t s1 = ktime->seconds1;
s1 696 uspace/lib/c/generic/time.c if (s1 != s2) {
s1 697 uspace/lib/c/generic/time.c ts->tv_sec = max(s1, s2);
s1 700 uspace/lib/c/generic/time.c ts->tv_sec = s1;
s1 71 uspace/lib/c/test/mem.c const char *s1 = "ab" "\0" "1d";
s1 75 uspace/lib/c/test/mem.c c = memcmp(s1, s2, 3);
s1 78 uspace/lib/c/test/mem.c c = memcmp(s1, s2, 4);
s1 81 uspace/lib/c/test/mem.c c = memcmp(s2, s1, 4);
s1 112 uspace/lib/cpp/include/__bits/locale/locale.hpp bool operator()(const basic_string<Char, Traits, Allocator>& s1,
s1 82 uspace/lib/cpp/include/__bits/string/string.hpp static int compare(const char_type* s1, const char_type* s2, size_t n)
s1 84 uspace/lib/cpp/include/__bits/string/string.hpp return ::strncmp(s1, s2, n);
s1 104 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* move(char_type* s1, const char_type* s2, size_t n)
s1 106 uspace/lib/cpp/include/__bits/string/string.hpp return static_cast<char_type*>(memmove(s1, s2, n));
s1 109 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* copy(char_type* s1, const char_type* s2, size_t n)
s1 111 uspace/lib/cpp/include/__bits/string/string.hpp return static_cast<char_type*>(memcpy(s1, s2, n));
s1 178 uspace/lib/cpp/include/__bits/string/string.hpp static int compare(const char_type* s1, const char_type* s2, size_t n)
s1 199 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* move(char_type* s1, const char_type* s2, size_t n)
s1 206 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* copy(char_type* s1, const char_type* s2, size_t n)
s1 272 uspace/lib/cpp/include/__bits/string/string.hpp static int compare(const char_type* s1, const char_type* s2, size_t n)
s1 293 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* move(char_type* s1, const char_type* s2, size_t n)
s1 300 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* copy(char_type* s1, const char_type* s2, size_t n)
s1 365 uspace/lib/cpp/include/__bits/string/string.hpp static int compare(const char_type* s1, const char_type* s2, size_t n)
s1 392 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* move(char_type* s1, const char_type* s2, size_t n)
s1 394 uspace/lib/cpp/include/__bits/string/string.hpp return static_cast<char_type*>(memmove(s1, s2, n * sizeof(wchar_t)));
s1 397 uspace/lib/cpp/include/__bits/string/string.hpp static char_type* copy(char_type* s1, const char_type* s2, size_t n)
s1 399 uspace/lib/cpp/include/__bits/string/string.hpp return static_cast<char_type*>(memcpy(s1, s2, n * sizeof(wchar_t)));
s1 122 uspace/lib/cpp/src/__bits/test/bitset.cpp auto s1 = b1.to_string();
s1 125 uspace/lib/cpp/src/__bits/test/bitset.cpp s1, "00101010"
s1 101 uspace/lib/cpp/src/__bits/test/future.cpp auto* s1 = p1.__state();
s1 104 uspace/lib/cpp/src/__bits/test/future.cpp std::swap(s1, s2);
s1 106 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("swap switches states pt1", s1, p1.__state());
s1 110 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("move construction state moved", s1, p3.__state());
s1 114 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("move assignment state move", s1, p1.__state());
s1 118 uspace/lib/cpp/src/__bits/test/future.cpp test("set_value marks state as ready", s1->is_set());
s1 119 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("set_value sets value", s1->get(), 42);
s1 131 uspace/lib/cpp/src/__bits/test/future.cpp auto [p1, f1, s1] = prepare<int>();
s1 132 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("refcount in basic case", s1->refs(), 2);
s1 318 uspace/lib/cpp/src/__bits/test/future.cpp auto [p1, f1, s1] = prepare<int>();
s1 322 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("shared state moved on share", sf1.__state(), s1);
s1 323 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("no refcount increment on share", s1->refs(), 2);
s1 327 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("refcount increment on copy", s1->refs(), 3);
s1 330 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("refcount decrement when copy gets destroyed", s1->refs(), 2);
s1 62 uspace/lib/cpp/src/__bits/test/set.cpp std::set<int> s1{src1};
s1 66 uspace/lib/cpp/src/__bits/test/set.cpp s1.begin(), s1.end()
s1 68 uspace/lib/cpp/src/__bits/test/set.cpp test_eq("size", s1.size(), 7U);
s1 77 uspace/lib/cpp/src/__bits/test/set.cpp std::set<int> s3{s1};
s1 84 uspace/lib/cpp/src/__bits/test/set.cpp std::set<int> s4{std::move(s1)};
s1 90 uspace/lib/cpp/src/__bits/test/set.cpp test_eq("move initialization - origin empty", s1.size(), 0U);
s1 91 uspace/lib/cpp/src/__bits/test/set.cpp test_eq("empty", s1.empty(), true);
s1 93 uspace/lib/cpp/src/__bits/test/set.cpp s1 = s4;
s1 97 uspace/lib/cpp/src/__bits/test/set.cpp s1.begin(), s1.end()
s1 100 uspace/lib/cpp/src/__bits/test/set.cpp s4 = std::move(s1);
s1 106 uspace/lib/cpp/src/__bits/test/set.cpp test_eq("move assignment - origin empty", s1.size(), 0U);
s1 108 uspace/lib/cpp/src/__bits/test/set.cpp s1 = src1;
s1 112 uspace/lib/cpp/src/__bits/test/set.cpp s1.begin(), s1.end()
s1 59 uspace/lib/cpp/src/__bits/test/unordered_set.cpp std::unordered_set<int> s1{src1};
s1 62 uspace/lib/cpp/src/__bits/test/unordered_set.cpp check1.begin(), check1.end(), s1
s1 64 uspace/lib/cpp/src/__bits/test/unordered_set.cpp test_eq("size", s1.size(), 7U);
s1 72 uspace/lib/cpp/src/__bits/test/unordered_set.cpp std::unordered_set<int> s3{s1};
s1 78 uspace/lib/cpp/src/__bits/test/unordered_set.cpp std::unordered_set<int> s4{std::move(s1)};
s1 83 uspace/lib/cpp/src/__bits/test/unordered_set.cpp test_eq("move initialization - origin empty", s1.size(), 0U);
s1 84 uspace/lib/cpp/src/__bits/test/unordered_set.cpp test_eq("empty", s1.empty(), true);
s1 86 uspace/lib/cpp/src/__bits/test/unordered_set.cpp s1 = s4;
s1 89 uspace/lib/cpp/src/__bits/test/unordered_set.cpp check1.begin(), check1.end(), s1
s1 92 uspace/lib/cpp/src/__bits/test/unordered_set.cpp s4 = std::move(s1);
s1 97 uspace/lib/cpp/src/__bits/test/unordered_set.cpp test_eq("move assignment - origin empty", s1.size(), 0U);
s1 99 uspace/lib/cpp/src/__bits/test/unordered_set.cpp s1 = src1;
s1 102 uspace/lib/cpp/src/__bits/test/unordered_set.cpp check1.begin(), check1.end(), s1
s1 143 uspace/lib/gfx/src/coord.c void gfx_span_points_sort(gfx_coord_t s0, gfx_coord_t s1, gfx_coord_t *d0,
s1 146 uspace/lib/gfx/src/coord.c if (s0 <= s1) {
s1 148 uspace/lib/gfx/src/coord.c *d1 = s1;
s1 150 uspace/lib/gfx/src/coord.c *d0 = s1 + 1;
s1 641 uspace/lib/gfx/test/coord.c gfx_coord_t s0, s1;
s1 643 uspace/lib/gfx/test/coord.c gfx_span_points_sort(1, 2, &s0, &s1);
s1 645 uspace/lib/gfx/test/coord.c PCUT_ASSERT_INT_EQUALS(2, s1);
s1 651 uspace/lib/gfx/test/coord.c gfx_coord_t s0, s1;
s1 653 uspace/lib/gfx/test/coord.c gfx_span_points_sort(2, 1, &s0, &s1);
s1 655 uspace/lib/gfx/test/coord.c PCUT_ASSERT_INT_EQUALS(3, s1);
s1 60 uspace/lib/posix/include/common/mem.h #define memcmp(s1, s2, cnt) __builtin_memcmp((s1), (s2), (cnt))
s1 112 uspace/lib/posix/include/common/str.h extern int str_cmp(const char *s1, const char *s2);
s1 113 uspace/lib/posix/include/common/str.h extern int str_lcmp(const char *s1, const char *s2, size_t max_len);
s1 114 uspace/lib/posix/include/common/str.h extern int str_casecmp(const char *s1, const char *s2);
s1 115 uspace/lib/posix/include/common/str.h extern int str_lcasecmp(const char *s1, const char *s2, size_t max_len);
s1 74 uspace/lib/posix/include/posix/string.h extern int strcasecmp(const char *s1, const char *s2);
s1 75 uspace/lib/posix/include/posix/string.h extern int strncasecmp(const char *s1, const char *s2, size_t n);
s1 47 uspace/lib/posix/include/posix/strings.h extern int strcasecmp(const char *s1, const char *s2);
s1 48 uspace/lib/posix/include/posix/strings.h extern int strncasecmp(const char *s1, const char *s2, size_t n);
s1 638 uspace/lib/posix/src/fnmatch.c #define match(s1, s2, flags) fnmatch_test(fnmatch(s1, s2, flags) == 0)
s1 639 uspace/lib/posix/src/fnmatch.c #define nomatch(s1, s2, flags) fnmatch_test(fnmatch(s1, s2, flags) == FNM_NOMATCH)
s1 91 uspace/lib/posix/src/strings.c int strcasecmp(const char *s1, const char *s2)
s1 93 uspace/lib/posix/src/strings.c return strncasecmp(s1, s2, STR_NO_LIMIT);
s1 105 uspace/lib/posix/src/strings.c int strncasecmp(const char *s1, const char *s2, size_t n)
s1 108 uspace/lib/posix/src/strings.c int cmp = tolower(s1[i]) - tolower(s2[i]);
s1 113 uspace/lib/posix/src/strings.c if (s1[i] == 0) {
s1 428 uspace/srv/hid/display/test/display.c ds_seat_t *s0, *s1, *s2;
s1 440 uspace/srv/hid/display/test/display.c s1 = ds_display_next_seat(s0);
s1 441 uspace/srv/hid/display/test/display.c PCUT_ASSERT_NULL(s1);
s1 60 uspace/srv/net/dnsrsrv/dns_msg.c size_t s1, s2;
s1 71 uspace/srv/net/dnsrsrv/dns_msg.c s1 = str_size(*dstr);
s1 73 uspace/srv/net/dnsrsrv/dns_msg.c nsize = s1 + s2 + 1;
s1 79 uspace/srv/net/dnsrsrv/dns_msg.c str_cpy(nstr + s1, nsize - s1, suff);
HelenOS homepage, sources at GitHub