Home
last modified time | relevance | path

Searched refs:memchr (Results 1 – 25 of 42) sorted by relevance

12

/bionic/libc/upstream-openbsd/lib/libc/string/
Dmemchr.c37 memchr(const void *s, int c, size_t n) in memchr() function
49 DEF_STRONG(memchr);
Dstrstr.c139 const unsigned char *z2 = memchr(z, 0, grow); in twoway_strstr()
/bionic/libc/include/
Dstring.h45 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/
Dfgetln.c79 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()
Dgetdelim.c76 p = memchr(fp->_p, sep, (size_t)fp->_r); in getdelim()
Dfvwrite.c167 nl = memchr((void *)p, '\n', len); in __sfvwrite()
/bionic/libc/arch-arm64/mte/bionic/
Dmemchr.c31 #define memchr memchr_mte macro
/bionic/libc/bionic/
Dstrnlen.c32 char* p = memchr(str, 0, maxlen); in strnlen()
Dmemmem.cpp38 if (m == 1) return const_cast<void*>(memchr(haystack, needle[0], n)); in memmem()
Dmalloc_heapprofd.cpp170 char* first_arg = static_cast<char*>(memchr(cmdline, '\0', rd)); in GetHeapprofdProgramProperty()
177 char* first_at = static_cast<char*>(memchr(cmdline, '@', rd)); in GetHeapprofdProgramProperty()
Dfortify.cpp131 return const_cast<void*>(memchr(s, c, n)); in __memchr_chk()
/bionic/libc/arch-arm64/
Dstatic_function_dispatch.S36 FUNCTION_DELEGATE(memchr, memchr_mte)
Ddynamic_function_dispatch.cpp46 DEFINE_IFUNC_FOR(memchr) { in DEFINE_IFUNC_FOR() argument
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_147.S63 CALL(memchr)
Dliblinker_reloc_bench_086.S474 CALL(memchr)
Dliblinker_reloc_bench_149.S636 CALL(memchr)
Dliblinker_reloc_bench_003.S1199 CALL(memchr)
/bionic/tests/headers/posix/
Dstring_h.c39 FUNCTION(memchr, void* (*f)(const void*, int, size_t)); in string_h()
/bionic/tests/
Dstring_test.cpp778 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()
Dfortify_test.cpp215 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/
Dstring.h134 void* memchr(const void* const s __pass_object_size, int c, size_t n) __overloadable { in memchr() function
/bionic/libc/arch-x86/atom/string/
Dsse2-memchr-atom.S90 ENTRY (memchr)
556 END (memchr)
/bionic/libc/
DAndroid.bp587 "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/
Dposix-2013.txt550 memchr
/bionic/libc/stdio/
Dstdio.cpp801 unsigned char* t = static_cast<unsigned char*>(memchr(p, '\n', len)); in fgets_unlocked()

12