/external/curl/tests/unit/ |
D | unit1603.c | 63 if(Curl_hash_str(key1, strlen(key1), slots) != 1 || 64 Curl_hash_str(key2, strlen(key2), slots) != 0 || 65 Curl_hash_str(key3, strlen(key3), slots) != 2 || 66 Curl_hash_str(key4, strlen(key4), slots) != 1) 70 nodep = Curl_hash_add(&hash_static, &key1, strlen(key1), &key1); 72 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1)); 75 nodep = Curl_hash_add(&hash_static, &key2, strlen(key2), &key2); 77 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2)); 80 nodep = Curl_hash_add(&hash_static, &key3, strlen(key3), &key3); 82 nodep = Curl_hash_pick(&hash_static, &key3, strlen(key3)); [all …]
|
/external/clang/test/Analysis/ |
D | string.c | 38 #define strlen BUILTIN(strlen) macro 39 size_t strlen(const char *s); 42 clang_analyzer_eval(strlen("123") == 3); // expected-warning{{TRUE}} in strlen_constant0() 47 clang_analyzer_eval(strlen(a) == 3); // expected-warning{{TRUE}} in strlen_constant1() 52 clang_analyzer_eval(strlen(a) == 3); // expected-warning{{TRUE}} in strlen_constant2() 55 clang_analyzer_eval(strlen(a) == 3); // expected-warning{{UNKNOWN}} in strlen_constant2() 59 return strlen(0); // expected-warning{{Null pointer argument in call to string length function}} in strlen_null() 63 …return strlen((char*)&strlen_fn); // expected-warning{{Argument to string length function is the a… in strlen_fn() 68 …return strlen((char*)&&label); // expected-warning{{Argument to string length function is the addr… in strlen_nonloc() 78 size_t a = strlen(z.a); in strlen_subregion() [all …]
|
/external/compiler-rt/test/profile/ |
D | instrprof-bufferio.c | 48 strlen("Short Strings:\n")); in main() 50 lprofBufferIOWrite(BufferIO, SmallData, strlen(SmallData)); in main() 52 lprofBufferIOWrite(BufferIO, "Long Strings:\n", strlen("Long Strings:\n")); in main() 54 lprofBufferIOWrite(BufferIO, MediumData, strlen(MediumData)); in main() 57 strlen("Extra Long Strings:\n")); in main() 59 lprofBufferIOWrite(BufferIO, LargeData, strlen(LargeData)); in main() 61 lprofBufferIOWrite(BufferIO, "Mixed Strings:\n", strlen("Mixed Strings:\n")); in main() 63 lprofBufferIOWrite(BufferIO, MediumData, strlen(MediumData)); in main() 64 lprofBufferIOWrite(BufferIO, SmallData, strlen(SmallData)); in main() 66 lprofBufferIOWrite(BufferIO, "Endings:\n", strlen("Endings:\n")); in main() [all …]
|
/external/ltp/testcases/kernel/fs/stream/ |
D | stream03.c | 87 if (fwrite(junk, sizeof(*junk), strlen(junk), stream) == 0) { in main() 94 if (pos != strlen(junk)) { 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() 123 strlen(junk), pos); in main() 135 if (pos != strlen(junk)) { in main() 138 strlen(junk), pos); in main() 163 if (pos != strlen(junk)) { in main() 166 strlen(junk), pos); in main() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | strlen-1.ll | 2 ; Test that the strlen library call simplifier works correctly. 16 declare i32 @strlen(i8*) 18 ; Check strlen(string constant) -> integer constant. 25 %hello_l = call i32 @strlen(i8* %hello_p) 34 %null_l = call i32 @strlen(i8* %null_p) 43 %null_hello_l = call i32 @strlen(i8* %null_hello_p) 51 %len = tail call i32 @strlen(i8* @nullstring) nounwind 55 ; Check strlen(x) == 0 --> *x == 0. 62 %hello_l = call i32 @strlen(i8* %hello_p) 73 %str_l = call i32 @strlen(i8* %str_p) [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | strlen-1.ll | 2 ; Test that the strlen library call simplifier works correctly. 16 declare i32 @strlen(i8*) 18 ; Check strlen(string constant) -> integer constant. 25 %hello_l = call i32 @strlen(i8* %hello_p) 34 %null_l = call i32 @strlen(i8* %null_p) 43 %null_hello_l = call i32 @strlen(i8* %null_hello_p) 51 %len = tail call i32 @strlen(i8* @nullstring) nounwind 55 ; Check strlen(x) == 0 --> *x == 0. 62 %hello_l = call i32 @strlen(i8* %hello_p) 72 %null_l = call i32 @strlen(i8* %null_p) [all …]
|
/external/e2fsprogs/intl/ |
D | os2compat.c | 59 size_t sl = strlen (root); in nlos2_initialize() 60 _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in nlos2_initialize() 62 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize() 73 size_t sl = strlen (root); in nlos2_initialize() 74 _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize() 76 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize() 87 size_t sl = strlen (root); in nlos2_initialize() 88 _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in nlos2_initialize() 90 memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); in nlos2_initialize() 96 if (strlen (_nlos2_localedir) <= MAXPATHLEN) in nlos2_initialize()
|
/external/kmod/testsuite/ |
D | test-scratchbuf.c | 34 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack() 39 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack() 43 memcpy(scratchbuf_str(&sbuf), smallstr, strlen(smallstr) + 1); in test_scratchbuf_onlystack() 63 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_heap() 65 memcpy(scratchbuf_str(&sbuf), smallstr, strlen(smallstr) + 1); in test_scratchbuf_heap() 68 assert_return(scratchbuf_alloc(&sbuf, strlen(largestr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_heap() 70 assert_return(sbuf.size == strlen(largestr) + 1, EXIT_FAILURE); in test_scratchbuf_heap() 72 memcpy(scratchbuf_str(&sbuf), largestr, strlen(largestr) + 1); in test_scratchbuf_heap() 76 assert_return(scratchbuf_alloc(&sbuf, strlen(largestr2) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_heap() 78 assert_return(sbuf.size == strlen(largestr2) + 1, EXIT_FAILURE); in test_scratchbuf_heap() [all …]
|
/external/openssh/ |
D | md5crypt.c | 47 return (strncmp(salt, magic, strlen(magic)) == 0); in is_md5_salt() 64 if(strncmp(sp, magic, strlen(magic)) == 0) in md5_crypt() 65 sp += strlen(magic); in md5_crypt() 83 MD5_Update(&ctx, pw, strlen(pw)); in md5_crypt() 86 MD5_Update(&ctx, magic, strlen(magic)); in md5_crypt() 93 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt() 95 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt() 98 for(pl = strlen(pw); pl > 0; pl -= 16) in md5_crypt() 105 for (j = 0, i = strlen(pw); i != 0; i >>= 1) in md5_crypt() 124 MD5_Update(&ctx1, pw, strlen(pw)); in md5_crypt() [all …]
|
D | auth-options.c | 98 size_t opt_len = strlen(opt); in match_flag() 174 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 175 opts += strlen(cp); in auth_parse_options() 177 forced_command = xmalloc(strlen(opts) + 1); in auth_parse_options() 204 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 205 opts += strlen(cp); in auth_parse_options() 207 authorized_principals = xmalloc(strlen(opts) + 1); in auth_parse_options() 235 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 239 opts += strlen(cp); in auth_parse_options() 240 s = xmalloc(strlen(opts) + 1); in auth_parse_options() [all …]
|
/external/ltp/testcases/kernel/pty/ |
D | hangup01.c | 93 size_t len = strlen(MESSAGE1); in parent() 118 strlen(MESSAGE1)) != 0) { in parent() 122 len = strlen(MESSAGE2); in parent() 126 strlen(MESSAGE2)) != 0) { in parent() 130 len = strlen(MESSAGE3); in parent() 134 strlen(MESSAGE3)) != 0) { in parent() 172 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) { in child() 184 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE2)) { in child() 196 if (write(slavefd, MESSAGE3, strlen(MESSAGE3)) != strlen(MESSAGE3)) { in child()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | substitute.h | 90 : text_(value), size_(strlen(text_)) {} in SubstituteArg() 107 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 109 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 111 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 113 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 115 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 117 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 119 : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 121 : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() 123 : text_(FloatToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg() [all …]
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
D | FastStringBuffer.java | 482 int strlen = value.length(); in append() local 484 if (0 == strlen) in append() 492 while (strlen > 0) in append() 496 if (available > strlen) in append() 497 available = strlen; in append() 502 strlen -= available; in append() 506 if (strlen > 0) in append() 564 int strlen = value.length(); in append() local 566 if (0 == strlen) in append() 574 while (strlen > 0) in append() [all …]
|
/external/jsmn/test/ |
D | tests.c | 150 for (i = 1; i <= strlen(js); i++) { in test_partial_string() 152 if (i == strlen(js)) { in test_partial_string() 176 for (i = 1; i <= strlen(js); i++) { in test_partial_array() 178 if (i == strlen(js)) { in test_partial_array() 208 r = jsmn_parse(&p, js, strlen(js), toksmall, i); in test_array_nomem() 213 r = jsmn_parse(&p, js, strlen(js), toklarge, 10); in test_array_nomem() 236 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_unquoted_keys() 262 r = jsmn_parse(&p, js, strlen(js), tokens, 128); in test_issue_22() 298 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 1); in test_count() 302 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 1); in test_count() [all …]
|
/external/blktrace/iowatcher/ |
D | plot.c | 183 if (strlen(label) > longest_proc_name) in alloc_dot_data() 184 longest_proc_name = strlen(label); in alloc_dot_data() 292 write_check(fd, header, strlen(header)); in write_svg_header() 294 write_check(fd, spaces, strlen(spaces)); in write_svg_header() 295 write_check(fd, spaces, strlen(spaces)); in write_svg_header() 296 write_check(fd, spaces, strlen(spaces)); in write_svg_header() 298 write_check(fd, defs_start, strlen(defs_start)); in write_svg_header() 299 write_check(fd, filter1, strlen(filter1)); in write_svg_header() 300 write_check(fd, filter2, strlen(filter2)); in write_svg_header() 301 write_check(fd, filter3, strlen(filter3)); in write_svg_header() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_send/ |
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(msgptr5)) != 0) { in main()
|
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(msgptr5)) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
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(msgptr5)) != 0) { in main()
|
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(msgptr5)) != 0) { in main()
|
/external/grpc-grpc/test/cpp/util/ |
D | slice_test.cc | 52 Slice sized_slice(strlen(kContent)); in TEST_F() 62 Slice spp(kContent, strlen(kContent)); in TEST_F() 67 Slice spp(kContent, strlen(kContent), Slice::STATIC_SLICE); in TEST_F() 72 char* x = new char[strlen(kContent) + 1]; in TEST_F() 74 Slice spp(x, strlen(x), [](void* p) { delete[] static_cast<char*>(p); }); in TEST_F() 79 Slice spp(const_cast<char*>(kContent), strlen(kContent), [](void* p) {}); in TEST_F() 89 t->x = new char[strlen(kContent) + 1]; in TEST_F() 91 Slice spp(t->x, strlen(t->x), in TEST_F() 102 Slice spp(const_cast<char*>(kContent), strlen(kContent), in TEST_F() 103 [](void* p, size_t l) { EXPECT_EQ(l, strlen(kContent)); }); in TEST_F()
|
/external/expat/tests/ |
D | runtests.c | 105 # define xcstrlen(s) strlen(s) 181 if (_XML_Parse_SINGLE_BYTES(parser, text, (int)strlen(text), XML_TRUE) == XML_STATUS_OK) in _expect_failure() 413 (int)strlen(options->parse_text), in external_entity_optioner() 534 if (_XML_Parse_SINGLE_BYTES(parser, text, (int)strlen(text), XML_TRUE) == XML_STATUS_ERROR) in START_TEST() 600 if (_XML_Parse_SINGLE_BYTES(parser, text, (int)strlen(text), XML_TRUE) == XML_STATUS_ERROR) in _run_character_check() 617 if (_XML_Parse_SINGLE_BYTES(parser, text, (int)strlen(text), XML_TRUE) == XML_STATUS_ERROR) in _run_attribute_check() 650 if (_XML_Parse_SINGLE_BYTES(parser, text, (int)strlen(text), in _run_ext_character_check() 769 if (_XML_Parse_SINGLE_BYTES(parser, text, (int)strlen(text), XML_TRUE) == XML_STATUS_OK) { in START_TEST() 819 const char * fromLim = cases[i].input + strlen(cases[i].input); in START_TEST() 834 for (; j < strlen(cases[i].input); j++) { in START_TEST() [all …]
|
/external/iperf3/src/ |
D | iperf_util.c | 253 sizeof(features) - strlen(features) - 1); in get_optional_features() 256 sizeof(features) - strlen(features) - 1); in get_optional_features() 263 sizeof(features) - strlen(features) - 1); in get_optional_features() 266 sizeof(features) - strlen(features) - 1); in get_optional_features() 273 sizeof(features) - strlen(features) - 1); in get_optional_features() 276 sizeof(features) - strlen(features) - 1); in get_optional_features() 283 sizeof(features) - strlen(features) - 1); in get_optional_features() 286 sizeof(features) - strlen(features) - 1); in get_optional_features() 293 sizeof(features) - strlen(features) - 1); in get_optional_features() 296 sizeof(features) - strlen(features) - 1); in get_optional_features() [all …]
|
/external/python/cpython2/PC/os2emx/ |
D | getpathp.c | 103 size_t i = strlen(dir); in reduce() 127 if (strlen(filename) < MAXPATHLEN) { in ismodule() 152 n = strlen(buffer); in join() 158 k = strlen(stuff); in join() 174 n = strlen(prefix); in gotlandmark() 288 len = strlen(zip_path); in calculate_path() 315 bufsz *= strlen(pythonhome); in calculate_path() 319 bufsz += strlen(PYTHONPATH) + 1; in calculate_path() 320 bufsz += strlen(argv0_path) + 1; in calculate_path() 321 bufsz += strlen(zip_path) + 1; in calculate_path() [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tls.c | 114 int to_send = strlen(test_str) + 1; in TEST_F() 148 send_len = strlen(test_str) + 1; in TEST_F() 225 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F() 226 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F() 228 vec[i].iov_len = strlen(test_strs[i]) + 1; in TEST_F() 239 strlen(test_strs[i])), in TEST_F() 241 len_cmp += strlen(buf + len_cmp) + 1; in TEST_F() 262 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F() 263 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F() 265 vec[i].iov_len = strlen(test_strs[i]) + 1; in TEST_F() [all …]
|
/external/ltp/testcases/kernel/io/disktest/ |
D | dump.c | 57 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str() 60 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str() 62 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str() 64 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str() 68 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str() 70 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str() 71 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str() 73 strncat(obuff, " ", (obuff_siz - 1) - strlen(obuff)); in format_str() 77 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str() 100 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_raw() [all …]
|