/third_party/lwip/src/netif/ppp/ |
H A D | multilink.c | 168 l = 4 * strlen(peer_authname) + 10; in mp_join_bundle() 172 l += 3 * strlen(bundle_name) + 2; in mp_join_bundle() 294 key.dsize = strlen(blinks_id); in mp_bundle_terminated() 312 key.dsize = strlen(blinks_id); in make_bundle_links() 324 l = rec.dsize + strlen(entry); in make_bundle_links() 336 rec.dsize = strlen(p) + 1; in make_bundle_links() 352 key.dsize = strlen(blinks_id); in remove_bundle_link() 364 q = p + strlen(entry); in remove_bundle_link() 365 l = strlen(q) + 1; in remove_bundle_link() 380 key.dsize = strlen(blinks_i in iterate_bundle_links() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
H A D | test_get_sendfile.c | 107 response = MHD_create_response_from_fd (strlen (TESTSTR), fd); in ahc_echo() 158 if (cbc.pos != strlen (TESTSTR)) in testInternalGet() 160 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testInternalGet() 207 if (cbc.pos != strlen (TESTSTR)) in testMultithreadedGet() 209 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testMultithreadedGet() 257 if (cbc.pos != strlen (TESTSTR)) in testMultithreadedPoolGet() 259 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testMultithreadedPoolGet() 379 if (cbc.pos != strlen (TESTSTR)) in testExternalGet() 381 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR))) in testExternalGet() 452 if (cbc.pos != strlen (TESTST in testUnknownPortGet() [all...] |
/third_party/python/Modules/clinic/ |
H A D | _codecsmodule.c.h | 56 if (strlen(encoding) != (size_t)encoding_length) { in _codecs_lookup() 115 if (strlen(encoding) != (size_t)encoding_length) { in _codecs_encode() 132 if (strlen(errors) != (size_t)errors_length) { in _codecs_encode() 192 if (strlen(encoding) != (size_t)encoding_length) { in _codecs_decode() 209 if (strlen(errors) != (size_t)errors_length) { in _codecs_decode() 271 if (strlen(errors) != (size_t)errors_length) { in _codecs_escape_decode() 331 if (strlen(errors) != (size_t)errors_length) { in _codecs_escape_encode() 389 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_7_decode() 459 if (strlen(errors) != (size_t)errors_length) { in _codecs_utf_8_decode() 529 if (strlen(error in _codecs_utf_16_decode() [all...] |
/third_party/selinux/checkpolicy/ |
H A D | checkpolicy.c | 774 ans[strlen(ans) - 1] = 0; in main() 849 scontext_len = strlen(ans); in main() 888 ans[strlen(ans) - 1] = 0; in main() 931 pathlen = strlen(ans); in main() 970 ans[strlen(ans) - 1] = 0; in main() 981 ans[strlen(ans) - 1] = 0; in main() 1003 ans[strlen(ans) - 1] = 0; in main() 1019 ans[strlen(ans) - 1] = 0; in main() 1031 ans[strlen(ans) - 1] = 0; in main() 1053 ans[strlen(an in main() [all...] |
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_session_message_test.cpp | 106 DEVICE_KEY, strlen(DEVICE_KEY)) == EOK); in HWTEST_F() 139 ASSERT_TRUE(memcpy_s(info.connInfo.info.ipInfo.udid, UDID_BUF_LEN, UDID, strlen(UDID)) == EOK); in HWTEST_F() 144 ASSERT_TRUE(memcpy_s(info.udid, UDID_BUF_LEN, UDID, strlen(UDID)) == EOK); in HWTEST_F() 147 ASSERT_TRUE(memcpy_s(info.udid, UDID_BUF_LEN, INVALID_UDID, strlen(INVALID_UDID)) == EOK); in HWTEST_F() 150 ASSERT_TRUE(memcpy_s(info.udid, UDID_BUF_LEN, UDID, strlen(UDID)) == EOK); in HWTEST_F() 165 ASSERT_TRUE(memcpy_s(info.udid, UDID_BUF_LEN, UDID, strlen(UDID)) == EOK); in HWTEST_F() 197 DEVICE_KEY, strlen(DEVICE_KEY)) == EOK); in HWTEST_F() 205 ASSERT_TRUE(memcpy_s(info.udid, UDID_BUF_LEN, UDID, strlen(UDID)) == EOK); in HWTEST_F() 339 EXPECT_TRUE(UnpackDeviceIdJson(msg, strlen(msg), &info) == SOFTBUS_NOT_FIND); in HWTEST_F() 355 EXPECT_TRUE(UnpackDeviceIdJson(msg1, strlen(msg in HWTEST_F() [all...] |
/test/xts/acts/security/asset/asset_ndk/entry/src/main/cpp/ |
H A D | hello.cpp | 43 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffer)), reinterpret_cast<uint8_t *>(secretBuffer)}; in Asset_Add() 44 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_Add() 77 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffer)), reinterpret_cast<uint8_t *>(secretBuffer)}; in Asset_AddCE() 78 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_AddCE() 129 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffer)), reinterpret_cast<uint8_t *>(secretBuffer)}; in Asset_Add_Auth() 130 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_Add_Auth() 131 Asset_Blob label = {static_cast<uint32_t>(strlen(DEMO_LABEL)), in Asset_Add_Auth() 197 Asset_Blob alias2 = {static_cast<uint32_t>(strlen(aliasBuffer2)), reinterpret_cast<uint8_t *>(aliasBuffer2)}; in Asset_PreAndPostQueryNormal() 198 Asset_Blob alias = {static_cast<uint32_t>(strlen(aliasBuffer)), reinterpret_cast<uint8_t *>(aliasBuffer)}; in Asset_PreAndPostQueryNormal() 238 Asset_Blob secret = {static_cast<uint32_t>(strlen(secretBuffe in Asset_PreAndPostQueryError() [all...] |
/foundation/multimedia/ringtone_library/services/utils/src/ |
H A D | ringtone_utils.cpp | 59 if (strlen(paramValue) > 0) { in GetDefaultSystemtoneInfo() 65 if (strlen(paramValue) > 0) { in GetDefaultSystemtoneInfo() 72 if (strlen(paramValue) > 0) { in GetDefaultSystemtoneInfo() 79 if (strlen(paramValue) > 0) { in GetDefaultSystemtoneInfo() 86 if (strlen(paramValue) > 0) { in GetDefaultSystemtoneInfo() 93 if (strlen(paramValue) > 0) { in GetDefaultSystemtoneInfo()
|
/foundation/communication/netmanager_base/test/netsysbpfstats/unittest/bpf_core_test/ |
H A D | BpfResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/ |
H A D | lnn_meta_node_ledger_test.cpp | 83 (void)strncpy_s(info.udid, UUID_BUF_LEN, NODE_UDID, strlen(NODE_UDID)); in HWTEST_F() 84 (void)strncpy_s(info.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F() 142 (void)strncpy_s(info.udid, UUID_BUF_LEN, NODE_UDID, strlen(NODE_UDID)); in HWTEST_F() 143 (void)strncpy_s(info.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F() 168 (void)strncpy_s(info.udid, UUID_BUF_LEN, NODE_UDID, strlen(NODE_UDID)); in HWTEST_F() 169 (void)strncpy_s(info.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F()
|
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_core_test/ |
H A D | VpnResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/netstack/test/fuzztest/websocketcapi_fuzzer/ |
H A D | websocket_capi_fuzzer.cpp | 61 std::string GetStringFromData(int strlen) in GetStringFromData() argument 63 if (strlen < 1) { in GetStringFromData() 67 char cstr[strlen]; in GetStringFromData() 68 cstr[strlen - 1] = '\0'; in GetStringFromData() 69 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData() 123 int32_t sendLength = std::strlen(senddata); in SetSendDataTest()
|
/foundation/communication/netstack/test/unittest/http_test/ |
H A D | HttpClientResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/netstack/test/unittest/tcp_core_test/ |
H A D | TcpSocketResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/netmanager_ext/test/networksharemanager/unittest/netshare_core_test/ |
H A D | NetShareResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/netstack/test/unittest/http_client/ |
H A D | HttpClientResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/netstack/test/unittest/http_client_test/ |
H A D | HttpClientResponseTest.cpp | 115 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 116 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 117 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 140 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 141 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 142 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/foundation/communication/netstack/test/unittest/websocket_core_test/ |
H A D | WebSocketResponseTest.cpp | 116 req.AppendHeader(emptyHead, strlen(emptyHead)); in HWTEST_F() 117 req.AppendHeader(errHead, strlen(errHead)); in HWTEST_F() 118 req.AppendHeader(realHead, strlen(realHead)); in HWTEST_F() 141 req.AppendCookies(emptyHead, strlen(emptyHead)); in HWTEST_F() 142 req.AppendCookies(errHead, strlen(errHead)); in HWTEST_F() 143 req.AppendCookies(realHead, strlen(realHead)); in HWTEST_F()
|
/kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
H A D | parse.c | 32 if (strncasecmp("high", str, strlen(str)) == 0) in string_to_prio() 34 else if (strncasecmp("default", str, strlen(str)) == 0) in string_to_prio() 36 else if (strncasecmp("low", str, strlen(str)) == 0) in string_to_prio() 69 len = strlen(dirname) + 30; in prepare_output() 77 len += strlen(sysdata.nodename) + strlen(sysdata.release); in prepare_output()
|
/kernel/linux/linux-6.6/tools/power/cpupower/bench/ |
H A D | parse.c | 32 if (strncasecmp("high", str, strlen(str)) == 0) in string_to_prio() 34 else if (strncasecmp("default", str, strlen(str)) == 0) in string_to_prio() 36 else if (strncasecmp("low", str, strlen(str)) == 0) in string_to_prio() 69 len = strlen(dirname) + 30; in prepare_output() 77 len += strlen(sysdata.nodename) + strlen(sysdata.release); in prepare_output()
|
/kernel/liteos_a/fs/rootfs/ |
H A D | los_bootargs.c | 129 len = strlen(g_cmdLine + i);
in GetBootargs() 132 *args = tmp + strlen(bootargsName);
in GetBootargs() 201 value += strlen("0x");
in LOS_SizeStrToNum() 202 if (strspn(value, "0123456789abcdefABCDEF") < strlen(value)) {
in LOS_SizeStrToNum() 212 if ((ret <= 0) || (decOffset < (strlen(value) - 1))) {
in LOS_SizeStrToNum() 216 if (strlen(endPos) == 0) {
in LOS_SizeStrToNum()
|
/kernel/liteos_a/fs/vfs/operation/ |
H A D | fullpath.c | 172 if (strlen(name) > NAME_MAX) { in vfs_normalize_path_parame_check() 192 fullpath = (char *)malloc(strlen(directory) + namelen + 2); in vfs_not_absolute_path() 201 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1, in vfs_not_absolute_path() 274 if ((filename[0] != '/') && (strlen(directory) + namelen + 2 > TEMP_PATH_MAX)) { in vfs_normalize_path() 295 if (strlen(fullpath) >= PATH_MAX) { in vfs_normalize_path()
|
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | fullpath.c | 161 if (strlen(name) > NAME_MAX) { in VfsNormalizePathParameCheck() 181 fullpath = (CHAR *)malloc(strlen(directory) + namelen + 2); /* 2, size of "./" */ in VfsNotAbsolutePath() 189 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1, in VfsNotAbsolutePath() 249 if ((filename[0] != '/') && (strlen(directory) + namelen + 2 > TEMP_PATH_MAX)) { in VfsNormalizePath() 260 if (strlen(fullpath) >= PATH_MAX) { in VfsNormalizePath()
|
/third_party/elfutils/tests/ |
H A D | asm-tst2.c | 225 + strlen ("one") + 1 in main() 226 + strlen ("two") + 1 in main() 227 + strlen ("three") + 1))) in main() 233 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1 in main() 234 + strlen ("two") + 1 in main() 235 + strlen ("three") + 1)) in main()
|
/third_party/alsa-lib/src/control/ |
H A D | ctlparse.c | 138 if (strlen(buf) + strlen(buf1) < sizeof(buf)) in snd_ctl_ascii_elem_id_get() 143 if (strlen(buf) + strlen(buf1) < sizeof(buf)) in snd_ctl_ascii_elem_id_get() 148 if (strlen(buf) + strlen(buf1) < sizeof(buf)) in snd_ctl_ascii_elem_id_get() 301 len = strlen(name); in get_ctl_enum_item_index()
|
/third_party/ltp/testcases/kernel/fs/mongo/ |
H A D | mongo_compare.c | 112 line3[strlen(line3) - 1] = 0; in main() 114 while (strlen(line3) < 40) { in main() 160 line2[strlen(line2) - 1] = 0; in main() 161 while (strlen(line2) < 40) { in main() 178 time_str1[strlen(time_str1) - 1] = 0; in main() 179 time_str2[strlen(time_str2) - 1] = 0; in main()
|