Home
last modified time | relevance | path

Searched refs:strncasecmp (Results 1 – 25 of 120) sorted by relevance

12345

/external/clang/test/Analysis/
Dstring.c1019 #define strncasecmp BUILTIN(strncasecmp) macro
1020 int strncasecmp(const char *s1, const char *s2, size_t n);
1023 if (strncasecmp("abc", "Abc", 3) != 0) in strncasecmp_constant0()
1029 if (strncasecmp(x, "Abc", 3) != 0) in strncasecmp_constant_and_var_0()
1035 if (strncasecmp("Abc", x, 3) != 0) in strncasecmp_constant_and_var_1()
1042 if (strncasecmp(x, y, 3) != 0) in strncasecmp_0()
1049 if (strncasecmp(x, y, 3) != 1) in strncasecmp_1()
1056 if (strncasecmp(x, y, 3) != -1) in strncasecmp_2()
1063strncasecmp(x, y, 3); // expected-warning{{Null pointer argument in call to string comparison func… in strncasecmp_null_0()
1069strncasecmp(x, y, 3); // expected-warning{{Null pointer argument in call to string comparison func… in strncasecmp_null_1()
[all …]
/external/iptables/extensions/
Dlibxt_state.c33 if (strncasecmp(state, "INVALID", len) == 0) in state_parse_state()
35 else if (strncasecmp(state, "NEW", len) == 0) in state_parse_state()
37 else if (strncasecmp(state, "ESTABLISHED", len) == 0) in state_parse_state()
39 else if (strncasecmp(state, "RELATED", len) == 0) in state_parse_state()
41 else if (strncasecmp(state, "UNTRACKED", len) == 0) in state_parse_state()
Dlibxt_conntrack.c148 if (strncasecmp(state, "INVALID", len) == 0) in parse_state()
150 else if (strncasecmp(state, "NEW", len) == 0) in parse_state()
152 else if (strncasecmp(state, "ESTABLISHED", len) == 0) in parse_state()
154 else if (strncasecmp(state, "RELATED", len) == 0) in parse_state()
156 else if (strncasecmp(state, "UNTRACKED", len) == 0) in parse_state()
158 else if (strncasecmp(state, "SNAT", len) == 0) in parse_state()
160 else if (strncasecmp(state, "DNAT", len) == 0) in parse_state()
189 if (strncasecmp(state, "INVALID", z) == 0) in conntrack_ps_state()
191 else if (strncasecmp(state, "NEW", z) == 0) in conntrack_ps_state()
193 else if (strncasecmp(state, "ESTABLISHED", z) == 0) in conntrack_ps_state()
[all …]
Dlibipt_REJECT.c101 if (strncasecmp(reject_table[i].name, in REJECT_parse()
103 strncasecmp(reject_table[i].alias, in REJECT_parse()
109 if (strncasecmp("echo-reply", cb->arg, strlen(cb->arg)) == 0 || in REJECT_parse()
110 strncasecmp("echoreply", cb->arg, strlen(cb->arg)) == 0) in REJECT_parse()
Dlibxt_limit.c52 if (strncasecmp(delim+1, "second", strlen(delim+1)) == 0) in parse_rate()
54 else if (strncasecmp(delim+1, "minute", strlen(delim+1)) == 0) in parse_rate()
56 else if (strncasecmp(delim+1, "hour", strlen(delim+1)) == 0) in parse_rate()
58 else if (strncasecmp(delim+1, "day", strlen(delim+1)) == 0) in parse_rate()
Dlibip6t_REJECT.c86 if (strncasecmp(reject_table[i].name, in REJECT_parse()
88 strncasecmp(reject_table[i].alias, in REJECT_parse()
Ddscp_helper.c55 if (!strncasecmp(name, ds_classes[i].name, in class_to_dscp()
/external/openssh/
Dauth-options.c108 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
114 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
121 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
128 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
135 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
142 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
149 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
180 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
213 strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
249 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
[all …]
/external/openssh/openbsd-compat/
Dstrptime.c176 if (strncasecmp(_ctloc(day[i]), bp, len) == 0) in _strptime()
181 if (strncasecmp(_ctloc(abday[i]), bp, len) == 0) in _strptime()
200 if (strncasecmp(_ctloc(mon[i]), bp, len) == 0) in _strptime()
205 if (strncasecmp(_ctloc(abmon[i]), bp, len) == 0) in _strptime()
276 if (strncasecmp(_ctloc(am_pm[0]), bp, len) == 0) { in _strptime()
287 if (strncasecmp(_ctloc(am_pm[1]), bp, len) == 0) { in _strptime()
/external/webkit/Source/WebKit/mac/Misc/
DWebNSDataExtras.m141 if (strncasecmp(hit, "<channel", strlen("<channel")) == 0) {
144 } else if (strncasecmp(hit, "<rdf", strlen("<rdf")) == 0) {
146 } else if (strncasecmp(hit, "<rss", strlen("<rss")) == 0) {
148 } else if (strncasecmp(hit, "<feed", strlen("<feed")) == 0) {
150 …} else if (strncasecmp(hit, "<?", strlen("<?")) != 0 && strncasecmp(hit, "<!", strlen("<!")) != 0)…
187 if (strncasecmp(hit, "<html>", strlen("<html>")) == 0 ||
188 strncasecmp(hit, "<a ", strlen("<a ")) == 0 ||
189 strncasecmp(hit, "<script", strlen("<script")) == 0 ||
190 strncasecmp(hit, "<title>", strlen("<title>")) == 0) {
222 if (strncasecmp(hit, "text/html", TEXT_HTML_LENGTH) == 0) {
[all …]
/external/libsepol/src/
Dgenusers.c71 if (strncasecmp(p, "user", 4))
120 if (strncasecmp(p, "roles", 5))
183 if (strncasecmp(p, "level", 5))
193 while (*p && strncasecmp(p, "range", 5))
230 if (strncasecmp(p, "range", 5))
/external/valgrind/main/memcheck/tests/
Dstr_tester.c1354 check(strncasecmp("a", "a", 5) == 0, 1); in test_strncasecmp()
1355 check(strncasecmp("a", "A", 5) == 0, 2); in test_strncasecmp()
1356 check(strncasecmp("A", "a", 5) == 0, 3); in test_strncasecmp()
1357 check(strncasecmp("a", "b", 5) < 0, 4); in test_strncasecmp()
1358 check(strncasecmp("c", "b", 5) > 0, 5); in test_strncasecmp()
1359 check(strncasecmp("abc", "AbC", 5) == 0, 6); in test_strncasecmp()
1360 check(strncasecmp("0123456789", "0123456789", 10) == 0, 7); in test_strncasecmp()
1361 check(strncasecmp("", "0123456789", 10) < 0, 8); in test_strncasecmp()
1362 check(strncasecmp("AbC", "", 5) > 0, 9); in test_strncasecmp()
1363 check(strncasecmp("AbC", "A", 5) > 0, 10); in test_strncasecmp()
[all …]
/external/chromium/base/
Dstring_util_posix.h28 inline int strncasecmp(const char* string1, const char* string2, size_t count) { in strncasecmp() function
29 return ::strncasecmp(string1, string2, count); in strncasecmp()
/external/bluetooth/bluez/tools/
Davctrl.c86 if (!strncasecmp(argv[0], "discover", 4)) in dongle_csr()
88 else if (!strncasecmp(argv[0], "switch", 3)) in dongle_csr()
90 else if (!strncasecmp(argv[0], "dfu", 3)) in dongle_csr()
Dbccmd.c539 if (!strncasecmp(argv[1], "0x", 2)) in cmd_rttxdata1()
564 if (!strncasecmp(argv[1], "0x", 2)) in cmd_radiotest()
642 else if (!strncasecmp(optarg, "0x", 2)) in opt_pskey()
679 if (strncasecmp(argv[0], "0x", 2)) { in cmd_psget()
754 if (strncasecmp(argv[0], "0x", 2)) { in cmd_psset()
799 if (!strncasecmp(argv[0], "0x", 2)) in cmd_psset()
814 if (!strncasecmp(argv[0], "0x", 2)) in cmd_psset()
832 if (!strncasecmp(argv[0], "0x", 2)) in cmd_psset()
857 if (strncasecmp(argv[0], "0x", 2)) { in cmd_psclr()
/external/webkit/Source/JavaScriptCore/wtf/
DStringExtras.h91 inline int strncasecmp(const char* s1, const char* s2, size_t len) in strncasecmp() function
122 int strncasecmp(const char* s1, const char* s2, size_t len);
DStringExtras.cpp46 int strncasecmp(const char* s1, const char* s2, size_t len) in strncasecmp() function
/external/mdnsresponder/mDNSShared/
Ddnssd_clientlib.c41 #define strncasecmp _strnicmp macro
86 if (p <= e && *keylen <= x[0] && !strncasecmp(key, (char*)x+1, *keylen)) in InternalTXTRecordSearch()
119 …if (strncasecmp((regtype + len - 4), "_tcp", 4) && strncasecmp((regtype + len - 4), "_udp", 4)) re… in DNSServiceConstructFullName()
/external/linux-tools-perf/util/
Dcolor.c17 if (!strncasecmp(name, str, len) && !str[len]) in parse_color()
36 if (!strncasecmp(name, str, len) && !str[len]) in parse_attr()
56 if (!strncasecmp(value, "reset", len)) { in color_parse_mem()
/external/clang/test/SemaCXX/
Dwarn-memset-bad-sizeof.cpp125 extern "C" int strncasecmp(const char *s1, const char *s2, unsigned n);
136 strncasecmp(FOO, BAR, sizeof(FOO)); // \ in strcpy_and_friends()
/external/e2fsprogs/include/nonunix/
Dconfig.h12 #define strncasecmp _strnicmp macro
/external/valgrind/main/coregrind/m_debuginfo/
Dreadmacho.c654 if (0 == VG_(strncasecmp)(name, "/usr/", 5) in is_systemish_library_name()
655 || 0 == VG_(strncasecmp)(name, "/bin/", 5) in is_systemish_library_name()
656 || 0 == VG_(strncasecmp)(name, "/sbin/", 6) in is_systemish_library_name()
657 || 0 == VG_(strncasecmp)(name, "/opt/", 5) in is_systemish_library_name()
658 || 0 == VG_(strncasecmp)(name, "/sw/", 4) in is_systemish_library_name()
659 || 0 == VG_(strncasecmp)(name, "/System/", 8) in is_systemish_library_name()
660 || 0 == VG_(strncasecmp)(name, "/Library/", 9) in is_systemish_library_name()
661 || 0 == VG_(strncasecmp)(name, "/Applications/", 14)) { in is_systemish_library_name()
/external/openssl/crypto/engine/
Dtb_asnmth.c192 !strncasecmp(ameth->pem_str, str, len)) in ENGINE_get_pkey_asn1_meth_str()
218 !strncasecmp(ameth->pem_str, lk->str, lk->len)) in look_str_cb()
/external/e2fsprogs/intl/
Dos2compat.h40 #define strncasecmp strnicmp macro
/external/chromium/net/base/
Dmime_sniffer.cc253 match = (base::strncasecmp(magic_entry->magic, content, len) == 0); in MatchMagicNumber()
382 if (base::strncasecmp(pos, "<?xml", sizeof("<?xml")-1) == 0) { in SniffXML()
386 } else if (base::strncasecmp(pos, "<!DOCTYPE", in SniffXML()

12345