/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memchr.c | 37 memchr(const void *s, int c, size_t n) in memchr() function 49 DEF_STRONG(memchr);
|
D | strstr.c | 139 const unsigned char *z2 = memchr(z, 0, grow); in twoway_strstr()
|
/bionic/libc/include/ |
D | string.h | 45 void* memchr(const void* __s, int __ch, size_t __n) __attribute_pure__; 156 return memchr(s, c, n); in __bionic_memchr() 160 const void* memchr(const void* const s __pass_object_size, int c, size_t n) in memchr() function 166 void* memchr(void* const s __pass_object_size, int c, size_t n) __prefer_this_overload { in memchr() function
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fgetln.c | 79 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) != NULL) { in fgetln() 120 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) == NULL) in fgetln()
|
D | getdelim.c | 76 p = memchr(fp->_p, sep, (size_t)fp->_r); in getdelim()
|
D | fvwrite.c | 167 nl = memchr((void *)p, '\n', len); in __sfvwrite()
|
/bionic/libc/arch-arm64/mte/bionic/ |
D | memchr.c | 31 #define memchr memchr_mte macro
|
/bionic/libc/bionic/ |
D | strnlen.c | 32 char* p = memchr(str, 0, maxlen); in strnlen()
|
D | memmem.cpp | 38 if (m == 1) return const_cast<void*>(memchr(haystack, needle[0], n)); in memmem()
|
D | malloc_heapprofd.cpp | 170 char* first_arg = static_cast<char*>(memchr(cmdline, '\0', rd)); in GetHeapprofdProgramProperty() 177 char* first_at = static_cast<char*>(memchr(cmdline, '@', rd)); in GetHeapprofdProgramProperty()
|
D | fortify.cpp | 131 return const_cast<void*>(memchr(s, c, n)); in __memchr_chk()
|
/bionic/libc/arch-arm64/ |
D | static_function_dispatch.S | 36 FUNCTION_DELEGATE(memchr, memchr_mte)
|
D | dynamic_function_dispatch.cpp | 46 DEFINE_IFUNC_FOR(memchr) { in DEFINE_IFUNC_FOR() argument
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_147.S | 63 CALL(memchr)
|
D | liblinker_reloc_bench_086.S | 474 CALL(memchr)
|
D | liblinker_reloc_bench_149.S | 636 CALL(memchr)
|
D | liblinker_reloc_bench_003.S | 1199 CALL(memchr)
|
/bionic/tests/headers/posix/ |
D | string_h.c | 39 FUNCTION(memchr, void* (*f)(const void*, int, size_t)); in string_h()
|
/bionic/tests/ |
D | string_test.cpp | 778 TEST(STRING_TEST, memchr) { in TEST() argument 794 ASSERT_TRUE(memchr(state.ptr1, seek_char, state.len[i]) == expected); in TEST() 803 ASSERT_TRUE(nullptr == memchr(buffer, 5, 0)); in TEST() 804 ASSERT_TRUE(nullptr == memchr(buffer, 10, 0)); in TEST() 1381 ASSERT_EQ(nullptr, memchr(buf, search_value, len)); in DoMemchrTest() 1385 ASSERT_EQ(&buf[0], memchr(buf, search_value, len)); in DoMemchrTest() 1390 ASSERT_EQ(&buf[len - 1], memchr(buf, search_value, len)); in DoMemchrTest()
|
D | fortify_test.cpp | 215 ASSERT_FORTIFY(printf("%s", memchr(myfoo.a, 'a', asize))); in TEST_F() 216 ASSERT_FORTIFY(printf("%s", memchr(static_cast<const void*>(myfoo.a), 'a', asize))); in TEST_F()
|
/bionic/libc/include/bits/fortify/ |
D | string.h | 134 void* memchr(const void* const s __pass_object_size, int c, size_t n) __overloadable { in memchr() function
|
/bionic/libc/arch-x86/atom/string/ |
D | sse2-memchr-atom.S | 90 ENTRY (memchr) 556 END (memchr)
|
/bionic/libc/ |
D | Android.bp | 587 "upstream-openbsd/lib/libc/string/memchr.c", 610 "upstream-openbsd/lib/libc/string/memchr.c", 618 "upstream-openbsd/lib/libc/string/memchr.c", 848 "arch-arm64/default/bionic/memchr.S", 855 "arch-arm64/mte/bionic/memchr.c", 890 "arch-x86/atom/string/sse2-memchr-atom.S",
|
/bionic/libc/tools/ |
D | posix-2013.txt | 550 memchr
|
/bionic/libc/stdio/ |
D | stdio.cpp | 801 unsigned char* t = static_cast<unsigned char*>(memchr(p, '\n', len)); in fgets_unlocked()
|