Home
last modified time | relevance | path

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

123456789

/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()
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()
Dsys_socket_test.cpp130 if (send(fd, g_RecvMsgs[i], strlen(g_RecvMsgs[i]) + 1, 0) < 0) { in SendMultiple()
151 io[i].iov_len = strlen(g_RecvMsgs[i]) + 1; in TestRecvMMsg()
194 io[i].iov_len = strlen(g_SendMsgs[i]) + 1; in SendMMsg()
222 ASSERT_EQ(strlen(g_SendMsgs[i]) + 1, in TestSendMMsg()
Dfortify_test.cpp230 size_t n = strlen(myfoo.a); in TEST_F()
242 size_t n = strlen(myfoo.a); in TEST_F()
289 size_t n = strlen(myfoo.a) + 2; in TEST_F()
354 ASSERT_FORTIFY(printf("%zd", strlen(buf))); in TEST_F()
385 size_t n = strlen(bufa); in TEST_F()
398 size_t n = strlen(bufa); in TEST_F()
515 size_t n = strlen(bufa); in TEST_F()
530 size_t n = strlen(bufa); in TEST_F()
546 size_t n = strlen(bufa) + 1; in TEST_F()
678 char* res = __strncat_chk(buf, "01234", sizeof(buf) - strlen(buf) - 1, sizeof(buf)); in TEST()
[all …]
/bionic/libc/async_safe/
Dasync_safe_log.cpp78 len = strlen(data); in Send()
109 len = strlen(data); in Send()
392 slen = strlen(str); in out_vformat()
444 vec[0].iov_len = strlen(tag); in write_stderr()
448 vec[2].iov_len = strlen(msg); in write_stderr()
514 vec[4].iov_len = strlen(tag) + 1; in async_safe_write_log()
516 vec[5].iov_len = strlen(msg) + 1; in async_safe_write_log()
544 os.Send(prefix, strlen(prefix)); in async_safe_fatal_va_list()
552 {msg, strlen(msg)}, {const_cast<char*>("\n"), 1}, in async_safe_fatal_va_list()
/bionic/libc/bionic/
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()
D__bionic_get_shell_path.cpp47 char exe_path[strlen(VENDOR_PREFIX)]; in init_sh_path()
49 if (len != -1 && !strncmp(exe_path, VENDOR_PREFIX, strlen(VENDOR_PREFIX))) { in init_sh_path()
Dicu.cpp56 char versioned_symbol_name[strlen(symbol_name) + strlen("_android") + 1]; in __find_icu_symbol()
Dexec.cpp137 size_t len = strlen(path) + 1; in execvpe()
151 size_t dir_len = strlen(dir); in execvpe()
152 size_t name_len = strlen(name); in execvpe()
Dmntent.cpp79 char* const end = mnt->mnt_opts + strlen(mnt->mnt_opts); in hasmntopt()
80 const size_t optLen = strlen(opt); in hasmntopt()
Dlibgen.cpp53 endp = path + strlen(path) - 1; in __basename_r()
109 endp = path + strlen(path) - 1; in __dirname_r()
/bionic/libc/tzcode/
Dstrptime.c225 len = strlen(_ctloc(day[i])); in _strptime()
230 len = strlen(_ctloc(abday[i])); in _strptime()
249 len = strlen(_ctloc(mon[i])); in _strptime()
254 len = strlen(_ctloc(abmon[i])); in _strptime()
324 len = strlen(_ctloc(am_pm[0])); in _strptime()
335 len = strlen(_ctloc(am_pm[1])); in _strptime()
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()
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrlen.c35 strlen(const char *str) in strlen() function
44 DEF_STRONG(strlen);
/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/dns/net/
Dgetnameinfo.c225 if (strlen(sp->s_name) + 1 > (size_t)servlen) in getnameinfo_inet()
230 if (strlen(numserv) + 1 > (size_t)servlen) in getnameinfo_inet()
305 numaddrlen = strlen(numaddr); in getnameinfo_inet()
330 if (strlen(hp->h_name) + 1 > (size_t)hostlen) { in getnameinfo_inet()
376 numaddrlen = strlen(numaddr); in ip6_parsenumeric()
431 return(strlen(p)); in ip6_sa2str()
/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()
Dres_query.c399 n = strlen(name); in res_nquerydomain()
411 n = strlen(name); in res_nquerydomain()
412 d = strlen(domain); in res_nquerydomain()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dtempnam.c56 f[strlen(f) - 1] == '/' ? "" : "/", pfx); in tempnam()
68 f[strlen(f) - 1] == '/' ? "" : "/", pfx); in tempnam()
/bionic/linker/
Dlinker_utils.cpp82 const size_t len = strlen(path) + 1; in normalize_path()
122 size_t needle_len = strlen(needle); in file_is_in_dir()
132 size_t needle_len = strlen(needle); in file_is_under_dir()
/bionic/libc/system_properties/
Dcontexts_split.cpp57 : prefix(strdup(prefix)), prefix_len(strlen(prefix)), context(context), next(next) { in PrefixNode()
74 size_t prefix_len = strlen(prefix); in ListAddAfterLen()
156 len = strlen(line_buf); in read_spec_entries()

123456789