Home
last modified time | relevance | path

Searched refs:strlen (Results 376 - 400 of 8223) sorted by relevance

1...<<11121314151617181920>>...329

/kernel/linux/linux-5.10/lib/
H A Dstring.c143 size_t ret = strlen(src); in strlcpy()
357 size_t dsize = strlen(dest); in strlcat()
358 size_t len = strlen(src); in strlcat()
546 size = strlen(s); in strim()
561 * strlen - Find the length of a string
564 size_t strlen(const char *s) in strlen() function
572 EXPORT_SYMBOL(strlen); variable
1004 l2 = strlen(s2); in strstr()
1007 l1 = strlen(s1); in strstr()
1030 l2 = strlen(s in strnstr()
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dprofile.c64 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
68 if (str[strlen(sleepstr)] == ',') in profile_setup()
69 str += strlen(sleepstr) + 1; in profile_setup()
77 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
79 if (str[strlen(schedstr)] == ',') in profile_setup()
80 str += strlen(schedstr) + 1; in profile_setup()
85 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
87 if (str[strlen(kvmstr)] == ',') in profile_setup()
88 str += strlen(kvmstr) + 1; in profile_setup()
H A Dcrash_core.c175 if (strncmp(cur, suffix, strlen(suffix))) { in parse_crashkernel_suffix()
179 cur += strlen(suffix); in parse_crashkernel_suffix()
201 end_p = p + strlen(p); in get_last_crashkernel()
208 q = end_p - strlen(suffix_tbl[i]); in get_last_crashkernel()
210 strlen(suffix_tbl[i]))) in get_last_crashkernel()
215 q = end_p - strlen(suffix); in get_last_crashkernel()
216 if (!strncmp(q, suffix, strlen(suffix))) in get_last_crashkernel()
248 ck_cmdline += strlen(name); in __parse_crashkernel()
302 note->n_namesz = strlen(name) + 1; in append_elf_note()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dcgroup_util.c57 size_t len = strlen(root) + strlen(name) + 2; in cg_name()
67 size_t len = strlen(root) + strlen(name) + 10; in cg_name_indexed()
77 size_t len = strlen(cgroup) + strlen(control) + 2; in cg_control()
108 size = strlen(expected) + 1; in cg_read_strcmp()
156 return atol(ptr + strlen(key)); in cg_read_key_long()
179 ssize_t len = strlen(buf), ret; in cg_write()
/third_party/icu/icu4c/source/test/cintltst/
H A Dcdtdptst.c64 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("EEE MMM dd HH:mm:ss.SSS zzz yyyy G")+1 )); in TestTwoDigitYearDSTParse()
78 s=(UChar*)malloc(sizeof(UChar) * (strlen("03-Apr-04 2:20:47 o'clock AM PST")+1) ); in TestTwoDigitYearDSTParse()
135 s=(UChar*)malloc(sizeof(UChar) * (strlen("01/01/1997 10:11:42 AM")+1) ); in TestPartialParse994()
169 str=(UChar*)malloc(sizeof(UChar) * (strlen(s) + 1) ); in tryPat994()
171 pat=(UChar*)malloc(sizeof(UChar) * (strlen(pattern) + 1) ); in tryPat994()
207 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("yyyyMMddHHmmssSSS")+1) ); in TestRunTogetherPattern985()
322 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("MM/dd/yyyy 'at' hh:mm:ss a zzz")+1) ); in TestQuotePattern161()
344 exp=(UChar*)malloc(sizeof(UChar) * (strlen(expStr) + 1) ); in TestQuotePattern161()
348 if(u_strncmp(dateString, exp, (int32_t)strlen(expStr)) !=0) { in TestQuotePattern161()
/third_party/ltp/utils/sctp/func_tests/
H A Dtest_basic.c190 outmessage.msg_iov->iov_len = strlen(message) + 1; in main()
191 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
256 test_check_msg_data(&inmessage, error, strlen(message) + 1, in main()
305 outmessage.msg_iov->iov_len = strlen(telephone) + 1; in main()
327 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
332 outmessage.msg_iov->iov_len = strlen(telephone_resp) + 1; in main()
333 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
340 test_check_msg_data(&inmessage, error, strlen(telephone) + 1, in main()
345 test_check_msg_data(&inmessage, error, strlen(telephone_resp) + 1, in main()
/third_party/lz4/programs/
H A Dlz4cli.c41 #include <string.h> /* strcmp, strlen */
255 return !strncmp(exeName, test, strlen(test)) && in exeNameMatch()
256 (exeName[strlen(test)] == '\0' || exeName[strlen(test)] == '.'); in exeNameMatch()
289 size_t const comSize = strlen(longCommand); in longCommandWArg()
303 size_t const inSize = strlen(inputFilename); in determineOpMode()
304 size_t const extSize = strlen(LZ4_EXTENSION); in determineOpMode()
479 argument += strlen(argument) - 1; in main()
693 size_t const l = strlen(input_filename); in main()
704 size_t const inl = strlen(input_filenam in main()
[all...]
/third_party/skia/third_party/externals/microhttpd/src/testcurl/
H A Dperf_get.c232 if (cbc.pos != strlen ("/hello_world")) in testInternalGet()
234 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testInternalGet()
292 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedGet()
294 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedGet()
352 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPoolGet()
354 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPoolGet()
491 if (cbc.pos != strlen ("/hello_world")) in testExternalGet()
493 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testExternalGet()
509 response = MHD_create_response_from_buffer (strlen ("/hello_world"), in main()
H A Dtest_large_put.c132 response = MHD_create_response_from_buffer (strlen (url), in ahc_echo()
192 if (cbc.pos != strlen ("/hello_world")) in testInternalPut()
194 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testInternalPut()
250 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPut()
255 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPut()
312 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPoolPut()
317 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPoolPut()
446 if (cbc.pos != strlen ("/hello_world")) in testExternalPut()
451 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testExternalPut()
H A Dtest_process_headers.c125 response = MHD_create_response_from_buffer (strlen (url), in ahc_echo()
190 if (cbc.pos != strlen ("/hello_world")) in testInternalGet()
192 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testInternalGet()
239 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedGet()
241 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedGet()
289 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPoolGet()
291 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPoolGet()
411 if (cbc.pos != strlen ("/hello_world")) in testExternalGet()
413 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testExternalGet()
H A Dtest_put.c112 response = MHD_create_response_from_buffer (strlen (url), (void*) url, in ahc_echo()
169 if (cbc.pos != strlen ("/hello_world")) in testInternalPut()
171 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testInternalPut()
225 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPut()
227 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPut()
283 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPoolPut()
285 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPoolPut()
414 if (cbc.pos != strlen ("/hello_world")) in testExternalPut()
416 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testExternalPut()
H A Dtest_put_chunked.c121 response = MHD_create_response_from_buffer (strlen (url), in ahc_echo()
179 if (cbc.pos != strlen ("/hello_world")) in testInternalPut()
181 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testInternalPut()
235 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPut()
237 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPut()
293 if (cbc.pos != strlen ("/hello_world")) in testMultithreadedPoolPut()
295 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testMultithreadedPoolPut()
424 if (cbc.pos != strlen ("/hello_world")) in testExternalPut()
426 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) in testExternalPut()
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-tag.cc198 if (!ISALNUM (s[strlen (subtag)])) in subtag_matches()
200 lang_str = s + strlen (subtag); in subtag_matches()
207 unsigned int len = strlen (spec); in lang_matches()
225 da = p ? (unsigned int) (p - a) : strlen (a); in cmp()
228 db = p ? (unsigned int) (p - b) : strlen (b); in cmp()
279 if (3 == (extlang_end ? extlang_end - s - 1 : strlen (s + 1)) && in hb_ot_tags_from_language()
302 s = lang_str + strlen (lang_str); in hb_ot_tags_from_language()
331 s += strlen (prefix); in parse_private_use_subtag()
524 size_t len = strlen (lang_str); in hb_ot_tags_to_script_and_language()
/kernel/linux/linux-5.10/scripts/kconfig/lxdialog/
H A Dutil.c260 len += strlen(pos->text) + 3; in dialog_clear()
267 skip = len - (columns - 2 - strlen(ellipsis)); in dialog_clear()
281 if (skip < strlen(pos->text)) { in dialog_clear()
285 skip -= strlen(pos->text); in dialog_clear()
355 int tlen = MIN(width - 2, strlen(title)); in print_title()
377 prompt_len = strlen(tempstr); in print_autowrap()
399 wlen = strlen(word); in print_autowrap()
402 && wlen + 1 + strlen(sp) > room in print_autowrap()
523 for (i = 0; i < strlen(string); i++) { in first_alpha()
615 avail = sizeof(item_cur->node.str) - strlen(item_cu in item_add_str()
[all...]
/kernel/linux/linux-6.6/scripts/kconfig/lxdialog/
H A Dutil.c260 len += strlen(pos->text) + 3; in dialog_clear()
267 skip = len - (columns - 2 - strlen(ellipsis)); in dialog_clear()
281 if (skip < strlen(pos->text)) { in dialog_clear()
285 skip -= strlen(pos->text); in dialog_clear()
355 int tlen = MIN(width - 2, strlen(title)); in print_title()
377 prompt_len = strlen(tempstr); in print_autowrap()
399 wlen = strlen(word); in print_autowrap()
402 && wlen + 1 + strlen(sp) > room in print_autowrap()
523 for (i = 0; i < strlen(string); i++) { in first_alpha()
615 avail = sizeof(item_cur->node.str) - strlen(item_cu in item_add_str()
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dreboot.c1119 if (!strncmp(buf, REBOOT_COLD_STR, strlen(REBOOT_COLD_STR))) in mode_store()
1121 else if (!strncmp(buf, REBOOT_WARM_STR, strlen(REBOOT_WARM_STR))) in mode_store()
1123 else if (!strncmp(buf, REBOOT_HARD_STR, strlen(REBOOT_HARD_STR))) in mode_store()
1125 else if (!strncmp(buf, REBOOT_SOFT_STR, strlen(REBOOT_SOFT_STR))) in mode_store()
1127 else if (!strncmp(buf, REBOOT_GPIO_STR, strlen(REBOOT_GPIO_STR))) in mode_store()
1196 if (!strncmp(buf, BOOT_TRIPLE_STR, strlen(BOOT_TRIPLE_STR))) in type_store()
1198 else if (!strncmp(buf, BOOT_KBD_STR, strlen(BOOT_KBD_STR))) in type_store()
1200 else if (!strncmp(buf, BOOT_BIOS_STR, strlen(BOOT_BIOS_STR))) in type_store()
1202 else if (!strncmp(buf, BOOT_ACPI_STR, strlen(BOOT_ACPI_STR))) in type_store()
1204 else if (!strncmp(buf, BOOT_EFI_STR, strlen(BOOT_EFI_ST in type_store()
[all...]
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/
H A DSendRequestTest.cpp183 requestLen = strlen((char *)request->data) + 1; in FEATURE_OnMessage()
388 request.len = strlen(body) + 1; in HWTEST_F()
428 request.len = (uint32_t)(strlen(body) + 1); in HWTEST_F()
467 request.len = (uint32_t)(strlen(body) + 1); in HWTEST_F()
500 request.len = (uint32_t)(strlen(body) + 1); in HWTEST_F()
540 request.len = strlen(body) + 1; in HWTEST_F()
579 request.data = malloc(strlen(body) + 1); in HWTEST_F()
583 errno_t error = strcpy_s((char *)request.data, strlen(body) + 1, body); in HWTEST_F()
598 request2.len = (uint32_t)(strlen(body) + 1); in HWTEST_F()
629 request.len = strlen(bod in HWTEST_F()
[all...]
/test/xts/acts/communication_lite/wifiservice_hal/src/
H A Dwifiservice_func_test.c367 int ret = strncpy_s(config.ssid, WIFI_MAX_SSID_LEN, ssid, strlen(ssid));
403 int ret = strncpy_s(config.ssid, WIFI_MAX_SSID_LEN, ssid0, strlen(ssid0));
405 ret = strncpy_s(config.preSharedKey, WIFI_MAX_KEY_LEN, info, strlen(info));
417 ret = strncpy_s(config.preSharedKey, WIFI_MAX_KEY_LEN, info, strlen(info));
427 ret = strncpy_s(config.ssid, WIFI_MAX_SSID_LEN, ssid10, strlen(ssid10));
429 ret = strncpy_s(config.preSharedKey, WIFI_MAX_KEY_LEN, info, strlen(info));
460 int ret = strncpy_s(config.ssid, WIFI_MAX_SSID_LEN, ssid, strlen(ssid));
462 ret = strncpy_s(config.preSharedKey, WIFI_MAX_KEY_LEN, info, strlen(info));
503 int ret = strncpy_s(config.ssid, WIFI_MAX_SSID_LEN, ssid, strlen(ssid));
505 ret = strncpy_s(config.preSharedKey, WIFI_MAX_KEY_LEN, info, strlen(inf
[all...]
/third_party/backends/backend/
H A Dplustek-usbcalfile.c120 if( 0 == strncmp( tmp, id, strlen(id))) { in usb_ReadSpecLine()
122 ptr = &tmp[strlen(id)]; in usb_ReadSpecLine()
127 res[strlen(res)-1] = '\0'; in usb_ReadSpecLine()
179 if(0 != strncmp(tmp, except, strlen(except))) { in usb_ReadOtherLines()
181 if( strlen( tmp ) > 0 ) { in usb_ReadOtherLines()
183 ptr += strlen(tmp); in usb_ReadOtherLines()
231 if(0 == strncmp(tmp, which, strlen(which))) { in usb_ReadSamples()
234 diml = strtol(&tmp[strlen(which)], NULL, 10); in usb_ReadSamples()
235 p = strchr( &tmp[strlen(which)], ':' ); in usb_ReadSamples()
278 rb = &tmp[strlen(tm in usb_ReadSamples()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/
H A Dinit.c53 len = strlen(" WireGuard Test Suite on ") + strlen(utsname.sysname) + strlen(utsname.release) + strlen(utsname.machine); in print_banner()
197 if (!success_dev || !strlen(success_dev)) in launch_tests()
/kernel/linux/linux-5.10/security/integrity/evm/
H A Devm_secfs.c49 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in evm_read_key()
143 size += strlen(xattr->name) + 1; in evm_read_xattrs()
153 offset += strlen(xattr->name) + 1; in evm_read_xattrs()
157 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in evm_read_xattrs()
210 len = strlen(xattr->name); in evm_write_xattrs()
/kernel/linux/linux-5.10/scripts/dtc/
H A Dyamltree.c83 strlen(buf), 0, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int()
87 strlen(buf), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int()
121 strlen(prop->name), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval()
129 strlen("true"), 1, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_propval()
196 strlen(child->name), 1, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_tree()
/kernel/linux/linux-6.6/scripts/dtc/
H A Dyamltree.c84 strlen(buf), 0, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int()
88 strlen(buf), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval_int()
123 strlen(prop->name), 1, 1, YAML_PLAIN_SCALAR_STYLE); in yaml_propval()
131 strlen("true"), 1, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_propval()
198 strlen(child->name), 1, 0, YAML_PLAIN_SCALAR_STYLE); in yaml_tree()
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/qemu/
H A Dinit.c55 len = strlen(" WireGuard Test Suite on ") + strlen(utsname.sysname) + strlen(utsname.release) + strlen(utsname.machine); in print_banner()
192 if (!success_dev || !strlen(success_dev)) in launch_tests()
/kernel/linux/linux-6.6/security/integrity/evm/
H A Devm_secfs.c49 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in evm_read_key()
146 size += strlen(xattr->name) + 1; in evm_read_xattrs()
160 offset += strlen(xattr->name) + 1; in evm_read_xattrs()
164 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in evm_read_xattrs()
218 len = strlen(xattr->name); in evm_write_xattrs()

Completed in 25 milliseconds

1...<<11121314151617181920>>...329