Home
last modified time | relevance | path

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

123456789

/bionic/tests/
Dresolv_test.cpp51 ASSERT_EQ(static_cast<int>(strlen("aGVsbG8=")), in TEST()
52 b64_ntop(reinterpret_cast<u_char const*>("hello"), strlen("hello"), in TEST()
60 ASSERT_EQ(static_cast<int>(strlen("hello")), b64_pton("aGVsbG8=", buf, sizeof(buf))); in TEST()
Dgetcwd_test.cpp33 ASSERT_GE(strlen(cwd), 1U); in TEST()
43 ASSERT_GE(strlen(cwd), 1U); in TEST()
88 ASSERT_GE(strlen(cwd), 1U); in TEST()
Diconv_test.cpp63 size_t in_bytes = strlen(in); in TEST()
89 size_t in_bytes = strlen(in); in TEST()
118 size_t in_bytes = strlen(in); in TEST()
146 size_t in_bytes = strlen(in); in TEST()
172 size_t in_bytes = strlen(in); in TEST()
205 size_t in_bytes = strlen(in); in TEST()
232 size_t in_bytes = strlen(in); in TEST()
301 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()
197 io[i].iov_len = strlen(g_SendMsgs[i]) + 1; in SendMMsg()
225 ASSERT_EQ(strlen(g_SendMsgs[i]) + 1, in TestSendMMsg()
Dsys_un_test.cpp26 ASSERT_EQ(2U + strlen("hello"), SUN_LEN(&sun)); in TEST()
/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/bionic/
Dsystem_property_set.cpp76 const size_t namelen = strlen(socket); in PropertyServiceConnection()
144 uint32_t valuelen = strlen(value); in WriteString()
286 if (strlen(key) >= PROP_NAME_MAX) return -1; in __system_property_set()
287 if (strlen(value) >= PROP_VALUE_MAX) return -1; in __system_property_set()
298 if (strlen(value) >= PROP_VALUE_MAX && strncmp(key, "ro.", 3) != 0) return -1; in __system_property_set()
Dexec.cpp139 size_t len = strlen(path) + 1; in execvpe()
153 size_t dir_len = strlen(dir); in execvpe()
154 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()
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()
/bionic/libc/async_safe/
Dasync_safe_log.cpp87 len = strlen(data); in Send()
118 len = strlen(data); in Send()
434 slen = strlen(str); in out_vformat()
486 vec[0].iov_len = strlen(tag); in write_stderr()
490 vec[2].iov_len = strlen(msg); in write_stderr()
556 vec[4].iov_len = strlen(tag) + 1; in async_safe_write_log()
558 vec[5].iov_len = strlen(msg) + 1; in async_safe_write_log()
586 os.Send(prefix, strlen(prefix)); in async_safe_fatal_va_list()
594 {msg, strlen(msg)}, {const_cast<char*>("\n"), 1}, in async_safe_fatal_va_list()
/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/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/tzcode/
Dasctime.c99 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), in asctime_r()
104 if (strlen(result) < STD_ASCTIME_BUF_SIZE in asctime_r()
Dstrptime.c222 len = strlen(_ctloc(day[i])); in _strptime()
227 len = strlen(_ctloc(abday[i])); in _strptime()
247 len = strlen(_ctloc(mon[i])); in _strptime()
252 len = strlen(_ctloc(abmon[i])); in _strptime()
329 len = strlen(_ctloc(am_pm[0])); in _strptime()
340 len = strlen(_ctloc(am_pm[1])); in _strptime()
659 len = strlen(*n1); in _find_string()
/bionic/libc/include/sys/
Dun.h43 #define SUN_LEN(__ptr) (offsetof(struct sockaddr_un, sun_path) + strlen((__ptr)->sun_path))
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrxfrm.c49 return (strlen(src)); in strxfrm()
Dstrdup.c44 siz = strlen(str) + 1; in strdup()
Dstrcasestr.c50 len = strlen(find); in strcasestr()
/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()

123456789