Home
last modified time | relevance | path

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

123456

/external/lldb/source/
Dlldb-log.cpp121 … else if (0 == ::strncasecmp(arg, "break", 5)) flag_bits &= ~LIBLLDB_LOG_BREAKPOINTS; in DisableLog()
125 else if (0 == ::strncasecmp(arg, "event", 5)) flag_bits &= ~LIBLLDB_LOG_EVENTS; in DisableLog()
126 … else if (0 == ::strncasecmp(arg, "expr", 4)) flag_bits &= ~LIBLLDB_LOG_EXPRESSIONS; in DisableLog()
127 else if (0 == ::strncasecmp(arg, "object", 6)) flag_bits &= ~LIBLLDB_LOG_OBJECT; in DisableLog()
135 … else if (0 == ::strncasecmp(arg, "watch", 5)) flag_bits &= ~LIBLLDB_LOG_WATCHPOINTS; in DisableLog()
136 else if (0 == ::strncasecmp(arg, "temp", 4)) flag_bits &= ~LIBLLDB_LOG_TEMPORARY; in DisableLog()
137 … else if (0 == ::strncasecmp(arg, "comm", 4)) flag_bits &= ~LIBLLDB_LOG_COMMUNICATION; in DisableLog()
138 … else if (0 == ::strncasecmp(arg, "conn", 4)) flag_bits &= ~LIBLLDB_LOG_CONNECTION; in DisableLog()
139 else if (0 == ::strncasecmp(arg, "host", 4)) flag_bits &= ~LIBLLDB_LOG_HOST; in DisableLog()
140 else if (0 == ::strncasecmp(arg, "unwind", 6)) flag_bits &= ~LIBLLDB_LOG_UNWIND; in DisableLog()
[all …]
/external/curl/docs/examples/
Dchkspeed.c74 if(strncasecmp(*argv, "-", 1) == 0) { in main()
75 if(strncasecmp(*argv, "-H", 2) == 0) { in main()
81 else if(strncasecmp(*argv, "-V", 2) == 0) { in main()
86 else if(strncasecmp(*argv, "-A", 2) == 0) { in main()
89 else if(strncasecmp(*argv, "-X", 2) == 0) { in main()
92 else if(strncasecmp(*argv, "-T", 2) == 0) { in main()
95 else if(strncasecmp(*argv, "-M=", 3) == 0) { in main()
/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()
212 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
254 if (strncasecmp(opts, cp, strlen(cp)) == 0) { in auth_parse_options()
[all …]
/external/clang/test/Analysis/
Dstring.c939 #define strncasecmp BUILTIN(strncasecmp) macro
940 int strncasecmp(const char *s1, const char *s2, size_t n);
943 clang_analyzer_eval(strncasecmp("abc", "Abc", 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant0()
948 clang_analyzer_eval(strncasecmp(x, "Abc", 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant_and_var_0()
953 clang_analyzer_eval(strncasecmp("Abc", x, 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant_and_var_1()
959 clang_analyzer_eval(strncasecmp(x, y, 3) == 0); // expected-warning{{TRUE}} in strncasecmp_0()
965 clang_analyzer_eval(strncasecmp(x, y, 3) == 1); // expected-warning{{TRUE}} in strncasecmp_1()
971 clang_analyzer_eval(strncasecmp(x, y, 3) == -1); // expected-warning{{TRUE}} in strncasecmp_2()
977strncasecmp(x, y, 3); // expected-warning{{Null pointer argument in call to string comparison func… in strncasecmp_null_0()
983strncasecmp(x, y, 3); // expected-warning{{Null pointer argument in call to string comparison func… in strncasecmp_null_1()
[all …]
/external/lldb/source/Plugins/Process/MacOSX-Kernel/
DProcessKDPLog.cpp66 else if (::strncasecmp (arg, "break", 5) == 0 ) flag_bits &= ~KDP_LOG_BREAKPOINTS; in DisableLog()
67 else if (::strncasecmp (arg, "comm", 4) == 0 ) flag_bits &= ~KDP_LOG_COMM; in DisableLog()
77 else if (::strncasecmp (arg, "watch", 5) == 0 ) flag_bits &= ~KDP_LOG_WATCHPOINTS; in DisableLog()
122 else if (::strncasecmp (arg, "break", 5) == 0 ) flag_bits |= KDP_LOG_BREAKPOINTS; in EnableLog()
123 else if (::strncasecmp (arg, "comm", 4) == 0 ) flag_bits |= KDP_LOG_COMM; in EnableLog()
133 else if (::strncasecmp (arg, "watch", 5) == 0 ) flag_bits |= KDP_LOG_WATCHPOINTS; in EnableLog()
/external/lldb/source/Plugins/Process/gdb-remote/
DProcessGDBRemoteLog.cpp76 else if (::strncasecmp (arg, "break", 5) == 0 ) flag_bits &= ~GDBR_LOG_BREAKPOINTS; in DisableLog()
77 else if (::strncasecmp (arg, "comm", 4) == 0 ) flag_bits &= ~GDBR_LOG_COMM; in DisableLog()
87 else if (::strncasecmp (arg, "watch", 5) == 0 ) flag_bits &= ~GDBR_LOG_WATCHPOINTS; in DisableLog()
133 else if (::strncasecmp (arg, "break", 5) == 0 ) flag_bits |= GDBR_LOG_BREAKPOINTS; in EnableLog()
134 else if (::strncasecmp (arg, "comm", 4) == 0 ) flag_bits |= GDBR_LOG_COMM; in EnableLog()
144 else if (::strncasecmp (arg, "watch", 5) == 0 ) flag_bits |= GDBR_LOG_WATCHPOINTS; in EnableLog()
/external/iptables/extensions/
Dlibxt_conntrack.c191 if (strncasecmp(state, "INVALID", len) == 0) in parse_state()
193 else if (strncasecmp(state, "NEW", len) == 0) in parse_state()
195 else if (strncasecmp(state, "ESTABLISHED", len) == 0) in parse_state()
197 else if (strncasecmp(state, "RELATED", len) == 0) in parse_state()
199 else if (strncasecmp(state, "UNTRACKED", len) == 0) in parse_state()
201 else if (strncasecmp(state, "SNAT", len) == 0) in parse_state()
203 else if (strncasecmp(state, "DNAT", len) == 0) in parse_state()
232 if (strncasecmp(state, "INVALID", z) == 0) in conntrack_ps_state()
234 else if (strncasecmp(state, "NEW", z) == 0) in conntrack_ps_state()
236 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.c55 if (strncasecmp(delim+1, "second", strlen(delim+1)) == 0) in parse_rate()
57 else if (strncasecmp(delim+1, "minute", strlen(delim+1)) == 0) in parse_rate()
59 else if (strncasecmp(delim+1, "hour", strlen(delim+1)) == 0) in parse_rate()
61 else if (strncasecmp(delim+1, "day", strlen(delim+1)) == 0) in parse_rate()
Dlibxt_HMARK.c146 if (strncasecmp(type, "ct", len) == 0) { in hmark_parse()
149 } else if (strncasecmp(type, "src", len) == 0) { in hmark_parse()
153 } else if (strncasecmp(type, "dst", len) == 0) { in hmark_parse()
157 } else if (strncasecmp(type, "sport", len) == 0) { in hmark_parse()
162 } else if (strncasecmp(type, "dport", len) == 0) { in hmark_parse()
167 } else if (strncasecmp(type, "proto", len) == 0) { in hmark_parse()
171 } else if (strncasecmp(type, "spi", len) == 0) { in hmark_parse()
Dlibip6t_REJECT.c86 if (strncasecmp(reject_table[i].name, in REJECT_parse()
88 strncasecmp(reject_table[i].alias, in REJECT_parse()
/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/selinux/libselinux/src/
Dselinux_config.c101 if (!strncasecmp in selinux_getenforcemode()
107 if (!strncasecmp in selinux_getenforcemode()
114 if (!strncasecmp in selinux_getenforcemode()
176 if (!strncasecmp(buf_p, SELINUXTYPETAG, in init_selinux_config()
203 else if (strncasecmp(value, "true", sizeof("true") - 1)) in init_selinux_config()
205 else if (strncasecmp in init_selinux_config()
/external/selinux/libsepol/src/
Dgenusers.c71 if (strncasecmp(p, "user", 4))
130 if (strncasecmp(p, "roles", 5))
193 if (strncasecmp(p, "level", 5))
203 while (*p && strncasecmp(p, "range", 5))
240 if (strncasecmp(p, "range", 5))
/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc261 EXPECT_EQ(0, strncasecmp("a", "b", 0)); in TEST()
262 EXPECT_EQ(0, strncasecmp("abCD", "ABcd", 10)); in TEST()
263 EXPECT_EQ(0, strncasecmp("abCd", "ABcef", 3)); in TEST()
264 EXPECT_GT(0, strncasecmp("abcde", "ABCfa", 4)); in TEST()
265 EXPECT_GT(0, strncasecmp("a", "B", 5)); in TEST()
266 EXPECT_GT(0, strncasecmp("bc", "BCde", 4)); in TEST()
267 EXPECT_LT(0, strncasecmp("xyz", "xyy", 10)); in TEST()
268 EXPECT_LT(0, strncasecmp("Baa", "aaa", 1)); in TEST()
269 EXPECT_LT(0, strncasecmp("zyx", "", 2)); in TEST()
349 RunStrNCmpTest(&strncasecmp); in TEST()
/external/valgrind/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/lldb/source/Plugins/Process/POSIX/
DProcessPOSIXLog.cpp55 else if (::strncasecmp (arg, "break", 5) == 0 ) return POSIX_LOG_BREAKPOINTS; in GetFlagBits()
56 else if (::strncasecmp (arg, "comm", 4) == 0 ) return POSIX_LOG_COMM; in GetFlagBits()
68 else if (::strncasecmp (arg, "watch", 5) == 0 ) return POSIX_LOG_WATCHPOINTS; in GetFlagBits()
/external/xmlrpcpp/src/
DXmlRpcUtil.h18 # define strncasecmp _strnicmp macro
21 # define strncasecmp strnicmp macro
DXmlRpcServerConnection.cpp87 if ((ep - cp > 16) && (strncasecmp(cp, "Content-length: ", 16) == 0)) in readHeader()
89 else if ((ep - cp > 12) && (strncasecmp(cp, "Connection: ", 12) == 0)) in readHeader()
130 if (kp == 0 || strncasecmp(kp, "keep-alive", 10) != 0) in readHeader()
133 if (kp != 0 && strncasecmp(kp, "close", 5) == 0) in readHeader()
/external/libvncserver/libvncserver/
Dwebsockets.c319 } else if ((strncasecmp("host: ", line, min(llen,6))) == 0) { in webSocketsHandshake()
323 } else if ((strncasecmp("origin: ", line, min(llen,8))) == 0) { in webSocketsHandshake()
327 } else if ((strncasecmp("sec-websocket-key1: ", line, min(llen,20))) == 0) { in webSocketsHandshake()
331 } else if ((strncasecmp("sec-websocket-key2: ", line, min(llen,20))) == 0) { in webSocketsHandshake()
337 } else if ((strncasecmp("sec-websocket-protocol: ", line, min(llen,24))) == 0) { in webSocketsHandshake()
341 } else if ((strncasecmp("sec-websocket-origin: ", line, min(llen,22))) == 0) { in webSocketsHandshake()
344 } else if ((strncasecmp("sec-websocket-key: ", line, min(llen,19))) == 0) { in webSocketsHandshake()
347 } else if ((strncasecmp("sec-websocket-version: ", line, min(llen,23))) == 0) { in webSocketsHandshake()
/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/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp10 extern "C" int strncasecmp(const char *s1, const char *s2, size_t n);
49 if (strncasecmp(b1, b2, sizeof(b1) >= 0)) {} // \ in f()
53 if (strncasecmp(b1, b2, sizeof(b1)) >= 0) {} in f()
Dwarn-memset-bad-sizeof.cpp127 extern "C" int strncasecmp(const char *s1, const char *s2, unsigned n);
138 strncasecmp(FOO, BAR, sizeof(FOO)); // \ in strcpy_and_friends()
/external/webrtc/webrtc/modules/video_capture/
Ddevice_info_impl.cc53 if(strncasecmp((char*)_lastUsedDeviceName, in NumberOfCapabilities()
85 || (strncasecmp((char*)_lastUsedDeviceName, in GetCapability()
133 || (strncasecmp((char*)_lastUsedDeviceName, in GetBestMatchedCapability()
/external/clang/test/Sema/
Dbuiltins-gnu-mode.c14 int strncasecmp; variable

123456