Home
last modified time | relevance | path

Searched refs:strlen (Results 151 - 175 of 8223) sorted by relevance

12345678910>>...329

/third_party/alsa-utils/topology/
H A Dpre-process-dapm.c181 class_name = calloc(1, strlen(string) - strlen(args) + 1); in tplg_pp_get_widget_name()
185 snprintf(class_name, strlen(string) - strlen(args) + 1, "%s", string); in tplg_pp_get_widget_name()
239 arg = calloc(1, strlen(args + 1) - strlen(remaining) + 1); in tplg_pp_get_widget_name()
244 snprintf(arg, strlen(args + 1) - strlen(remaining) + 1, "%s", args + 1); in tplg_pp_get_widget_name()
246 arg = calloc(1, strlen(args + 1) + 1); in tplg_pp_get_widget_name()
252 snprintf(arg, strlen(arg in tplg_pp_get_widget_name()
[all...]
/third_party/bounds_checking_function/include/
H A Dsecurectype.h490 (SECUREC_TWO_MIN((size_t)(count), strlen(src)) + 1) <= (size_t)(destMax)) ? \
491 (((size_t)(count) < strlen(src)) ? (memcpy((dest), (src), (count)), *((char *)(dest) + (count)) = '\0', EOK) : \
492 (memcpy((dest), (src), strlen(src) + 1), EOK)) : (strncpy_error((dest), (destMax), (src), (count))))
497 (strlen(src) + 1) <= (size_t)(destMax)) ? (memcpy((dest), (src), strlen(src) + 1), EOK) : \
514 } else if ((strlen(src) + 1) <= catRestSize_) { \
515 memcpy(catTmpDst_, (src), strlen(src) + 1); \
547 } else if ((SECUREC_TWO_MIN((count), strlen(src)) + 1) <= ncatRestSize_) { \
548 if ((size_t)(count) < strlen(src)) { \
552 memcpy(ncatTmpDest_, (src), strlen(sr
[all...]
/third_party/cups-filters/backend/
H A Dieee1284.c137 uri + strlen(uri) - 1); in backendGetDeviceID()
358 if (!_cups_strncasecmp(mdl, mfg, strlen(mfg))) in backendGetDeviceID()
360 mdl += strlen(mfg); in backendGetDeviceID()
433 if (!mfg || !_cups_strncasecmp(mdl, mfg, strlen(mfg))) in backendGetMakeModel()
466 if (strlen(des) >= 8) in backendGetMakeModel()
726 memmove(buffer + 2, buffer + 18, strlen(buffer + 18) + 1); in normalize_make_and_model()
736 memmove(buffer + 2, buffer + 15, strlen(buffer + 15) + 1); in normalize_make_and_model()
744 memmove(buffer + 8, buffer + 21, strlen(buffer + 21) + 1); in normalize_make_and_model()
767 memmove(buffer + 4, buffer + 8, strlen(buffer + 8) + 1); in normalize_make_and_model()
774 for (bufptr = buffer + strlen(buffe in normalize_make_and_model()
[all...]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_cache/
H A Dmain.c212 (const uint8_t *)cookie1, strlen(cookie1), in test_nsc1()
222 (const uint8_t *)cookie2, strlen(cookie2), in test_nsc1()
232 (const uint8_t *)cookie3, strlen(cookie3), in test_nsc1()
246 size != strlen(cookie1) || memcmp(po, cookie1, size)) { in test_nsc1()
253 size != strlen(cookie2) || memcmp(po, cookie2, size)) { in test_nsc1()
259 size != strlen(cookie3) || memcmp(po, cookie3, size)) { in test_nsc1()
272 size != strlen(cookie1) || memcmp(po, cookie1, size)) { in test_nsc1()
279 size != strlen(cookie2) || memcmp(po, cookie2, size)) { in test_nsc1()
285 size != strlen(cookie3) || memcmp(po, cookie3, size)) { in test_nsc1()
413 (const uint8_t *)cookie4, strlen(cookie in test_nsc1()
[all...]
/third_party/ltp/utils/sctp/func_tests/
H A Dtest_sctp_sendrecvmsg.c172 test_sctp_sendmsg(sk1, message, strlen(message) + 1, in main()
224 strlen(message) + 1, MSG_EOR, stream, ppid); in main()
251 test_sctp_sendmsg(sk1, ttlmsg, strlen(ttlmsg) + 1, in main()
258 test_sctp_sendmsg(sk1, nottlmsg, strlen(nottlmsg) + 1, in main()
295 strlen(nottlmsg) + 1, MSG_EOR, stream, ppid); in main()
296 if (0 != strncmp(big_buffer, nottlmsg, strlen(nottlmsg))) in main()
312 strlen(ttlmsg) + 1, in main()
315 if (0 != strncmp(ttlmsg, (char *)ssf->ssf_data, strlen(ttlmsg) + 1)) in main()
351 test_sctp_send(sk1, message, strlen(message) + 1, &snd_sinfo, in main()
361 strlen(messag in main()
[all...]
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativeTextBlobTest.cpp144 byteLength = strlen(str); in HWTEST_F()
146 byteLength = strlen(str) * 2; in HWTEST_F()
148 byteLength = strlen(str) * 4; in HWTEST_F()
150 byteLength = strlen(str) * 16; in HWTEST_F()
177 OH_Drawing_TextBlob *textBlob1 = OH_Drawing_TextBlobCreateFromText(nullptr, strlen(str), font, TEXT_ENCODING_UTF8); in HWTEST_F()
185 OH_Drawing_TextBlob *textBlob3 = OH_Drawing_TextBlobCreateFromText(str, strlen(str), nullptr, TEXT_ENCODING_UTF8); in HWTEST_F()
221 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, TEXT_ENCODING_UTF8); in HWTEST_F()
248 OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, static_cast<OH_Drawing_TextEncoding>(-1)); in HWTEST_F()
272 size_t byteLength = strlen(str); in HWTEST_F()
295 int count = OH_Drawing_FontCountText(font, str, strlen(st in HWTEST_F()
[all...]
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dstring_ext.c110 strncat(dst, src, strlen(src)); in test_strncat_0010()
137 strncat(dst, src, strlen(src)); in test_strncat_0020()
208 size_t n = strlen(src); in test_stpncpy_0010()
228 size_t n = strlen(src); in test_stpncpy_0020()
277 size_t n = strlen(src); in test_strncpy_0020()
308 char *ret = (char*)memchr(str, ch, strlen(str)); in test_memchr_0010()
355 char *ret = (char*)memrchr(str, ch, strlen(str)); in test_memrchr_0010()
498 strlcat(dst, src, strlen(src)); in test_strlcat_0010()
523 strlcat(dst, src, strlen(src)); in test_strlcat_0020()
547 size_t n = strlen(sr in test_strlcpy_0010()
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/deqp_support/
H A Dangle_deqp_gtest.cpp692 if (strncmp(displayTypeString, "angle-", strlen("angle-")) != 0)
774 if (strncmp(argv[argIndex], kdEQPEGLString, strlen(kdEQPEGLString)) == 0)
776 HandleDisplayType(argv[argIndex] + strlen(kdEQPEGLString));
778 else if (strncmp(argv[argIndex], kANGLEEGLString, strlen(kANGLEEGLString)) == 0)
780 HandleDisplayType(argv[argIndex] + strlen(kANGLEEGLString));
782 else if (strncmp(argv[argIndex], kANGLEPreRotation, strlen(kANGLEPreRotation)) == 0)
784 HandlePreRotation(argv[argIndex] + strlen(kANGLEPreRotation));
787 strlen(gdEQPEGLConfigNameString)) == 0)
789 HandleEGLConfigName(argv[argIndex] + strlen(gdEQPEGLConfigNameString));
791 else if (strncmp(argv[argIndex], kdEQPCaseString, strlen(kdEQPCaseStrin
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c194 if (buf_len > MAX_PRIV_CMD_SIZE || strlen(cmd) >= MAX_PRIV_CMD_SIZE) in wpa_driver_nl80211_driver_cmd()
196 wpa_printf(MSG_ERROR, "%s: too long priavte command, strlen(cmd)=%zu buf_len=%zu", __func__, strlen(cmd), buf_len); in wpa_driver_nl80211_driver_cmd()
202 buf_len = strlen(cmd); /* default driver xxx cmd */ in wpa_driver_nl80211_driver_cmd()
205 /* Hisi private data structure cmd should use buf_len, rather than strlen(cmd) */ in wpa_driver_nl80211_driver_cmd()
222 priv_cmd.used_len = buf_len; /* strlen(cmd) */ in wpa_driver_nl80211_driver_cmd()
227 wpa_printf(MSG_EXCESSIVE, "%s: 1:ifr_name=%s, len=%zu, buf_len=%zu", __func__, ifr.ifr_name, strlen(buf), buf_len); in wpa_driver_nl80211_driver_cmd()
265 wpa_printf(MSG_DEBUG, "%s:set country code end. len=%zu, ret_len=%d ret=%d", __func__, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd()
269 hisi_miracast_sink_log("%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd()
272 wpa_printf(MSG_EXCESSIVE, "%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(bu in wpa_driver_nl80211_driver_cmd()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c179 if (buf_len > MAX_PRIV_CMD_SIZE || strlen(cmd) >= MAX_PRIV_CMD_SIZE) { in wpa_driver_nl80211_driver_cmd()
180 wpa_printf(MSG_ERROR, "%s: too long priavte command, strlen(cmd)=%zu buf_len=%zu", __func__, strlen(cmd), buf_len); in wpa_driver_nl80211_driver_cmd()
185 buf_len = strlen(cmd); /* default driver xxx cmd */ in wpa_driver_nl80211_driver_cmd()
188 /* Hisi private data structure cmd should use buf_len, rather than strlen(cmd) */ in wpa_driver_nl80211_driver_cmd()
214 priv_cmd.used_len = buf_len; /* strlen(cmd) */ in wpa_driver_nl80211_driver_cmd()
219 wpa_printf(MSG_EXCESSIVE, "%s: 1:ifr_name=%s, len=%zu, buf_len=%zu", __func__, ifr.ifr_name, strlen(buf), buf_len); in wpa_driver_nl80211_driver_cmd()
252 wpa_printf(MSG_DEBUG, "%s:set country code end. len=%zu, ret_len=%d ret=%d", __func__, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd()
256 hisi_miracast_sink_log("%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(buf), ret_len, ret); in wpa_driver_nl80211_driver_cmd()
259 wpa_printf(MSG_EXCESSIVE, "%s:%.15s len=%zu, ret_len=%d ret=%d", __func__, buf, strlen(bu in wpa_driver_nl80211_driver_cmd()
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-ima.c28 int l = strlen(*buf); in fix_separator_chars()
172 md->ima.dm_version_str_len = strlen(DM_IMA_VERSION_STR); in dm_ima_reset_data()
195 const size_t hash_alg_prefix_len = strlen(DM_IMA_TABLE_HASH_ALG) + 1; in dm_ima_measure_on_table_load()
232 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load()
247 target_metadata_buf_len = strlen(target_metadata_buf); in dm_ima_measure_on_table_load()
258 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load()
343 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load()
373 unsigned int active_len = strlen(active), capacity_len = 0; in dm_ima_measure_on_device_resume()
454 l = strlen(device_table_data); in dm_ima_measure_on_device_resume()
458 capacity_len = strlen(capacity_st in dm_ima_measure_on_device_resume()
[all...]
/test/xts/device_attest/services/core/security/
H A Dattest_security_token.c42 (mbedtls_md_hmac_starts(&ctx, (const uint8_t*)challenge, strlen(challenge)) < 0) || in EncryptHmac()
69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM()
70 int32_t productIdLen = strlen((const char *)productId); in GetIKM()
100 int32_t endingFlagLen = strlen((const char*)endingFlag); in EncryptHmacIterative()
117 int32_t ret = EncryptHmac(challenge, (const uint8_t*)content, strlen(content), hmac, hmacLen); in EncryptHmacIterative()
138 int32_t ret = EncryptHmac(salt, ikm, strlen((const char *)ikm), prk, sizeof(prk)); in GetTokenValueSpecial()
153 ret = EncryptHmacIterative((const char*)prk, udidSha256, strlen((const char*)udidSha256), in GetTokenValueSpecial()
228 int32_t ret = MD5Encode(udidSha256, strlen((const char*)udidSha256), udidMD5, MD5_HEX_LEN + 1); in GetTokenIdSpecial()
259 if (ToLowerStr(udid, strlen(udid)) != ATTEST_OK) { in GetProductSalt()
264 int32_t ret = Sha256ValueToAscii((unsigned char *)udid, strlen(udi in GetProductSalt()
[all...]
/test/xts/device_attest_lite/services/core/security/
H A Dattest_security_token.c42 (mbedtls_md_hmac_starts(&ctx, (const uint8_t*)challenge, strlen(challenge)) < 0) || in EncryptHmac()
69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM()
70 int32_t productIdLen = strlen((const char *)productId); in GetIKM()
100 int32_t endingFlagLen = strlen((const char*)endingFlag); in EncryptHmacIterative()
117 int32_t ret = EncryptHmac(challenge, (const uint8_t*)content, strlen(content), hmac, hmacLen); in EncryptHmacIterative()
138 int32_t ret = EncryptHmac(salt, ikm, strlen((const char *)ikm), prk, sizeof(prk)); in GetTokenValueSpecial()
153 ret = EncryptHmacIterative((const char*)prk, udidSha256, strlen((const char*)udidSha256), in GetTokenValueSpecial()
228 int32_t ret = MD5Encode(udidSha256, strlen((const char*)udidSha256), udidMD5, MD5_HEX_LEN + 1); in GetTokenIdSpecial()
259 if (ToLowerStr(udid, strlen(udid)) != ATTEST_OK) { in GetProductSalt()
264 int32_t ret = Sha256ValueToAscii((unsigned char *)udid, strlen(udi in GetProductSalt()
[all...]
/third_party/python/Modules/clinic/
H A D_codecsmodule.c.h56 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...]
/test/xts/acts/security/asset/asset_ndk/entry/src/main/cpp/
H A Dhello.cpp43 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...]
/third_party/selinux/checkpolicy/
H A Dcheckpolicy.c774 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...]
/third_party/curl/lib/vauth/
H A Dcleartext.c73 zlen = (authzid == NULL ? 0 : strlen(authzid)); in Curl_auth_create_plain_message()
74 clen = strlen(authcid); in Curl_auth_create_plain_message()
75 plen = strlen(passwd); in Curl_auth_create_plain_message()
114 Curl_bufref_set(out, valuep, strlen(valuep), NULL); in Curl_auth_create_login_message()
/third_party/ltp/testcases/kernel/syscalls/sendfile/
H A Dsendfile08.c34 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in run()
43 if (!strncmp(buf, TEST_MSG_ALL, strlen(TEST_MSG_ALL))) { in run()
55 SAFE_WRITE(SAFE_WRITE_ALL, in_fd, TEST_MSG_IN, strlen(TEST_MSG_IN)); in setup()
60 SAFE_WRITE(SAFE_WRITE_ALL, out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); in setup()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dpwrite.c46 size_t cnt = pwrite(fd, txt, strlen(txt), 0); in pwrite_0100()
47 EXPECT_EQ("pwrite_0100", cnt, strlen(txt)); in pwrite_0100()
51 EXPECT_EQ("pwrite_0100", cnt, strlen(txt)); in pwrite_0100()
65 size_t cnt = pwrite(-1, txt, strlen(txt), 0); in pwrite_0200()
H A Dsetdomainname.c39 result = setdomainname(name, strlen(name)); in setdomainname_0100()
56 result = setdomainname(cbuf, strlen(cbuf)); in setdomainname_0100()
90 if (strlen(buf) != 0) { in setdomainname_0200()
95 result = setdomainname(cbuf, strlen(cbuf)); in setdomainname_0200()
H A Dsethostname.c39 result = sethostname(name, strlen(name)); in sethostname_0100()
56 result = sethostname(cbuf, strlen(cbuf)); in sethostname_0100()
90 if (strlen(buf) != 0) { in sethostname_0200()
95 result = sethostname(cbuf, strlen(cbuf)); in sethostname_0200()
/third_party/selinux/libselinux/src/
H A Dget_default_type.c35 len = strlen(role); in find_default_type()
41 if (buf[strlen(buf) - 1]) in find_default_type()
42 buf[strlen(buf) - 1] = 0; in find_default_type()
65 t = strndup(ptr, strlen(buf) - len - 1); in find_default_type()
/kernel/linux/linux-5.10/usr/
H A Dgen_init_cpio.c35 unsigned int name_len = strlen(name) + 1; in push_string()
52 unsigned int name_len = strlen(name) + 1; in push_rest()
92 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer()
119 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink()
124 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink()
173 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric()
267 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mknod()
342 namesize = strlen(name) + 1; in cpio_mkfile()
422 dname = malloc(strlen(line)); in cpio_mkfile_line()
428 dname_len = strlen(nam in cpio_mkfile_line()
[all...]
/kernel/linux/linux-6.6/usr/
H A Dgen_init_cpio.c39 unsigned int name_len = strlen(name) + 1; in push_string()
56 unsigned int name_len = strlen(name) + 1; in push_rest()
96 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer()
123 (unsigned)strlen(target)+1, /* filesize */ in cpio_mkslink()
128 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink()
177 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric()
271 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mknod()
381 namesize = strlen(name) + 1; in cpio_mkfile()
472 dname = malloc(strlen(line)); in cpio_mkfile_line()
478 dname_len = strlen(nam in cpio_mkfile_line()
[all...]
/third_party/ffmpeg/libavutil/
H A Davstring.c74 size_t needle_len = strlen(needle); in av_strnstr()
93 return len + strlen(src) - 1; in av_strlcpy()
98 size_t len = strlen(dst); in av_strlcat()
100 return len + strlen(src); in av_strlcat()
106 size_t len = strlen(dst); in av_strlcatf()
156 char *out = av_malloc(strlen(*buf) + 1); in av_get_token()
244 size_t tolen = strlen(to), fromlen = strlen(from); in av_strireplace()
253 av_bprint_append_data(&pbuf, pstr, strlen(pstr)); in av_strireplace()
317 p_len = strlen(pat in av_append_path_component()
[all...]

Completed in 19 milliseconds

12345678910>>...329