Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 568) sorted by relevance

12345678910>>...23

/external/openssl/crypto/engine/
Deng_fat.c106 if (!strncmp(alg, "ALL", len)) in int_def_cb()
108 else if (!strncmp(alg, "RSA", len)) in int_def_cb()
110 else if (!strncmp(alg, "DSA", len)) in int_def_cb()
112 else if (!strncmp(alg, "ECDH", len)) in int_def_cb()
114 else if (!strncmp(alg, "ECDSA", len)) in int_def_cb()
116 else if (!strncmp(alg, "DH", len)) in int_def_cb()
118 else if (!strncmp(alg, "RAND", len)) in int_def_cb()
120 else if (!strncmp(alg, "CIPHERS", len)) in int_def_cb()
122 else if (!strncmp(alg, "DIGESTS", len)) in int_def_cb()
124 else if (!strncmp(alg, "PKEY", len)) in int_def_cb()
[all …]
/external/libpcap/
Dpcap-snoop.c243 if (strncmp("et", device, 2) == 0 || /* Challenge 10 Mbit */ in pcap_open_live()
244 strncmp("ec", device, 2) == 0 || /* Indigo/Indy 10 Mbit, in pcap_open_live()
246 strncmp("ef", device, 2) == 0 || /* O200/2000 10/100 Mbit */ in pcap_open_live()
247 strncmp("eg", device, 2) == 0 || /* Octane/O2xxx/O3xxx Gigabit */ in pcap_open_live()
248 strncmp("gfe", device, 3) == 0 || /* GIO 100 Mbit */ in pcap_open_live()
249 strncmp("fxp", device, 3) == 0 || /* Challenge VME Enet */ in pcap_open_live()
250 strncmp("ep", device, 2) == 0 || /* Challenge 8x10 Mbit EPLEX */ in pcap_open_live()
251 strncmp("vfe", device, 3) == 0 || /* Challenge VME 100Mbit */ in pcap_open_live()
252 strncmp("fa", device, 2) == 0 || in pcap_open_live()
253 strncmp("qaa", device, 3) == 0 || in pcap_open_live()
[all …]
/external/e2fsprogs/misc/
Dbase_device.c54 if (strncmp(cp, "/dev/", 5) != 0) in base_device()
59 if (strncmp(cp, "dsk/", 4) == 0) in base_device()
72 if (strncmp(cp, "rd/", 3) == 0) { in base_device()
96 if (strncmp(cp, "ide/", 4) == 0) in base_device()
98 if (strncmp(cp, "scsi/", 5) == 0) in base_device()
110 if (strncmp(cp, *hier, len) != 0) in base_device()
126 if (strncmp(cp, "discs/", 6) == 0) in base_device()
128 else if (strncmp(cp, "disks/", 6) == 0) in base_device()
132 if (strncmp(cp, disk, 4) != 0) in base_device()
/external/libmtp/examples/
Dconnect.c94 …if ((strncmp(basename(argv[0]),"mtp-delfile",11) == 0) || (strncmp(basename(argv[0]),"delfile",7) … in main()
96 …} else if ((strncmp(basename(argv[0]),"mtp-getfile",13) == 0) || (strncmp(basename(argv[0]),"getfi… in main()
98 …} else if ((strncmp(basename(argv[0]),"mtp-newfolder",13) == 0) || (strncmp(basename(argv[0]),"new… in main()
100 …} else if ((strncmp(basename(argv[0]),"mtp-sendfile",11) == 0) || (strncmp(basename(argv[0]),"send… in main()
102 …} else if ((strncmp(basename(argv[0]),"mtp-sendtr",10) == 0) || (strncmp(basename(argv[0]),"sendtr… in main()
/external/skia/src/ports/
DFontHostConfiguration_android.cpp96 if (strncmp(attributeName, "variant", nameLength) == 0) { in fontFileElementHandler()
97 if (strncmp(attributeValue, "elegant", valueLength) == 0) { in fontFileElementHandler()
99 } else if (strncmp(attributeValue, "compact", valueLength) == 0) { in fontFileElementHandler()
102 } else if (strncmp(attributeName, "lang", nameLength) == 0) { in fontFileElementHandler()
121 if (strncmp(tag, "family", len)== 0) { in startElementHandler()
135 } else if (len == 7 && strncmp(tag, "nameset", len) == 0) { in startElementHandler()
137 } else if (len == 7 && strncmp(tag, "fileset", len) == 0) { in startElementHandler()
139 } else if (strncmp(tag, "name", len) == 0 && familyData->currentTag == NAMESET_TAG) { in startElementHandler()
142 } else if (strncmp(tag, "file", len) == 0 && familyData->currentTag == FILESET_TAG) { in startElementHandler()
155 if (strncmp(tag, "family", len)== 0) { in endElementHandler()
[all …]
/external/llvm/test/Transforms/SimplifyLibCalls/
DStrNCmp.ll11 declare i32 @strncmp(i8*, i8*, i32)
15 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([1 x i8]* @null, i32 0, i32 0), i8* %str, i…
26 …%temp1 = call i32 @strncmp(i8* %str, i8* getelementptr inbounds ([1 x i8]* @null, i32 0, i32 0), i…
34 ; strncmp(x, y, n) -> cnst
36 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8]* @hell, i32 0, i32 0), i8* getelem…
42 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8]* @hell, i32 0, i32 0), i8* getelem…
48 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8]* @hell, i32 0, i32 0), i8* getelem…
54 ; strncmp(x,y,1) -> memcmp(x,y,1)
56 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 1)
64 ; strncmp(x,y,0) -> 0
[all …]
/external/skia/src/svg/
DSkSVGImage.cpp37 SkASSERT(strncmp(data, "data:image/", 11) == 0); in translateImage()
39 SkASSERT(strncmp(data, "png;", 4) == 0 || strncmp(data, "jpeg;", 5) == 0); in translateImage()
41 SkASSERT(strncmp(data, ";base64,", 8) == 0); in translateImage()
DSkSVGPaintState.cpp149 … if (current.f_fill.equals("none") == false && strncmp(current.f_fill.c_str(), "url(#", 5) != 0) { in flush()
156 …if (current.f_stroke.equals("none") == false && strncmp(current.f_stroke.c_str(), "url(#", 5) != 0… in flush()
205 SkASSERT(strncmp(str, "matrix(", 7) == 0); in setSave()
313 if (strncmp(attrValue, "url(", 4) == 0) { in writeChangedAttributes()
320 if (strncmp(id.c_str(), "mask", 4) != 0) { in writeChangedAttributes()
400 … if (strncmp(lastAttr->c_str(), "url(", 4) == 0 && strncmp(attrValue, "url(", 4) != 0) { in writeChangedElements()
407 bool urlRef = strncmp(attrValue, "url(", 4) == 0; in writeChangedElements()
/external/clang/test/Analysis/
Dstring.c774 #define strncmp BUILTIN(strncmp) macro
775 int strncmp(const char *s1, const char *s2, size_t n);
778 clang_analyzer_eval(strncmp("123", "123", 3) == 0); // expected-warning{{TRUE}} in strncmp_constant0()
783 clang_analyzer_eval(strncmp(x, "123", 3) == 0); // expected-warning{{TRUE}} in strncmp_constant_and_var_0()
788 clang_analyzer_eval(strncmp("123", x, 3) == 0); // expected-warning{{TRUE}} in strncmp_constant_and_var_1()
794 clang_analyzer_eval(strncmp(x, y, 3) == 0); // expected-warning{{TRUE}} in strncmp_0()
800 clang_analyzer_eval(strncmp(x, y, 3) == 1); // expected-warning{{TRUE}} in strncmp_1()
806 clang_analyzer_eval(strncmp(x, y, 3) == -1); // expected-warning{{TRUE}} in strncmp_2()
812strncmp(x, y, 3); // expected-warning{{Null pointer argument in call to string comparison function… in strncmp_null_0()
818strncmp(x, y, 3); // expected-warning{{Null pointer argument in call to string comparison function… in strncmp_null_1()
[all …]
/external/webkit/Tools/android/webkitmerge/
Dwebkitmerge.cpp257 bool result = strncmp(*linePtr, text, length) == 0; in skipText()
552 strncmp(&foundInWebCore[2], "ForwardingHeaders/", 18) == 0) { in Find()
555 strncmp(&foundInJavaScriptCore[2], "API/tests/", 10) == 0) { in Find()
584 if (strncmp(start, "# LOCAL_SRC_FILES_EXCLUDED := \\", 30) == 0) in GetMakeAndExceptions()
595 while (strncmp(start, "#\t", 2) == 0) { in GetMakeAndExceptions()
612 if (strncmp(start, "# LOCAL_GENERATED_FILES_EXCLUDED := \\", 37) == 0 || in GetMakeAndExceptions()
613 strncmp(start, "# LOCAL_DIR_WILDCARD_EXCLUDED := \\", 34) == 0) in GetMakeAndExceptions()
617 if (strncmp(start, "# LOCAL_GENERATED_FILES_EXCLUDED := \\", 37) == 0) { in GetMakeAndExceptions()
620 while (strncmp(start, "#\t", 2) == 0) { in GetMakeAndExceptions()
639 if (strncmp(start, "# LOCAL_DIR_WILDCARD_EXCLUDED := \\", 34) == 0) in GetMakeAndExceptions()
[all …]
/external/chromium/googleurl/src/
Durl_canon_stdurl.cc126 if (!strncmp(scheme, "http", scheme_len)) in DefaultPortForScheme()
130 if (!strncmp(scheme, "https", scheme_len)) in DefaultPortForScheme()
134 if (!strncmp(scheme, "ftp", scheme_len)) in DefaultPortForScheme()
136 else if (!strncmp(scheme, "wss", scheme_len)) in DefaultPortForScheme()
140 if (!strncmp(scheme, "gopher", scheme_len)) in DefaultPortForScheme()
144 if (!strncmp(scheme, "ws", scheme_len)) in DefaultPortForScheme()
/external/linux-tools-perf/
Dbuiltin-kvm.c134 if (!strncmp(argv[0], "rec", 3)) in cmd_kvm()
136 else if (!strncmp(argv[0], "rep", 3)) in cmd_kvm()
138 else if (!strncmp(argv[0], "diff", 4)) in cmd_kvm()
140 else if (!strncmp(argv[0], "top", 3)) in cmd_kvm()
142 else if (!strncmp(argv[0], "buildid-list", 12)) in cmd_kvm()
/external/stlport/test/unit/cppunit/
Dtest_main.cpp84 if (!strncmp(argv[i], "-t=", 3)) { in main()
88 else if (!strncmp(argv[i], "-f=", 3)) { in main()
92 else if (!strncmp(argv[i], "-x=", 3)) { in main()
96 else if (Timer::supported() && !strncmp(argv[i], "-m", 2)) { in main()
/external/sqlite/dist/
Dshell.c1270 }else if( strncmp(zTable, "sqlite_", 7)==0 ){ in dump_callback()
1272 }else if( strncmp(zSql, "CREATE VIRTUAL TABLE", 20)==0 ){ in dump_callback()
1582 if( c=='b' && n>=3 && strncmp(azArg[0], "backup", n)==0 && nArg>1 && nArg<4){ in do_meta_command()
1618 if( c=='b' && n>=3 && strncmp(azArg[0], "bail", n)==0 && nArg>1 && nArg<3 ){ in do_meta_command()
1622 if( c=='d' && n>1 && strncmp(azArg[0], "databases", n)==0 && nArg==1 ){ in do_meta_command()
1641 if( c=='d' && strncmp(azArg[0], "dump", n)==0 && nArg<3 ){ in do_meta_command()
1690 if( c=='e' && strncmp(azArg[0], "echo", n)==0 && nArg>1 && nArg<3 ){ in do_meta_command()
1694 if( c=='e' && strncmp(azArg[0], "exit", n)==0 && nArg==1 ){ in do_meta_command()
1698 if( c=='e' && strncmp(azArg[0], "explain", n)==0 && nArg<3 ){ in do_meta_command()
1733 if( c=='h' && (strncmp(azArg[0], "header", n)==0 || in do_meta_command()
[all …]
/external/sqlite/dist/orig/
Dshell.c1265 }else if( strncmp(zTable, "sqlite_", 7)==0 ){ in dump_callback()
1267 }else if( strncmp(zSql, "CREATE VIRTUAL TABLE", 20)==0 ){ in dump_callback()
1563 if( c=='b' && n>=3 && strncmp(azArg[0], "backup", n)==0 && nArg>1 && nArg<4){ in do_meta_command()
1599 if( c=='b' && n>=3 && strncmp(azArg[0], "bail", n)==0 && nArg>1 && nArg<3 ){ in do_meta_command()
1603 if( c=='d' && n>1 && strncmp(azArg[0], "databases", n)==0 && nArg==1 ){ in do_meta_command()
1622 if( c=='d' && strncmp(azArg[0], "dump", n)==0 && nArg<3 ){ in do_meta_command()
1671 if( c=='e' && strncmp(azArg[0], "echo", n)==0 && nArg>1 && nArg<3 ){ in do_meta_command()
1675 if( c=='e' && strncmp(azArg[0], "exit", n)==0 && nArg==1 ){ in do_meta_command()
1679 if( c=='e' && strncmp(azArg[0], "explain", n)==0 && nArg<3 ){ in do_meta_command()
1714 if( c=='h' && (strncmp(azArg[0], "header", n)==0 || in do_meta_command()
[all …]
/external/iptables/extensions/
Dlibxt_set.h105 if (strncmp(ptr, "src", 3) == 0) in parse_dirs_v0()
107 else if (strncmp(ptr, "dst", 3) == 0) in parse_dirs_v0()
131 if (strncmp(ptr, "src", 3) == 0) in parse_dirs()
133 else if (strncmp(ptr, "dst", 3) != 0) in parse_dirs()
/external/dropbear/
Dsvr-auth.c117 && (strncmp(servicename, SSH_SERVICE_CONNECTION, in recv_msg_userauth_request()
129 strncmp(methodname, AUTH_METHOD_NONE, in recv_msg_userauth_request()
149 strncmp(methodname, AUTH_METHOD_PASSWORD, in recv_msg_userauth_request()
162 strncmp(methodname, AUTH_METHOD_PASSWORD, in recv_msg_userauth_request()
173 strncmp(methodname, AUTH_METHOD_PUBKEY, in recv_msg_userauth_request()
Dsvr-service.c48 strncmp(SSH_SERVICE_USERAUTH, name, len) == 0) { in recv_msg_service_request()
58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) { in recv_msg_service_request()
Dcli-service.c61 && strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) { in recv_msg_service_accept()
72 && strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) { in recv_msg_service_accept()
/external/ppp/pppd/plugins/rp-pppoe/
Dplugin.c285 if (strlen(cmd) > 4 && !strncmp(cmd, "nic-", 4)) { in PPPoEDevnameHook()
289 || (strncmp(cmd, "eth", 3) && strncmp(cmd, "nas", 3) in PPPoEDevnameHook()
290 && strncmp(cmd, "tap", 3) && strncmp(cmd, "br", 2))) { in PPPoEDevnameHook()
/external/oprofile/daemon/liblegacy/
Dopd_kernel.c185 if (strncmp("__insmod_", line + 9, 9)) { in opd_get_module_info()
192 while ((*cp2) && !!strncmp("_S", cp2+1, 2) && !!strncmp("_O", cp2+1, 2)) in opd_get_module_info()
216 while ((*cp3) && !!strncmp("_M", cp3+1, 2)) in opd_get_module_info()
237 if (strncmp(".text_L", cp2, 7)) { in opd_get_module_info()
/external/openssl/crypto/pem/
Dpem_lib.c492 if (strncmp(header,"Proc-Type: ",11) != 0) in PEM_get_EVP_CIPHER_INFO()
497 if (strncmp(header,"ENCRYPTED",9) != 0) in PEM_get_EVP_CIPHER_INFO()
504 if (strncmp(header,"DEK-Info: ",10) != 0) in PEM_get_EVP_CIPHER_INFO()
703 if (strncmp(buf,"-----BEGIN ",11) == 0) in PEM_read_bio()
707 if (strncmp(&(buf[11+i-6]),"-----\n",6) != 0) in PEM_read_bio()
734 if (strncmp(buf,"-----END ",9) == 0) in PEM_read_bio()
759 if (strncmp(buf,"-----END ",9) == 0) in PEM_read_bio()
791 if ( (strncmp(buf,"-----END ",9) != 0) || in PEM_read_bio()
792 (strncmp(nameB->data,&(buf[9]),i) != 0) || in PEM_read_bio()
793 (strncmp(&(buf[9+i]),"-----\n",6) != 0)) in PEM_read_bio()
/external/llvm/lib/Target/
DTargetInstrInfo.cpp75 if (*Str == '\n' || strncmp(Str, MAI.getSeparatorString(), in getInlineAsmLength()
82 if (atInsnStart && strncmp(Str, MAI.getCommentString(), in getInlineAsmLength()
/external/webkit/Source/WebKit/android/wds/client/
DAdbConnection.cpp158 if ((res == ADB_RESPONSE_LENGTH) && (strncmp(buf, "OKAY", res) == 0)) { in checkOkayResponse()
161 } else if (strncmp(buf, "FAIL", ADB_RESPONSE_LENGTH) == 0) { in checkOkayResponse()
225 if (strncmp(serial, emulator, sizeof(emulator) - 1) == 0) in getDeviceList()
/external/valgrind/main/coregrind/
Dlauncher-darwin.c238 if (0 == strncmp(argv[i], "--tool=", 7)) in main()
240 if (0 == strncmp(argv[i], "--arch=", 7)) in main()
303 if (0 == strncmp(VG_PLATFORM, valid_archs[i].valgrind_name, in main()
393 if (0 == strncmp(envp[i], "DYLD_", 5)) { in main()
401 if (0 == strncmp(argv[i], "--arch=", 7)) { in main()

12345678910>>...23