Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 174) sorted by relevance

1234567

/bionic/tests/
Dresolv_test.cpp49 ASSERT_EQ(static_cast<int>(strlen("aGVsbG8=")), in TEST()
50 b64_ntop(reinterpret_cast<u_char const*>("hello"), strlen("hello"), in TEST()
58 ASSERT_EQ(static_cast<int>(strlen("hello")), b64_pton("aGVsbG8=", buf, sizeof(buf))); in TEST()
Dgetcwd_test.cpp31 ASSERT_GE(strlen(cwd), 1U); in TEST()
41 ASSERT_GE(strlen(cwd), 1U); in TEST()
86 ASSERT_GE(strlen(cwd), 1U); in TEST()
Diconv_test.cpp61 size_t in_bytes = strlen(in); in TEST()
87 size_t in_bytes = strlen(in); in TEST()
116 size_t in_bytes = strlen(in); in TEST()
144 size_t in_bytes = strlen(in); in TEST()
170 size_t in_bytes = strlen(in); in TEST()
203 size_t in_bytes = strlen(in); in TEST()
230 size_t in_bytes = strlen(in); in TEST()
299 size_t in_bytes = strlen(utf8); in RoundTrip()
Dsys_un_test.cpp26 ASSERT_EQ(2U + strlen("hello"), SUN_LEN(&sun)); in TEST()
Dthread_local_test.cpp209 ASSERT_TRUE(strlen(tls_value2) <= strlen(tls_value1)); in TEST()
211 {strlen(tls_value1) + 1, 1, {0}, tls_value1}; in TEST()
241 memcpy(p, tls_value2, strlen(tls_value2) + 1); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrlen.c35 strlen(const char *str) in strlen() function
44 DEF_STRONG(strlen);
Dstrxfrm.c49 return (strlen(src)); in strxfrm()
Dstrdup.c44 siz = strlen(str) + 1; in strdup()
Dstrcasestr.c50 len = strlen(find); in strcasestr()
/bionic/libc/bionic/
D__bionic_get_shell_path.cpp51 char exe_path[strlen(VENDOR_PREFIX)]; in init_sh_path()
53 if (len != -1 && !strncmp(exe_path, VENDOR_PREFIX, strlen(VENDOR_PREFIX))) { in init_sh_path()
Dsystem_property_set.cpp63 const size_t namelen = strlen(property_service_socket); in PropertyServiceConnection()
131 uint32_t valuelen = strlen(value); in WriteString()
258 if (strlen(key) >= PROP_NAME_MAX) return -1; in __system_property_set()
259 if (strlen(value) >= PROP_VALUE_MAX) return -1; in __system_property_set()
270 if (strlen(value) >= PROP_VALUE_MAX && strncmp(key, "ro.", 3) != 0) return -1; in __system_property_set()
Dmntent.cpp79 char* const end = mnt->mnt_opts + strlen(mnt->mnt_opts); in hasmntopt()
80 const size_t optLen = strlen(opt); in hasmntopt()
Dgetdomainname.cpp42 if (strlen(uts.domainname) >= len) { in getdomainname()
Dgethostname.cpp38 size_t name_length = static_cast<size_t>(strlen(name.nodename) + 1); in gethostname()
Dlibgen.cpp53 endp = path + strlen(path) - 1; in __basename_r()
109 endp = path + strlen(path) - 1; in __dirname_r()
/bionic/libc/dns/nameser/
Dns_samedomain.c60 la = strlen(a); in ns_samedomain()
61 lb = strlen(b); in ns_samedomain()
171 size_t n = strlen(src); in ns_makecanon()
Dns_print.c164 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf()
326 T(addstr(t, strlen(t), &buf, &buflen)); in ns_sprintrrf()
334 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf()
342 T(addstr(t, strlen(t), &buf, &buflen)); in ns_sprintrrf()
425 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf()
493 T(addstr(leader, strlen(leader), &buf, &buflen)); in ns_sprintrrf()
557 T(addstr(leader, strlen(leader), &buf, &buflen)); in ns_sprintrrf()
598 T(addstr(str, strlen(str), &buf, &buflen)); in ns_sprintrrf()
615 T(addstr(leader, strlen(leader), in ns_sprintrrf()
669 addlen(strlen(buf), &buf, &buflen); in ns_sprintrrf()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dpsignal.c67 v->iov_len = strlen(s); in __weak_alias()
74 v->iov_len = strlen(v->iov_base); in __weak_alias()
/bionic/libc/dns/resolv/
Dherror.c105 v->iov_len = strlen(t); in herror()
114 v->iov_len = strlen(v->iov_base); in herror()
/bionic/libc/async_safe/
Dasync_safe_log.cpp89 len = strlen(data); in Send()
120 len = strlen(data); in Send()
403 slen = strlen(str); in out_vformat()
455 vec[0].iov_len = strlen(tag); in write_stderr()
459 vec[2].iov_len = strlen(msg); in write_stderr()
525 vec[4].iov_len = strlen(tag) + 1; in async_safe_write_log()
527 vec[5].iov_len = strlen(msg) + 1; in async_safe_write_log()
555 os.Send(prefix, strlen(prefix)); in async_safe_fatal_va_list()
563 {msg, strlen(msg)}, {const_cast<char*>("\n"), 1}, in async_safe_fatal_va_list()
/bionic/libc/tzcode/
Dasctime.c107 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), in asctime_r()
112 if (strlen(result) < STD_ASCTIME_BUF_SIZE || buf == buf_asctime) in asctime_r()
Dstrptime.c239 len = strlen(_ctloc(day[i])); in _strptime()
244 len = strlen(_ctloc(abday[i])); in _strptime()
263 len = strlen(_ctloc(mon[i])); in _strptime()
268 len = strlen(_ctloc(abmon[i])); in _strptime()
338 len = strlen(_ctloc(am_pm[0])); in _strptime()
349 len = strlen(_ctloc(am_pm[1])); in _strptime()
620 len = strlen(*n1); in _find_string()
/bionic/libc/dns/net/
Dgetnameinfo.c228 if (strlen(sp->s_name) + 1 > (size_t)servlen) in getnameinfo_inet()
233 if (strlen(numserv) + 1 > (size_t)servlen) in getnameinfo_inet()
308 numaddrlen = strlen(numaddr); in getnameinfo_inet()
333 if (strlen(hp->h_name) + 1 > (size_t)hostlen) { in getnameinfo_inet()
379 numaddrlen = strlen(numaddr); in ip6_parsenumeric()
434 return(strlen(p)); in ip6_sa2str()
/bionic/libc/include/sys/
Dun.h43 #define SUN_LEN(__ptr) (offsetof(struct sockaddr_un, sun_path) + strlen((__ptr)->sun_path))
/bionic/libc/arch-arm64/
Dstatic_function_dispatch.S42 FUNCTION_DELEGATE(strlen, __strlen_aarch64_mte)

1234567