/external/llvm-project/compiler-rt/test/asan/TestCases/ |
D | strncasecmp_strict.c | 39 assert((strncasecmp(s1, s2, i) == 0) == (i < size)); in main() 42 assert(strncasecmp(s1, s2, 2*size) == 0); in main() 45 return strncasecmp(s1-1, s2, 1); in main() 47 return strncasecmp(s1, s2-1, 1); in main() 49 return strncasecmp(s1+size, s2, 1); in main() 51 return strncasecmp(s1, s2+size, 1); in main() 53 return strncasecmp(s1+1, s2, size); in main() 55 return strncasecmp(s1, s2+1, size); in main() 58 assert(strncasecmp(s1, s2, 2*size) != 0); in main() 62 assert(strncasecmp(s1, s2, 2*size) != 0); in main()
|
/external/curl/docs/examples/ |
D | chkspeed.c | 74 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/clang/test/Analysis/ |
D | string.c | 989 #define strncasecmp BUILTIN(strncasecmp) macro 990 int strncasecmp(const char *s1, const char *s2, size_t n); 995 clang_analyzer_eval(strncasecmp(x, y, 2) > 0); // expected-warning{{TRUE}} in strncasecmp_check_modelling() 996 clang_analyzer_eval(strncasecmp(x, y, 2) <= 0); // expected-warning{{FALSE}} in strncasecmp_check_modelling() 997 clang_analyzer_eval(strncasecmp(x, y, 2) > 1); // expected-warning{{UNKNOWN}} in strncasecmp_check_modelling() 999 clang_analyzer_eval(strncasecmp(y, x, 2) < 0); // expected-warning{{TRUE}} in strncasecmp_check_modelling() 1000 clang_analyzer_eval(strncasecmp(y, x, 2) >= 0); // expected-warning{{FALSE}} in strncasecmp_check_modelling() 1001 clang_analyzer_eval(strncasecmp(y, x, 2) < -1); // expected-warning{{UNKNOWN}} in strncasecmp_check_modelling() 1005 clang_analyzer_eval(strncasecmp("abc", "Abc", 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant0() 1010 clang_analyzer_eval(strncasecmp(x, "Abc", 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant_and_var_0() [all …]
|
/external/llvm-project/clang/test/Analysis/ |
D | string.c | 1102 #define strncasecmp BUILTIN(strncasecmp) macro 1103 int strncasecmp(const char *s1, const char *s2, size_t n); 1108 clang_analyzer_eval(strncasecmp(x, y, 2) > 0); // expected-warning{{TRUE}} in strncasecmp_check_modelling() 1109 clang_analyzer_eval(strncasecmp(x, y, 2) <= 0); // expected-warning{{FALSE}} in strncasecmp_check_modelling() 1110 clang_analyzer_eval(strncasecmp(x, y, 2) > 1); // expected-warning{{UNKNOWN}} in strncasecmp_check_modelling() 1112 clang_analyzer_eval(strncasecmp(y, x, 2) < 0); // expected-warning{{TRUE}} in strncasecmp_check_modelling() 1113 clang_analyzer_eval(strncasecmp(y, x, 2) >= 0); // expected-warning{{FALSE}} in strncasecmp_check_modelling() 1114 clang_analyzer_eval(strncasecmp(y, x, 2) < -1); // expected-warning{{UNKNOWN}} in strncasecmp_check_modelling() 1118 clang_analyzer_eval(strncasecmp("abc", "Abc", 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant0() 1123 clang_analyzer_eval(strncasecmp(x, "Abc", 3) == 0); // expected-warning{{TRUE}} in strncasecmp_constant_and_var_0() [all …]
|
D | std-c-library-functions-arg-cstring-dependency.c | 16 int strncasecmp(const char *s1, const char *s2, size_t n); 20 …return strncasecmp(a, b, n); // expected-warning{{Null pointer passed as 2nd argument to string co… in strncasecmp_null_argument()
|
/external/openssh/openbsd-compat/ |
D | strptime.c | 176 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/iptables/extensions/ |
D | libxt_conntrack.c | 191 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 …]
|
D | libipt_REJECT.c | 132 if (strncasecmp(reject_table[i].name, in REJECT_parse() 134 strncasecmp(reject_table[i].alias, in REJECT_parse() 141 if (strncasecmp("echo-reply", cb->arg, strlen(cb->arg)) == 0 || in REJECT_parse() 142 strncasecmp("echoreply", cb->arg, strlen(cb->arg)) == 0) in REJECT_parse()
|
D | libxt_limit.c | 59 if (strncasecmp(delim+1, "second", strlen(delim+1)) == 0) in parse_rate() 61 else if (strncasecmp(delim+1, "minute", strlen(delim+1)) == 0) in parse_rate() 63 else if (strncasecmp(delim+1, "hour", strlen(delim+1)) == 0) in parse_rate() 65 else if (strncasecmp(delim+1, "day", strlen(delim+1)) == 0) in parse_rate()
|
D | libxt_HMARK.c | 146 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()
|
D | libip6t_REJECT.c | 120 if (strncasecmp(reject_table[i].name, in REJECT_parse() 122 strncasecmp(reject_table[i].alias, in REJECT_parse()
|
/external/mtools/ |
D | mzip.c | 367 if (strncasecmp("IOMEGA ", inq_data.vendor, in mzip() 369 (strncasecmp("ZIP 100 ", in mzip() 371 strncasecmp("ZIP 100 PLUS ", in mzip() 373 strncasecmp("ZIP 250 ", in mzip() 375 strncasecmp("ZIP 750 ", in mzip() 377 strncasecmp("JAZ 1GB ", in mzip() 379 strncasecmp("JAZ 2GB ", in mzip()
|
/external/selinux/libselinux/src/ |
D | selinux_config.c | 104 if (!strncasecmp in selinux_getenforcemode() 110 if (!strncasecmp in selinux_getenforcemode() 117 if (!strncasecmp in selinux_getenforcemode() 179 if (!strncasecmp(buf_p, SELINUXTYPETAG, in init_selinux_config() 206 else if (strncasecmp(value, "true", sizeof("true") - 1)) in init_selinux_config() 208 else if (strncasecmp in init_selinux_config()
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | vccompat.h | 46 #undef strncasecmp 47 #define strncasecmp _strnicmp macro
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerInterceptors.cpp | 144 DEFINE_REAL(int, strncasecmp, const char *, const char *, size_t) in DEFINE_REAL() 182 ATTRIBUTE_INTERFACE int strncasecmp(const char *s1, const char *s2, size_t n) { in strncasecmp() function 184 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp() 238 REAL(strncasecmp) = reinterpret_cast<strncasecmp_type>( in fuzzerInit() 239 getFuncAddr("strncasecmp", reinterpret_cast<uintptr_t>(&strncasecmp))); in fuzzerInit()
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerInterceptors.cpp | 144 DEFINE_REAL(int, strncasecmp, const char *, const char *, size_t) in DEFINE_REAL() 182 ATTRIBUTE_INTERFACE int strncasecmp(const char *s1, const char *s2, size_t n) { in strncasecmp() function 184 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp() 238 REAL(strncasecmp) = reinterpret_cast<strncasecmp_type>( in fuzzerInit() 239 getFuncAddr("strncasecmp", reinterpret_cast<uintptr_t>(&strncasecmp))); in fuzzerInit()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 284 EXPECT_EQ(0, strncasecmp("a", "b", 0)); in TEST() 285 EXPECT_EQ(0, strncasecmp("abCD", "ABcd", 10)); in TEST() 286 EXPECT_EQ(0, strncasecmp("abCd", "ABcef", 3)); in TEST() 287 EXPECT_GT(0, strncasecmp("abcde", "ABCfa", 4)); in TEST() 288 EXPECT_GT(0, strncasecmp("a", "B", 5)); in TEST() 289 EXPECT_GT(0, strncasecmp("bc", "BCde", 4)); in TEST() 290 EXPECT_LT(0, strncasecmp("xyz", "xyy", 10)); in TEST() 291 EXPECT_LT(0, strncasecmp("Baa", "aaa", 1)); in TEST() 292 EXPECT_LT(0, strncasecmp("zyx", "", 2)); in TEST() 372 RunStrNCmpTest(&strncasecmp); in TEST()
|
/external/llvm-project/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cpp | 322 EXPECT_EQ(0, strncasecmp("a", "b", 0)); in TEST() 323 EXPECT_EQ(0, strncasecmp("abCD", "ABcd", 10)); in TEST() 324 EXPECT_EQ(0, strncasecmp("abCd", "ABcef", 3)); in TEST() 325 EXPECT_GT(0, strncasecmp("abcde", "ABCfa", 4)); in TEST() 326 EXPECT_GT(0, strncasecmp("a", "B", 5)); in TEST() 327 EXPECT_GT(0, strncasecmp("bc", "BCde", 4)); in TEST() 328 EXPECT_LT(0, strncasecmp("xyz", "xyy", 10)); in TEST() 329 EXPECT_LT(0, strncasecmp("Baa", "aaa", 1)); in TEST() 330 EXPECT_LT(0, strncasecmp("zyx", "", 2)); in TEST() 410 RunStrNCmpTest(&strncasecmp); in TEST()
|
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/reference/include/ |
D | RuntimeSupport.h | 64 int strncasecmp(const char *str1, const char *str2, size_t n); 65 #define XSTRNCASECMP(str1,str2,n) strncasecmp((str1),(str2),(n))
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientlib.c | 41 #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/llvm-project/lldb/source/Host/windows/ |
D | Windows.cpp | 59 } while (strncasecmp(s, find, len) != 0); in strcasestr() 90 int strncasecmp(const char *s1, const char *s2, size_t n) { in strncasecmp() function
|
/external/llvm-project/clang/test/SemaCXX/ |
D | warn-memsize-comparison.cpp | 10 extern "C" int strncasecmp(const char *s1, const char *s2, size_t n); 50 if (strncasecmp(b1, b2, sizeof(b1) >= 0)) {} // \ in f() 54 if (strncasecmp(b1, b2, sizeof(b1)) >= 0) {} in f()
|
/external/clang/test/SemaCXX/ |
D | warn-memsize-comparison.cpp | 10 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()
|
D | warn-memset-bad-sizeof.cpp | 127 extern "C" int strncasecmp(const char *s1, const char *s2, unsigned n); 138 strncasecmp(FOO, BAR, sizeof(FOO)); // \ in strcpy_and_friends()
|
/external/llvm-project/polly/lib/External/isl/ |
D | pip.c | 366 if (strncasecmp(s, "Maximize", 8) == 0) in main() 368 if (strncasecmp(s, "Rational", 8) == 0) { in main() 372 if (strncasecmp(s, "Urs_parms", 9) == 0) in main() 374 if (strncasecmp(s, "Urs_unknowns", 12) == 0) in main()
|