/third_party/ltp/testcases/kernel/security/smack/ |
H A D | smack_set_socket_labels.c | 86 rc = fsetxattr(sock, anin, avin, strlen(avin) + 1, 0); in set_socket_labels() 92 rc = fsetxattr(sock, anout, avout, strlen(avout) + 1, 0); in set_socket_labels() 98 rc = fsetxattr(sock, annot, avnot, strlen(avnot) + 1, 0); in set_socket_labels()
|
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | ftell.c | 36 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0100() 67 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0200() 98 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0300()
|
H A D | fwrite.c | 34 int result = fwrite(buf, sizeof(char), strlen(buf), fptr); in fwrite_0100() 35 EXPECT_TRUE("fwrite_0100", result == strlen(buf)); in fwrite_0100() 52 int result = fwrite(buf, 0, strlen(buf), fptr); in fwrite_0200()
|
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | o_fopen.c | 42 int sz, len_0 = (int)strlen(filename) + 1; in openssl_fopen() 68 MultiByteToWideChar(CP_UTF8, 0, mode, strlen(mode) + 1, in openssl_fopen() 90 if ((newname = OPENSSL_malloc(strlen(filename) + 1)) == NULL) { in openssl_fopen()
|
/third_party/node/deps/uv/src/unix/ |
H A D | os390-proctitle.c | 51 size += strlen(argv[i]) + 1; in uv_setup_args() 63 size = strlen(argv[i]) + 1; in uv_setup_args() 118 len = strlen(process_title); in uv_get_process_title()
|
/third_party/pcre2/pcre2/src/ |
H A D | pcre2_config.c | 159 strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v))); in pcre2_config() 208 strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v))); in pcre2_config() 245 strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v))); in pcre2_config()
|
/third_party/openssl/crypto/ |
H A D | o_fopen.c | 42 int sz, len_0 = (int)strlen(filename) + 1; in openssl_fopen() 68 MultiByteToWideChar(CP_UTF8, 0, mode, strlen(mode) + 1, in openssl_fopen() 90 if ((newname = OPENSSL_malloc(strlen(filename) + 1)) == NULL) { in openssl_fopen()
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | digest_auth_example.c | 52 response = MHD_create_response_from_buffer(strlen (DENIED), in ahc_echo() 70 response = MHD_create_response_from_buffer(strlen (DENIED), in ahc_echo() 82 response = MHD_create_response_from_buffer(strlen(PAGE), PAGE, in ahc_echo()
|
/third_party/toybox/kconfig/ |
H A D | util.c | 71 gs.len = strlen(s) + 1; in str_assign() 87 size_t l = strlen(gs->s) + strlen(s) + 1; in str_append()
|
/third_party/skia/gm/ |
H A D | pdf_never_embed.cpp | 27 const int count = font.countText(text, strlen(text), SkTextEncoding::kUTF8); in excercise_draw_pos_text() 30 font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, rec.glyphs, count); in excercise_draw_pos_text() 64 canvas->drawSimpleText(text, strlen(text), SkTextEncoding::kUTF8, 30, 700, font, p); in DEF_SIMPLE_GM_CAN_FAIL()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_device_mitigation.cpp | 112 if (WriteSysfsFile(nodeBuf, freqBuf, strlen(freqBuf)) > NUM_ZERO) { in ExecuteCpuRequest() 159 if (WriteSysfsFile(nodeBuf, freqBuf, strlen(freqBuf)) > NUM_ZERO) { in GpuRequest() 187 if (WriteSysfsFile(nodeBuf, currentBuf, strlen(currentBuf)) > NUM_ZERO) { in ExecuteChargerRequest() 212 if (WriteSysfsFile(nodeBuf, currentBuf, strlen(currentBuf)) > NUM_ZERO) { in BatteryCurrentRequest() 237 if (WriteSysfsFile(voltageNode, voltageBuf, strlen(voltageBuf)) > NUM_ZERO) { in BatteryVoltageRequest() 272 if (WriteSysfsFile(isolateCpuPath, valueBuf, strlen(valueBuf)) > NUM_ZERO) { in IsolateCpu()
|
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils.c | 50 (const uint8_t*)pers, strlen(pers)); in GetRandomNum() 76 size_t inputLen = strlen(input); in AttestStrdup() 141 if (str == NULL || strlen(str) == 0) { in AnonymiseStr() 144 uint32_t strLen = strlen(str); in AnonymiseStr() 285 if (strlen(str) < len) { in CharToAscii() 311 uint32_t outStrLen = strlen(outStr); in CharToAscii()
|
/third_party/alsa-utils/alsactl/ |
H A D | utils.c | 94 (void)write(fp, str, strlen(str)); in initfailed() 96 (void)write(fp, reason, strlen(reason)); in initfailed() 98 (void)write(fp, sexitcode, strlen(sexitcode)); in initfailed() 111 vsnprintf(buf + strlen(buf), sizeof(buf)-strlen(buf), fmt, ap); in syslog_() 302 flen = strlen(dirent->d_name); in cleanup_filename_filter()
|
/third_party/mbedtls/programs/psa/ |
H A D | psa_constant_names.c | 93 family_name, strlen(family_name)); in append_with_curve() 111 group_name, strlen(group_name)); in append_with_group() 129 name, strlen(name)); in append_with_alg() 145 size_t length = strlen(name); in psa_snprint_status() 162 size_t length = strlen(name); in psa_snprint_ecc_curve() 179 size_t length = strlen(name); in psa_snprint_dh_group()
|
/third_party/node/deps/base64/base64/test/ |
H A D | test_base64.c | 15 size_t srclen = strlen(src); in assert_enc() 16 size_t dstlen = strlen(dst); in assert_enc() 38 size_t srclen = strlen(src); in assert_dec() 39 size_t dstlen = strlen(dst); in assert_dec() 66 size_t srclen = strlen(src); in assert_roundtrip() 268 if (base64_decode(invalid_strings[i], strlen(invalid_strings[i]), dec, &declen, flags)) { in test_invalid_dec_input()
|
/third_party/libinput/src/ |
H A D | util-strings.h | 219 size_t slen = strlen(str); in safe_atod() 429 size_t slen = strlen(str); in strendswith() 430 size_t suffixlen = strlen(suffix); in strendswith() 446 size_t prefixlen = strlen(prefix); in strstartswith() 448 return prefixlen > 0 ? strneq(str, prefix, strlen(prefix)) : false; in strstartswith() 470 size_t slen = min(strlen(str), 512); in str_sanitize()
|
/third_party/ltp/testcases/misc/math/float/ |
H A D | main.c | 87 cmdline = malloc(2 * strlen(bin_path) + strlen(datadir) + strlen(GENERATOR) + strlen(fmt)); in generate() 124 if (ltproot == NULL || strlen(ltproot) == 0) { in main() 128 bin_path = malloc(strlen(ltproot) + 16); in main()
|
/third_party/openssl/test/testutil/ |
H A D | driver.c | 418 len += strlen(list[i]); in glue_strings() 427 p += strlen(strcpy(p, list[i])); in glue_strings() 441 size_t dirlen = dir != NULL ? strlen(dir) : 0; in test_mk_file_path() 442 size_t len = dirlen + strlen(sep) + strlen(file) + 1; in test_mk_file_path() 455 dir_end = &full_file[strlen(full_file) - 1]; in test_mk_file_path()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | wrjpgcom.c | 450 if (strlen(argv[argn]) + 2 >= (size_t)MAX_COM_LENGTH) { in main() 457 comment_length = (unsigned int)strlen(comment_arg); in main() 464 if (strlen(comment_arg) + strlen(argv[argn]) + 2 >= in main() 473 } else if (strlen(argv[argn]) >= (size_t)MAX_COM_LENGTH) { in main() 478 comment_length = (unsigned int)strlen(comment_arg); in main()
|
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/ |
H A D | test_post.c | 98 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) in post_iterator() 101 (size == strlen ("curl")) && (0 == strncmp (value, "curl", size))) in post_iterator() 134 response = MHD_create_response_from_buffer (strlen (url), in ahc_echo() 176 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); in testInternalPost() 228 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); in testMultithreadedPost() 298 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); in testExternalPost()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-utf.hh | 126 strlen (const codepoint_t *text) in strlen() function 127 { return ::strlen ((const char *) text); } in strlen() 252 strlen (const codepoint_t *text) in strlen() function 319 strlen (const TCodepoint *text) in strlen() function 373 strlen (const codepoint_t *text) in strlen() function 428 strlen (const codepoint_t *text) in strlen() function
|
/drivers/peripheral/usb/sample/device/liteos/lib/src/ |
H A D | lib_acm_test.c | 124 if (str && tmp && strlen(tmp) > 0) { in AcmRead() 125 ret = memcpy_s(str, maxLen, tmp, strlen(tmp)); in AcmRead() 191 if (propValue && tmp && strlen(tmp) > 0) { in acm_prop_read() 193 errno_t err = memcpy_s(propValue, maxLen, tmp, strlen(tmp)); in acm_prop_read()
|
/test/xts/dcts/common/ |
H A D | shm_utils.cpp | 85 strcpy_s(buf, strlen(shared->data) + 1, shared->data);
in readDataFromShm() 104 strcpy_s(buf, strlen(shared->data) + 1, shared->data);
in readDataFromShmNoClear() 133 if (strncpy_s(data, strlen("0") + 1, str + STR_KEY, 1) != EOK) {
in waitDataWithCode() 207 strcpy_s(shared->data, strlen(buf) + 1, buf);
in writeDataToShm()
|
/test/xts/hats/kernel/syscalls/fileio/preadv/ |
H A D | PreadvApiTest.cpp | 38 static const size_t TEST_LEN = strlen(TEST_DATA); 171 .iov_len = strlen(context), in HWTEST_F() 176 write(fd, context, strlen(context)); in HWTEST_F() 180 EXPECT_EQ(size, TEST_LEN + strlen(context)); in HWTEST_F()
|
/third_party/ffmpeg/libavformat/ |
H A D | smjpegenc.c | 53 avio_wb32(pb, strlen(t->key) + strlen(t->value) + 3); in smjpeg_write_header() 54 avio_write(pb, t->key, strlen(t->key)); in smjpeg_write_header() 56 avio_write(pb, t->value, strlen(t->value)); in smjpeg_write_header()
|