/third_party/curl/tests/unit/ |
H A D | unit1603.c | 66 if(Curl_hash_str(key1, strlen(key1), slots) != 1 || 67 Curl_hash_str(key2, strlen(key2), slots) != 0 || 68 Curl_hash_str(key3, strlen(key3), slots) != 2 || 69 Curl_hash_str(key4, strlen(key4), slots) != 1) 73 nodep = Curl_hash_add(&hash_static, &key1, strlen(key1), &key1); 75 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1)); 78 nodep = Curl_hash_add(&hash_static, &key2, strlen(key2), &key2); 80 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2)); 83 nodep = Curl_hash_add(&hash_static, &key3, strlen(key3), &key3); 85 nodep = Curl_hash_pick(&hash_static, &key3, strlen(key [all...] |
/third_party/ltp/testcases/kernel/fs/stream/ |
H A D | stream03.c | 87 if (fwrite(junk, sizeof(*junk), strlen(junk), stream) == 0) { in main() 94 if (pos != strlen(junk)) { in main() 96 "strlen(junk)=%zi: file pointer descrepancy 2 (pos=%li)", in main() 97 strlen(junk), pos); in main() 113 if (fseek(stream, strlen(junk), 1) != 0) { in main() 120 if (pos != strlen(junk)) { in main() 122 "strlen(junk)=%zi: file pointer descrepancy 4 (pos=%li)", in main() 123 strlen(junk), pos); in main() 135 if (pos != strlen(junk)) { in main() 137 "strlen(jun in main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | fopen.c | 44 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0100() 58 if (!strncmp(abc, add, strlen(add))) { in fopen_0100() 62 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0100() 100 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0300() 104 } else if (wrsize == strlen(wrstring)) { in fopen_0300() 131 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0400() 134 } else if (wrsize == strlen(wrstring)) { in fopen_0400() 163 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0500() 175 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0500() 178 } else if (wrsize == strlen(wrstrin in fopen_0500() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/temp/ |
H A D | mkostemp.c | 32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0100() 33 EXPECT_TRUE("mkostemp_0100", cnt == strlen(tmpfile)); in mkostemp_0100() 55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0200() 56 EXPECT_TRUE("mkostemp_0200", cnt == strlen(tmpfile)); in mkostemp_0200() 78 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0300() 79 EXPECT_TRUE("mkostemp_0300", cnt == strlen(tmpfile)); in mkostemp_0300() 101 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0400() 102 EXPECT_TRUE("mkostemp_0400", cnt == strlen(tmpfile)); in mkostemp_0400() 124 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0500() 125 EXPECT_TRUE("mkostemp_0500", cnt == strlen(tmpfil in mkostemp_0500() [all...] |
H A D | mkostemps.c | 29 int fd = mkostemps(tmpfile, strlen(".dat"), O_CREAT); in mkostemps_0100() 32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0100() 33 EXPECT_TRUE("mkostemps_0100", cnt == strlen(tmpfile)); in mkostemps_0100() 55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0200() 56 EXPECT_TRUE("mkostemps_0200", cnt == strlen(tmpfile)); in mkostemps_0200() 74 int fd = mkostemps(tmpfile, strlen(".dat"), O_CREAT); in mkostemps_0300() 77 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0300() 78 EXPECT_TRUE("mkostemps_0300", cnt == strlen(tmpfile)); in mkostemps_0300()
|
H A D | mkstemps.c | 27 int fd = mkstemps(tmpfile, strlen(".dat")); in mkstemps_0100() 30 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0100() 31 EXPECT_TRUE("mkstemps_0100", cnt == strlen(tmpfile)); in mkstemps_0100() 52 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0200() 53 EXPECT_TRUE("mkstemps_0200", cnt == strlen(tmpfile)); in mkstemps_0200() 71 int fd = mkstemps(tmpfile, strlen(".dat")); in mkstemps_0300() 74 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0300() 75 EXPECT_TRUE("mkstemps_0300", cnt == strlen(tmpfile)); in mkstemps_0300()
|
/third_party/musl/libc-test/src/functional/ |
H A D | renameat2_test.c | 42 size_t len = strlen(msg);
in WriteFile() 106 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 115 CompareFileString(g_oldPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 116 CompareFileString(g_newPath, strlen(g_newMsg), g_newMsg);
in RenameNoReplaceTest() 128 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 137 CompareFileString(g_oldPath, strlen(g_oldMsg), g_oldMsg);
in RenameNoReplaceTest() 138 CompareFileString(g_newPath, strlen(g_newMsg), g_newMsg);
in RenameNoReplaceTest() 153 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in ZeroTest() 166 CompareFileString(g_newPath, strlen(g_oldMsg), g_oldMsg);
in ZeroTest() 178 CompareFileString(g_newPath, strlen(g_oldMs in ZeroTest() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | digestauth.c | 111 MD5Update (&md5, username, strlen (username)); in digest_calc_ha1() 113 MD5Update (&md5, realm, strlen (realm)); in digest_calc_ha1() 115 MD5Update (&md5, password, strlen (password)); in digest_calc_ha1() 122 MD5Update (&md5, nonce, strlen (nonce)); in digest_calc_ha1() 124 MD5Update (&md5, cnonce, strlen (cnonce)); in digest_calc_ha1() 161 MD5Update (&md5, method, strlen(method)); in digest_calc_response() 163 MD5Update (&md5, uri, strlen(uri)); in digest_calc_response() 171 MD5Update (&md5, hentity, strlen(hentity)); in digest_calc_response() 180 MD5Update (&md5, nonce, strlen(nonce)); in digest_calc_response() 184 MD5Update (&md5, noncecount, strlen(noncecoun in digest_calc_response() [all...] |
/third_party/ltp/testcases/kernel/pty/ |
H A D | hangup01.c | 90 size_t len = strlen(MESSAGE1); in parent() 115 strlen(MESSAGE1)) != 0) { in parent() 119 len = strlen(MESSAGE2); in parent() 123 strlen(MESSAGE2)) != 0) { in parent() 127 len = strlen(MESSAGE3); in parent() 131 strlen(MESSAGE3)) != 0) { in parent() 169 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) { in child() 181 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE in child() [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | substitute.h | 92 : text_(value), size_(strlen(text_)) {} in SubstituteArg() 109 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 111 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 113 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 115 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 117 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 119 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 121 : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 123 : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 125 : text_(FloatToBuffer(value, scratch_)), size_(strlen(text in SubstituteArg() [all...] |
/third_party/jerryscript/jerry-main/ |
H A D | cli.c | 50 char CMDNAME[strlen ((PROGNAME)) + strlen ((CMD)) + 2]; \ 51 strncpy (CMDNAME, (PROGNAME), strlen ((PROGNAME))); \ 52 CMDNAME[strlen ((PROGNAME))] = ' '; \ 53 strncpy (CMDNAME + strlen ((PROGNAME)) + 1, (CMD), strlen ((CMD)) + 1) 261 int length = (int) strlen (prog_name_p); in cli_opt_usage() 268 int command_length = (int) strlen (command_name_p); in cli_opt_usage() 291 opt_length += (int) strlen (opt_p); in cli_opt_usage() 325 int opt_length = (int) (2 + strlen (opt_ in cli_opt_usage() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | uname.c | 36 if (strlen(buf.sysname) == 0) { in uname_0100() 40 if (strlen(buf.nodename) == 0) { in uname_0100() 44 if (strlen(buf.release) == 0) { in uname_0100() 48 if (strlen(buf.version) == 0) { in uname_0100() 52 if (strlen(buf.machine) == 0) { in uname_0100() 57 if (strlen(buf.domainname) == 0) { in uname_0100() 61 if (strlen(buf.__domainname) == 0) { in uname_0100()
|
/third_party/ffmpeg/libavformat/ |
H A D | vorbiscomment.c | 45 len += strlen(vendor_string); in ff_vorbiscomment_length() 51 int64_t len1 = !strcmp(tag->key, "title") ? 4 : strlen(tag->key); in ff_vorbiscomment_length() 52 len += 4 + 10 + len1 + 1 + strlen(tag->value); in ff_vorbiscomment_length() 59 len += 4 +strlen(tag->key) + 1 + strlen(tag->value); in ff_vorbiscomment_length() 69 size_t vendor_string_length = strlen(vendor_string); in ff_vorbiscomment_write() 83 int64_t len1 = strlen(tag->key); in ff_vorbiscomment_write() 84 int64_t len2 = strlen(tag->value); in ff_vorbiscomment_write() 113 int64_t len1 = !strcmp(tag->key, "title") ? 4 : strlen(tag->key); in ff_vorbiscomment_write() 114 int64_t len2 = strlen(ta in ff_vorbiscomment_write() [all...] |
H A D | httpauth.c | 80 char *end = ptr + strlen("auth"); in choose_qop() 131 av_md5_update(md5ctx, str, strlen(str)); in update_md5_strings() 206 len = strlen(username) + strlen(state->realm) + strlen(digest->nonce) + in make_digest_auth() 207 strlen(uri) + strlen(response) + strlen(digest->algorithm) + in make_digest_auth() 208 strlen(digest->opaque) + strlen(diges in make_digest_auth() [all...] |
/third_party/backends/sanei/ |
H A D | sanei_auth.c | 130 md5_buffer (tmpstr, strlen (tmpstr), md5digest); in check_passwd() 174 if (strlen (resource) > 127) in sanei_authorize() 244 if ((strlen (line) > 0) && (line[strlen (line) - 1] == '\n')) in sanei_authorize() 245 line[strlen (line) - 1] = '\n'; in sanei_authorize() 247 if ((strlen (line) > 0) && (line[strlen (line) - 1] == '\r')) in sanei_authorize() 248 line[strlen (line) - 1] = '\r'; in sanei_authorize() 251 if ((strncmp (line, username, strlen (username)) == 0) && in sanei_authorize() 252 (((strchr (line, ':')) - line) == (signed) strlen (usernam in sanei_authorize() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_send/ |
H A D | 3-2.c | 67 if (mq_send(queue, msgptr3, strlen(msgptr3), PRI3) != 0) { in main() 73 if (mq_send(queue, msgptr1, strlen(msgptr1), PRI1) != 0) { in main() 79 if (mq_send(queue, msgptr4, strlen(msgptr4), PRI4) != 0) { in main() 85 if (mq_send(queue, msgptr2, strlen(msgptr2), PRI2) != 0) { in main() 91 if (mq_send(queue, msgptr5, strlen(msgptr5), PRI5) != 0) { in main() 102 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 112 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 122 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 132 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 142 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
H A D | 3-1.c | 65 if (mq_send(queue, msgptr3, strlen(msgptr3), PRI3) != 0) { in main() 70 if (mq_send(queue, msgptr1, strlen(msgptr1), PRI1) != 0) { in main() 75 if (mq_send(queue, msgptr4, strlen(msgptr4), PRI4) != 0) { in main() 80 if (mq_send(queue, msgptr2, strlen(msgptr2), PRI2) != 0) { in main() 85 if (mq_send(queue, msgptr5, strlen(msgptr5), PRI5) != 0) { in main() 95 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 105 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 115 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 125 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 135 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
H A D | 3-2.c | 72 if (mq_timedsend(queue, msgptr3, strlen(msgptr3), PRI3, &ts) != 0) { in main() 79 if (mq_timedsend(queue, msgptr1, strlen(msgptr1), PRI1, &ts) != 0) { in main() 86 if (mq_timedsend(queue, msgptr4, strlen(msgptr4), PRI4, &ts) != 0) { in main() 93 if (mq_timedsend(queue, msgptr2, strlen(msgptr2), PRI2, &ts) != 0) { in main() 100 if (mq_timedsend(queue, msgptr5, strlen(msgptr5), PRI5, &ts) != 0) { in main() 111 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 121 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 131 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 141 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 151 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
H A D | 3-1.c | 70 if (mq_timedsend(queue, msgptr3, strlen(msgptr3), PRI3, &ts) != 0) { in main() 76 if (mq_timedsend(queue, msgptr1, strlen(msgptr1), PRI1, &ts) != 0) { in main() 82 if (mq_timedsend(queue, msgptr4, strlen(msgptr4), PRI4, &ts) != 0) { in main() 88 if (mq_timedsend(queue, msgptr2, strlen(msgptr2), PRI2, &ts) != 0) { in main() 94 if (mq_timedsend(queue, msgptr5, strlen(msgptr5), PRI5, &ts) != 0) { in main() 104 if (strncmp(msgptr1, msgrcd, strlen(msgptr1)) != 0) { in main() 114 if (strncmp(msgptr2, msgrcd, strlen(msgptr2)) != 0) { in main() 124 if (strncmp(msgptr3, msgrcd, strlen(msgptr3)) != 0) { in main() 134 if (strncmp(msgptr4, msgrcd, strlen(msgptr4)) != 0) { in main() 144 if (strncmp(msgptr5, msgrcd, strlen(msgptr in main() [all...] |
/third_party/skia/third_party/externals/expat/expat/tests/ |
H A D | runtests.c | 92 # define xcstrlen(s) strlen(s) 168 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _expect_failure() 426 (int)strlen(options->parse_text), XML_TRUE); in external_entity_optioner() 538 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST() 600 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _run_character_check() 617 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _run_attribute_check() 647 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _run_ext_character_check() 752 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST() 799 const char *fromLim = cases[i].input + strlen(cases[i].input); in START_TEST() 813 for (; j < strlen(case in START_TEST() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/string/ |
H A D | stpncpy.c | 41 stpncpy(dest, src, strlen(src)); in stpncpy_0100() 43 if (strncmp(src, buf, strlen(src))) { in stpncpy_0100() 48 for (int i = strlen(src) + 1; i < BUF_SIZE; i++) { in stpncpy_0100() 68 stpncpy(dest, src, strlen(src)); in stpncpy_0200() 93 stpncpy(dest, src, strlen(src)); in stpncpy_0300() 95 if (strncmp(src, buf, strlen(src))) { in stpncpy_0300() 111 stpncpy(NULL, src, strlen(src)); in stpncpy_0400()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | bprint.c | 53 printf("Short text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); in main() 59 printf("Long text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); in main() 64 printf("Long text in limited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); in main() 69 printf("Short text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); in main() 73 printf("Long text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str)/8*8, b.len); in main() 78 printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); in main() 82 printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(buf), b.len); in main() 86 printf("strftime full: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str); in main() 91 printf("strftime truncated: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str); in main()
|
/third_party/libcoap/tests/ |
H A D | test_uri.c | 23 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri1() 46 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri2() 69 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri3() 91 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri4() 101 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri5() 124 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri6() 159 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri7() 190 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri8() 207 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri9() 222 result = coap_split_uri((unsigned char *)teststr, strlen(testst in t_parse_uri10() [all...] |
/third_party/node/deps/openssl/openssl/crypto/err/ |
H A D | err_prn.c | 38 offset = strlen(buf); in ERR_print_errors_cb() 40 offset += strlen(buf + offset); in ERR_print_errors_cb() 44 if (cb(buf, strlen(buf), u) <= 0) in ERR_print_errors_cb() 86 data_len = strlen(data); in ERR_add_error_txt() 90 || strlen(separator) >= (size_t)(MAX_DATA_LEN - data_len)) in ERR_add_error_txt() 93 available_len = MAX_DATA_LEN - data_len - strlen(separator) - 1; in ERR_add_error_txt() 97 const size_t len_next = strlen(next); in ERR_add_error_txt() 111 next += strlen(separator); in ERR_add_error_txt() 114 next = curr + strlen(curr); in ERR_add_error_txt() 133 tmp = OPENSSL_strndup(txt, next - strlen(separato in ERR_add_error_txt() [all...] |
/third_party/openssl/crypto/err/ |
H A D | err_prn.c | 38 offset = strlen(buf); in ERR_print_errors_cb() 40 offset += strlen(buf + offset); in ERR_print_errors_cb() 44 if (cb(buf, strlen(buf), u) <= 0) in ERR_print_errors_cb() 86 data_len = strlen(data); in ERR_add_error_txt() 90 || strlen(separator) >= (size_t)(MAX_DATA_LEN - data_len)) in ERR_add_error_txt() 93 available_len = MAX_DATA_LEN - data_len - strlen(separator) - 1; in ERR_add_error_txt() 97 const size_t len_next = strlen(next); in ERR_add_error_txt() 111 next += strlen(separator); in ERR_add_error_txt() 114 next = curr + strlen(curr); in ERR_add_error_txt() 133 tmp = OPENSSL_strndup(txt, next - strlen(separato in ERR_add_error_txt() [all...] |