Home
last modified time | relevance | path

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

123

/bionic/libc/dns/resolv/
Dres_init.c288 (!strncmp(line, name, sizeof(name) - 1) && \ in __res_vinit()
509 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { in res_setoptions()
519 } else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) { in res_setoptions()
529 } else if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){ in res_setoptions()
539 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { in res_setoptions()
548 } else if (!strncmp(cp, "no_tld_query", in res_setoptions()
550 !strncmp(cp, "no-tld-query", in res_setoptions()
553 } else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) { in res_setoptions()
555 } else if (!strncmp(cp, "rotate", sizeof("rotate") - 1)) { in res_setoptions()
557 } else if (!strncmp(cp, "no-check-names", in res_setoptions()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrncmp.c35 strncmp(const char *s1, const char *s2, size_t n) in strncmp() function
48 DEF_STRONG(strncmp);
/bionic/tests/
Dmalloc_iterate_test.cpp99 if (strcmp(name, "[anon:libc_malloc]") == 0 || strncmp(name, "[anon:scudo:", 12) == 0 || in VerifyPtrs()
100 strncmp(name, "[anon:GWP-ASan", 14) == 0) { in VerifyPtrs()
196 if (strcmp(name, "[anon:libc_malloc]") != 0 && strncmp(name, "[anon:scudo:", 12) != 0 && in TEST()
197 strncmp(name, "[anon:GWP-ASan", 14) != 0) { in TEST()
Ddlfcn_test.cpp290 ASSERT_EQ(strncmp("set", *foo_ptr, 3), 0); in TEST()
291 ASSERT_EQ(strncmp("set", foo_library_ptr(), 3), 0); in TEST()
304 ASSERT_EQ(strncmp("unset", *foo_ptr, 5), 0); in TEST()
305 ASSERT_EQ(strncmp("unset", foo_library_ptr(), 5), 0); in TEST()
322 ASSERT_EQ(strncmp("set", foo_ptr(), 3), 0); in TEST()
323 ASSERT_EQ(strncmp("set", foo_library_ptr(), 3), 0); in TEST()
334 ASSERT_EQ(strncmp("unset", foo_ptr(), 5), 0); in TEST()
335 ASSERT_EQ(strncmp("unset", foo_library_ptr(), 5), 0); in TEST()
1008 if (strncmp(ALTERNATE_PATH_TO_SYSTEM_LIB, in TEST()
1013 } else if (strncmp(PATH_TO_BOOTSTRAP_LIBC, info.dli_fname, in TEST()
/bionic/libc/arch-x86_64/string/
Dssse3-strncmp-slm.S32 #define STRCMP strncmp
/bionic/libc/bionic/
D__bionic_get_shell_path.cpp49 if (len != -1 && !strncmp(exe_path, VENDOR_PREFIX, strlen(VENDOR_PREFIX))) { in init_sh_path()
Dpututline.c44 if (!strncmp(utmp->ut_line, u.ut_line, sizeof(u.ut_line) -1)) in pututline()
Dgwp_asan_wrappers.cpp220 if (progname && strncmp(progname, "app_process", 11) == 0) { in MaybeInitGwpAsanFromLibc()
Dsystem_property_set.cpp270 if (strlen(value) >= PROP_VALUE_MAX && strncmp(key, "ro.", 3) != 0) return -1; in __system_property_set()
Dgrp_pwd_file.cpp274 if (strncmp(line->fields[0], required_prefix_, strlen(required_prefix_)) != 0) { in Find()
/bionic/libc/arch-arm64/
Dstatic_function_dispatch.S44 FUNCTION_DELEGATE(strncmp, __strncmp_aarch64_mte)
Ddynamic_function_dispatch.cpp109 DEFINE_IFUNC_FOR(strncmp) { in DEFINE_IFUNC_FOR() argument
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_009.S19 CALL(strncmp)
Dliblinker_reloc_bench_032.S180 CALL(strncmp)
/bionic/libc/arch-x86/
Dstatic_function_dispatch.S45 FUNCTION_DELEGATE(strncmp, strncmp_generic)
Ddynamic_function_dispatch.cpp113 DEFINE_IFUNC_FOR(strncmp) { in DEFINE_IFUNC_FOR() argument
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dfnmatch.c120 if (foldcase && strncmp(pattern, "upper:]", 7) == 0) in classmatch()
123 if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') { in classmatch()
/bionic/linker/
Dlinker_utils.cpp124 return strncmp(haystack, needle, needle_len) == 0 && in file_is_in_dir()
134 return strncmp(haystack, needle, needle_len) == 0 && in file_is_under_dir()
/bionic/libc/private/
DCachedProperty.h46 is_read_only_(strncmp(property_name, "ro.", 3) == 0), in CachedProperty()
/bionic/libc/system_properties/
Dcontexts_split.cpp235 if (!strncmp(prop_prefix, "ctl.", 4)) { in InitializePropertiesFromFile()
329 return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len); in GetPropAreaForName()
Dsystem_properties.cpp140 return strncmp(name, "ro.", 3) == 0; in is_read_only()
/bionic/tests/headers/posix/
Dstring_h.c59 FUNCTION(strncmp, int (*f)(const char*, const char*, size_t)); in string_h()
/bionic/libc/tzcode/
Dbionic.cpp131 if (strncmp(header.tzdata_version, "tzdata", 6) != 0 || header.tzdata_version[11] != 0) { in __bionic_open_tzdata_path()
/bionic/libc/include/
Dstring.h105 int strncmp(const char* __lhs, const char* __rhs, size_t __n) __attribute_pure__;
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dgetopt_long.c234 if (strncmp(current_argv, long_options[i].name, in parse_long_options()

123