/external/clang/test/Analysis/ |
D | string.c | 35 #define strlen BUILTIN(strlen) macro 36 size_t strlen(const char *s); 39 if (strlen("123") != 3) in strlen_constant0() 45 if (strlen(a) != 3) in strlen_constant1() 51 if (strlen(a) != 3) in strlen_constant2() 54 if (strlen(a) != 3) 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/chromium/sdch/open-vcdiff/src/ |
D | vcencoder_test.cc | 78 const size_t size = strlen(s); // don't include terminating NULL char in ExpectString() 159 EXPECT_FALSE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta())); in TEST_F() 190 EXPECT_TRUE(null_encoder.EncodeChunk(kTarget, strlen(kTarget), delta())); in TEST_F() 192 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize, in TEST_F() 203 EXPECT_TRUE(simple_encoder_.Encode(kTarget, strlen(kTarget), delta())); in TEST_F() 204 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize, in TEST_F() 215 EXPECT_TRUE(simple_encoder_.Encode(kTarget, strlen(kTarget), delta())); in TEST_F() 216 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize, in TEST_F() 228 strlen(kTarget), in TEST_F() 230 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize, in TEST_F() [all …]
|
/external/oprofile/libop/ |
D | op_mangle.c | 53 len = strlen(op_samples_current_dir) + strlen(dep_name) + 1 in op_mangle_filename() 54 + strlen(values->event_name) + 1 + strlen(image_name) + 1; in op_mangle_filename() 57 len += strlen(cg_image_name) + 1; in op_mangle_filename() 60 len += strlen(anon_name); in op_mangle_filename() 82 sprintf(mangled + strlen(mangled), ".%d.%d.", in op_mangle_filename() 86 sprintf(mangled + strlen(mangled), "%d.", values->tgid); in op_mangle_filename() 88 sprintf(mangled + strlen(mangled), "%s.", "all"); in op_mangle_filename() 92 sprintf(mangled + strlen(mangled), "%d.", values->tid); in op_mangle_filename() 94 sprintf(mangled + strlen(mangled), "%s.", "all"); in op_mangle_filename() 98 sprintf(mangled + strlen(mangled), "%d", values->cpu); in op_mangle_filename() [all …]
|
/external/openssh/ |
D | auth-options.c | 108 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 110 opts += strlen(cp); in auth_parse_options() 114 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 117 opts += strlen(cp); in auth_parse_options() 121 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 124 opts += strlen(cp); in auth_parse_options() 128 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 131 opts += strlen(cp); in auth_parse_options() 135 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options() 138 opts += strlen(cp); in auth_parse_options() [all …]
|
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 | progressmeter.c | 178 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 182 format_size(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 187 format_rate(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 213 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 216 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
|
/external/svox/pico/tts/ |
D | svox_ssml_parser.cpp | 83 int doclen = (int)strlen(ssmldoc) + 1; in parseDocument() 112 if (strlen(m_data) > 0) in startElement() 133 m_docLanguage = new char[strlen(attributes[i+1])+1]; in startElement() 142 if (strlen(m_data) + 4 > (size_t)m_datasize) in startElement() 154 if (strlen(m_data) + 4 > (size_t)m_datasize) in startElement() 209 xsampasize = strlen(xsampastr); in startElement() 216 char* phonstr = createPhonemeString(xsampastr, strlen(xsampastr) + 1); in startElement() 219 xsampastr = (char*)malloc(strlen(phonstr) + 1); in startElement() 228 if (strlen(m_data) + strlen(xsampastr) + 1 > (size_t)m_datasize) in startElement() 240 if (strlen(m_data) + strlen(xsampastr) + 17 > (size_t)m_datasize) in startElement() [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/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/valgrind/main/include/ |
D | pub_tool_options.h | 52 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 54 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 65 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 67 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 75 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 77 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 90 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 92 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 123 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 125 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \
|
/external/chromium/googleurl/src/ |
D | url_util_unittest.cc | 43 kStr1, static_cast<int>(strlen(kStr1)), "http", NULL)); in TEST() 45 kStr1, static_cast<int>(strlen(kStr1)), "http", &found_scheme)); in TEST() 50 kStr1, static_cast<int>(strlen(kStr1)), "https", &found_scheme)); in TEST() 56 kStr2, static_cast<int>(strlen(kStr2)), "http", &found_scheme)); in TEST() 62 kStr3, static_cast<int>(strlen(kStr3)), "", &found_scheme)); in TEST() 73 whtspc_str, static_cast<int>(strlen(whtspc_str)), "javascript", in TEST() 81 ctrl_str, static_cast<int>(strlen(ctrl_str)), "javascript", in TEST() 121 url_util::Canonicalize(base_url, strlen(base_url), NULL, in CheckReplaceScheme() 125 replacements.SetScheme(scheme, url_parse::Component(0, strlen(scheme))); in CheckReplaceScheme() 194 url_util::DecodeURLEscapeSequences(input, strlen(input), &output); in TEST() [all …]
|
/external/chromium/base/debug/ |
D | trace_event_win_unittest.cc | 215 strlen(kName), in TEST_F() 219 strlen(kExtra)); in TEST_F() 223 kName, strlen(kName), in TEST_F() 225 kExtra, strlen(kExtra)); in TEST_F() 235 kName, strlen(kName), in TEST_F() 237 kExtra, strlen(kExtra)); in TEST_F() 247 kName, strlen(kName), in TEST_F() 249 kExtra, strlen(kExtra)); in TEST_F() 291 kName, strlen(kName), in TEST_F() 293 kExtra, strlen(kExtra)); in TEST_F() [all …]
|
/external/dbus/tools/ |
D | dbus-launch-x11.c | 59 plen = strlen (prefix); in remove_prefix() 63 memmove (s, s + plen, strlen (s) - plen + 1); in remove_prefix() 154 result = malloc (strlen (home) + strlen (prefix) + strlen (machine) + in get_session_file() 155 strlen (display) + 2); in get_session_file() 183 dir = malloc (strlen (home) + strlen (DBUS_DIR) + strlen (DBUS_SESSION_BUS_DIR) + 3); in ensure_session_directory() 256 atom_name = malloc (strlen (machine) + strlen (user_name) + 2 + in init_x_atoms() 257 MAX (strlen (selection_prefix), in init_x_atoms() 258 MAX (strlen (address_prefix), in init_x_atoms() 259 strlen (pid_prefix)))); in init_x_atoms() 373 (unsigned char *)address, strlen (address)); in set_address_in_x11()
|
/external/llvm/test/Transforms/SimplifyLibCalls/ |
D | StrLen.ll | 3 ; RUN: not grep {call.*strlen} 11 declare i32 @strlen(i8*) 15 %hello_l = call i32 @strlen( i8* %hello_p ) ; <i32> [#uses=1] 21 %null_l = call i32 @strlen( i8* %null_p ) ; <i32> [#uses=1] 27 %null_hello_l = call i32 @strlen( i8* %null_hello_p ) ; <i32> [#uses=1] 33 %hello_l = call i32 @strlen( i8* %hello_p ) ; <i32> [#uses=1] 40 %null_l = call i32 @strlen( i8* %null_p ) ; <i32> [#uses=1] 47 %hello_l = call i32 @strlen( i8* %hello_p ) ; <i32> [#uses=1] 54 %null_l = call i32 @strlen( i8* %null_p ) ; <i32> [#uses=1] 60 %len = tail call i32 @strlen(i8* @nullstring) nounwind
|
/external/valgrind/main/callgrind/ |
D | command.c | 70 size = VG_(strlen)(dir) + VG_(strlen)(DEFAULT_COMMANDNAME) +10; in setup_control() 85 size = VG_(strlen)(dir) + VG_(strlen)(DEFAULT_RESULTNAME) +10; in setup_control() 101 VG_(strlen)(tmpdir) + in setup_control() 102 VG_(strlen)(DEFAULT_INFONAME) + 10); in setup_control() 137 VG_(write)(fd, (void*)buf, VG_(strlen)(buf)); in setup_control() 199 VG_(write)(fd, (void*)buf, VG_(strlen)(buf)); in dump_info() 203 VG_(write)(fd, (void*)buf, VG_(strlen)(buf)); in dump_info() 207 VG_(write)(fd, (void*)buf, VG_(strlen)(buf)); in dump_info() 299 VG_(write)(fd, (void*)buf, VG_(strlen)(buf)); in dump_state() 304 VG_(write)(fd, (void*)buf, VG_(strlen)(buf)); in dump_state() [all …]
|
/external/bluetooth/glib/gio/xdgmime/ |
D | xdgmime.c | 144 file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1); in xdg_mime_init_from_directory() 164 file_name = malloc (strlen (directory) + strlen ("/mime/globs2") + 1); in xdg_mime_init_from_directory() 174 file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1); in xdg_mime_init_from_directory() 187 file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1); in xdg_mime_init_from_directory() 199 file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1); in xdg_mime_init_from_directory() 204 file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1); in xdg_mime_init_from_directory() 209 file_name = malloc (strlen (directory) + strlen ("/mime/icons") + 1); in xdg_mime_init_from_directory() 214 file_name = malloc (strlen (directory) + strlen ("/mime/generic-icons") + 1); in xdg_mime_init_from_directory() 247 guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1); in xdg_run_command_on_dirs() 349 file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1); in xdg_check_dir() [all …]
|
/external/bison/src/ |
D | files.c | 92 size_t len = strlen (str1) + strlen (str2); in concat2() 145 char *out = xmalloc (strlen (in) + 1); in tr() 249 (strlen (spec_outfile) - (ext ? strlen (ext) : 0))); in compute_file_name_parts() 254 (strlen (spec_outfile) in compute_file_name_parts() 255 - (tab ? strlen (tab) : (ext ? strlen (ext) : 0)))); in compute_file_name_parts() 282 xstrndup (base, (strlen (base) - (ext ? strlen (ext) : 0))); in compute_file_name_parts()
|
/external/valgrind/main/ |
D | glibc-2.3.supp | 33 strlen/__GI__dl_open/dlopen_doit 35 fun:strlen 40 strlen/_dl_signal_cerror/_dl_lookup_symbol_internal/do_dlsym 47 strlen/*dl_map_object*(Cond) 49 fun:strlen 54 strlen/*dl_open_worker*(Cond) 56 fun:strlen 60 strlen/_dl_sym/dlsym_doit 62 fun:strlen 80 strlen/decompose_rpath/_dl_map_object [all …]
|
/external/chromium/net/websockets/ |
D | websocket_handshake_handler_unittest.cc | 49 strlen(kHandshakeRequestMessage))); in TEST() 73 strlen(kHandshakeRequestMessage))); in TEST() 110 EXPECT_EQ(strlen(kHandshakeResponseMessage), in TEST() 112 strlen(kHandshakeResponseMessage))); in TEST() 135 EXPECT_EQ(strlen(kHandshakeResponseMessage), in TEST() 137 strlen(kHandshakeResponseMessage))); in TEST() 163 EXPECT_EQ(strlen(kBadMessage), in TEST() 164 handler.ParseRawResponse(kBadMessage, strlen(kBadMessage))); in TEST() 173 EXPECT_EQ(strlen(kBadMessage), in TEST() 174 handler.ParseRawResponse(kBadMessage, strlen(kBadMessage))); in TEST() [all …]
|
/external/oprofile/libpopt/ |
D | popthelp.c | 162 strcpy(le, defstr); le += strlen(le); in singleOptionDefaultValue() 187 strcpy(le, "null"); le += strlen(le); in singleOptionDefaultValue() 191 strncpy(le, s, slen); le[slen] = '\0'; le += strlen(le); in singleOptionDefaultValue() 192 if (slen < strlen(s)) { in singleOptionDefaultValue() 193 strcpy(le, "..."); le += strlen(le); in singleOptionDefaultValue() 235 if (opt->longName) nb += strlen(opt->longName); in singleOptionHelp() 236 if (argDescrip) nb += strlen(argDescrip); in singleOptionHelp() 257 char * le = left + strlen(left); in singleOptionHelp() 267 char * t = malloc((help ? strlen(help) : 0) + in singleOptionHelp() 268 strlen(defs) + sizeof(" ")); in singleOptionHelp() [all …]
|
/external/netperf/ |
D | netserver.c | 179 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); in open_debug_file() 677 snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -v %d", verbosity); in set_up_server() 680 snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -d"); in set_up_server() 682 …snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -I %x", (int)(UINT_PTR)se… in set_up_server() 683 …snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -i %x", (int)(UINT_PTR)se… in set_up_server() 684 …snprintf(&cmdline[strlen(cmdline)], sizeof(cmdline) - strlen(cmdline), " -i %x", (int)(UINT_PTR)wh… in set_up_server() 814 program = (char *)malloc(strlen(argv[0]) + 1); in main() 816 printf("malloc(%d) failed!\n", strlen(argv[0]) + 1); in main() 921 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); in main() 930 snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%x", getpid()); in main()
|
/external/oprofile/opcontrol/ |
D | opcontrol.cpp | 437 for (i = 0; i < strlen(event_name); i++) { in process_event() 491 write(fd, content, strlen(content)); in echo_dev() 547 if (strlen(dirent->d_name) >= 4 && memcmp(dirent->d_name, "cpu", 3) == 0) { in do_status() 730 if (strlen(callgraph)) { in main() 785 snprintf(command + strlen(command), sizeof(command) - strlen(command), in main() 788 snprintf(command + strlen(command), sizeof(command) - strlen(command), ","); in main() 793 snprintf(command + strlen(command), sizeof(command) - strlen(command), in main() 823 snprintf(command + strlen(command), sizeof(command) - strlen(command), in main() 827 snprintf(command + strlen(command), sizeof(command) - strlen(command), in main() 830 snprintf(command + strlen(command), sizeof(command) - strlen(command), in main() [all …]
|
/external/dropbear/ |
D | progressmeter.c | 168 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 172 format_size(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 177 format_rate(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 203 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter() 206 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
D | test_ms_funcs.c | 65 username, strlen(username), in main() 72 nt_password_hash(password, strlen(password), buf); in main() 79 username, strlen(username), in main() 80 password, strlen(password), in main() 93 generate_authenticator_response(password, strlen(password), in main() 95 username, strlen(username), in main()
|