/bionic/libc/bionic/ |
D | strtol.cpp | 38 T StrToI(const CharT* nptr, CharT** endptr, int base) { in StrToI() argument 40 if (base < 0 || base == 1 || base > 36) { in StrToI() 62 if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && isxdigit(s[1])) { in StrToI() 65 base = 16; in StrToI() 67 if ((base == 0 || base == 2) && c == '0' && (*s == 'b' || *s == 'B') && isdigit(s[1])) { in StrToI() 70 base = 2; in StrToI() 72 if (base == 0) base = (c == '0') ? 8 : 10; in StrToI() 76 T cutoff = Min / base; in StrToI() 77 int cutlim = -(Min % base); in StrToI() 89 if (c >= base) break; in StrToI() [all …]
|
D | stdlib_l.cpp | 40 long strtol_l(const char* s, char** end_ptr, int base, locale_t) { in strtol_l() argument 41 return strtol(s, end_ptr, base); in strtol_l() 48 long long strtoll_l(const char* s, char** end_ptr, int base, locale_t) { in strtoll_l() argument 49 return strtoll(s, end_ptr, base); in strtoll_l() 52 unsigned long strtoul_l(const char* s, char** end_ptr, int base, locale_t) { in strtoul_l() argument 53 return strtoul(s, end_ptr, base); in strtoul_l() 56 unsigned long long strtoull_l(const char* s, char** end_ptr, int base, locale_t) { in strtoull_l() argument 57 return strtoull(s, end_ptr, base); in strtoull_l()
|
D | wchar_l.cpp | 60 long wcstol_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstol_l() argument 61 return wcstol(s, end_ptr, base); in wcstol_l() 64 long long wcstoll_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoll_l() argument 65 return wcstoll(s, end_ptr, base); in wcstoll_l() 68 unsigned long wcstoul_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoul_l() argument 69 return wcstoul(s, end_ptr, base); in wcstoul_l() 72 unsigned long long wcstoull_l(const wchar_t* s, wchar_t** end_ptr, int base, locale_t) { in wcstoull_l() argument 73 return wcstoull(s, end_ptr, base); in wcstoull_l()
|
D | ndk_cruft.cpp | 150 uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n) { in strntoumax() argument 169 if (base == 0) { in strntoumax() 172 base = 16; in strntoumax() 175 base = 8; in strntoumax() 177 base = 10; in strntoumax() 179 } else if (base == 16) { in strntoumax() 185 while (p < end && (d = digitval(*p)) >= 0 && d < base) { in strntoumax() 186 v = v*base + d; in strntoumax() 198 intmax_t strntoimax(const char* nptr, char** endptr, int base, size_t n) { in strntoimax() argument 199 return (intmax_t) strntoumax(nptr, endptr, base, n); in strntoimax()
|
D | timespec_get.cpp | 31 int timespec_get(timespec* ts, int base) { in timespec_get() argument 32 return (base == TIME_UTC && clock_gettime(CLOCK_REALTIME, ts) != -1) ? base : 0; in timespec_get()
|
D | malloc_common.cpp | 235 void (*callback)(uintptr_t base, size_t size, void* arg); 239 void CallbackWrapper(uintptr_t base, size_t size, void* arg) { in CallbackWrapper() argument 242 reinterpret_cast<uintptr_t>(MaybeTagPointer(reinterpret_cast<void*>(base))), in CallbackWrapper() 255 extern "C" int malloc_iterate(uintptr_t base, size_t size, in malloc_iterate() argument 256 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) { in malloc_iterate() argument 264 reinterpret_cast<uintptr_t>(UntagPointer(reinterpret_cast<void*>(base))); in malloc_iterate() 300 extern "C" int __sanitizer_malloc_iterate(uintptr_t base __unused, size_t size __unused, in __sanitizer_malloc_iterate() 301 void (*callback)(uintptr_t base, size_t size, void* arg) in __sanitizer_malloc_iterate() argument
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_ntop.c | 105 struct { int base, len; } best, cur; in inet_ntop6() member 118 best.base = -1; in inet_ntop6() 119 cur.base = -1; in inet_ntop6() 122 if (cur.base == -1) in inet_ntop6() 123 cur.base = i, cur.len = 1; in inet_ntop6() 127 if (cur.base != -1) { in inet_ntop6() 128 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 130 cur.base = -1; in inet_ntop6() 134 if (cur.base != -1) { in inet_ntop6() 135 if (best.base == -1 || cur.len > best.len) in inet_ntop6() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | lsearch.c | 42 lsearch(const void *key, void *base, size_t *nelp, size_t width, in lsearch() argument 45 void *element = lfind(key, base, nelp, width, compar); in lsearch() 52 element = memmove((char *)base + *nelp * width, key, width); in lsearch() 59 lfind(const void *key, const void *base, size_t *nelp, size_t width, in lfind() argument 64 end = (const char *)base + *nelp * width; in lfind() 65 for (element = base; element < end; element += width) in lfind()
|
/bionic/libc/stdio/ |
D | vfwscanf.cpp | 144 int base; /* base argument to strtoimax/strtouimax */ in __vfwscanf() local 158 base = 0; /* XXX just to keep gcc happy */ in __vfwscanf() 244 base = 2; in __vfwscanf() 253 base = 10; in __vfwscanf() 258 base = 0; in __vfwscanf() 267 base = 8; in __vfwscanf() 273 base = 10; in __vfwscanf() 281 base = 16; in __vfwscanf() 318 base = 16; in __vfwscanf() 351 base = 10; in __vfwscanf() [all …]
|
D | vfscanf.cpp | 97 int base; /* base argument to strtoimax/strtouimax */ in __svfscanf() local 191 base = 2; in __svfscanf() 200 base = 10; in __svfscanf() 205 base = 0; in __svfscanf() 214 base = 8; in __svfscanf() 220 base = 10; in __svfscanf() 228 base = 16; in __svfscanf() 263 base = 16; in __svfscanf() 296 base = 10; in __svfscanf() 572 if (base == 0) { in __svfscanf() [all …]
|
/bionic/tools/versioner/src/ |
D | SymbolFileParser.cpp | 46 std::string base; member 94 curr_line = android::base::Trim(line.substr(0, hash_pos)); in hasNextLine() 109 std::vector<std::string> tags = android::base::Split(tags_line, " \t"); in parseTags() 125 std::string name = android::base::Trim(curr_line.substr(0, lparen_pos)); in parseVersion() 146 std::string base = android::base::Trim( in parseVersion() local 149 return std::make_optional(Version{std::move(name), std::move(base), in parseVersion() 153 if (android::base::StartsWith(curr_line, R"(extern "C++" {)")) { in parseVersion() 165 android::base::Trim(curr_line.substr(0, colon_pos)); in parseVersion() 186 android::base::Trim(curr_line.substr(0, semicolon_pos)); in parseVersion() 240 if (android::base::StartsWith(tag, "api-level=") && !api_level_arch) { in isInApi() [all …]
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 133 record_filename = android::base::StringPrintf("%s.%d.txt", RECORD_ALLOCS_FILE, getpid()); in InitRecordAllocs() 135 init += android::base::StringPrintf(" record_allocs_file=%s", record_filename.c_str()); in InitRecordAllocs() 181 diff += android::base::StringPrintf("Byte %zu: 0x%x 0x%x\n", i, a[i], b[i]); in ShowDiffs() 260 expected_log += android::base::StringPrintf( in VerifyAllocCalls() 263 expected_log += android::base::StringPrintf( in VerifyAllocCalls() 266 expected_log += android::base::StringPrintf( in VerifyAllocCalls() 269 expected_log += android::base::StringPrintf( in VerifyAllocCalls() 311 std::string expected_log = android::base::StringPrintf( in TEST_F() 314 expected_log += android::base::StringPrintf( in TEST_F() 324 std::string expected_log = android::base::StringPrintf( in TEST_F() [all …]
|
/bionic/linker/ |
D | linker_cfi.cpp | 164 if (si->base == 0 || si->size == 0) { in AddLibrary() 169 INFO("[ CFI add 0x%zx + 0x%zx %s ]", static_cast<uintptr_t>(si->base), in AddLibrary() 171 AddUnchecked(si->base, si->base + si->size); in AddLibrary() 175 INFO("[ CFI add 0x%zx + 0x%zx %s: 0x%zx ]", static_cast<uintptr_t>(si->base), in AddLibrary() 189 Add(si->base, si->base + si->size, cfi_check); in AddLibrary() 265 if (si->base == 0 || si->size == 0) return; in BeforeUnload() 266 INFO("[ CFI remove 0x%zx + 0x%zx: %s ]", static_cast<uintptr_t>(si->base), in BeforeUnload() 268 AddInvalid(si->base, si->base + si->size); in BeforeUnload()
|
D | linker_config.cpp | 77 line = android::base::Trim(line.substr(0, found)); in next_token() 91 *name = android::base::Trim(line.substr(0, found_assign)); in next_token() 92 *value = android::base::Trim(line.substr(found_assign + 1)); in next_token() 97 *name = android::base::Trim(line.substr(0, found_append)); in next_token() 98 *value = android::base::Trim(line.substr(found_append + 2)); in next_token() 187 if (!android::base::ReadFileToString(ld_config_file_path, &content)) { in parse_config_file() 218 if (!android::base::StartsWith(name, "dir.")) { in parse_config_file() 323 if (android::base::EndsWith(name, ".links") || in parse_config_file() 324 android::base::EndsWith(name, ".namespaces")) { in parse_config_file() 327 } else if (android::base::EndsWith(name, ".paths") || in parse_config_file() [all …]
|
D | linker_config_test.cpp | 111 std::string content = android::base::StringPrintf("%d", version); in write_version() 112 return android::base::WriteStringToFile(content, path); in write_version() 170 android::base::WriteStringToFile(config_str, tmp_file.path); in run_linker_config_smoke_test() 178 android::base::make_scope_guard([&version_file] { unlink(version_file.c_str()); }); in run_linker_config_smoke_test() 291 android::base::WriteStringToFile(config_str, tmp_file.path); in TEST() 321 android::base::make_scope_guard([&sub_dir] { rmdir(sub_dir.c_str()); }); in TEST() 327 android::base::make_scope_guard([&symlink_path] { unlink(symlink_path.c_str()); }); in TEST() 338 android::base::WriteStringToFile(config_str, tmp_file.path); in TEST()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | open_memstream.c | 79 size_t base = 0; in memstream_seek() local 85 base = st->pos; in memstream_seek() 88 base = st->len; in memstream_seek() 92 if ((off > 0 && off > SIZE_MAX - base) || (off < 0 && base < -off)) { in memstream_seek() 97 st->pos = base + off; in memstream_seek()
|
D | open_wmemstream.c | 83 ssize_t base = 0; in wmemstream_seek() local 89 base = st->pos; in wmemstream_seek() 92 base = st->len; in wmemstream_seek() 96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) { in wmemstream_seek() 107 st->pos = base + off; in wmemstream_seek()
|
/bionic/tests/ |
D | gtest_globals.cpp | 29 std::string path = android::base::GetExecutableDirectory(); in GetTestlibRoot() 32 if (!android::base::Realpath(path.c_str(), &out_path)) { in GetTestlibRoot() 40 if (!android::base::Realpath(out_path, &real_path)) { in GetTestlibRoot()
|
D | fdsan_test.cpp | 177 android::base::unique_fd fd(open("/dev/null", O_RDONLY)); in TEST_F() 184 android::base::unique_fd fd(open("/dev/null", O_RDONLY)); in TEST_F() 189 android::base::unique_fd fd(open("/dev/null", O_RDONLY)); in TEST_F() 190 android::base::unique_fd fd_moved = std::move(fd); in TEST_F() 197 android::base::unique_fd fd(open("/dev/null", O_RDONLY)); in TEST_F() 198 android::base::unique_fd fd_moved = std::move(fd); in TEST_F() 208 android::base::unique_fd fd(open("/dev/null", O_RDONLY)); in TEST_F()
|
D | utils.cpp | 62 return android::base::GetBoolProperty("ro.config.low_ram", false) || in IsLowRamDevice() 63 (android::base::GetBoolProperty("ro.debuggable", false) && in IsLowRamDevice() 64 android::base::GetBoolProperty("debug.force_low_ram", false)); in IsLowRamDevice()
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | mtrr.h | 27 unsigned long base; member 33 unsigned long base; member 39 __u64 base; member 44 __u64 base; member
|
/bionic/benchmarks/linker_relocation/ |
D | linker_reloc_bench.cpp | 47 android::base::Dirname(android::base::Dirname(android::base::GetExecutableDirectory())) + in BM_linker_relocation()
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
D | bsearch.c | 65 const char *base = base0; in bsearch() local 75 p = base + (lim >> 1) * size; in bsearch() 80 base = (const char *)p + size; in bsearch()
|
/bionic/benchmarks/spawn/ |
D | spawn_benchmark.cpp | 46 state.SkipWithError(android::base::StringPrintf( in BM_spawn_test() 54 state.SkipWithError(android::base::StringPrintf( in BM_spawn_test() 60 state.SkipWithError(android::base::StringPrintf("could not exec %s", argv[0]).c_str()); in BM_spawn_test()
|
/bionic/benchmarks/ |
D | unistd_benchmark.cpp | 52 std::string err = android::base::StringPrintf("Fork failed: %s", strerror(errno)); in BM_unistd_fork_call() 58 std::string err = android::base::StringPrintf("waitpid call failed: %s", strerror(errno)); in BM_unistd_fork_call() 61 std::string err = android::base::StringPrintf( in BM_unistd_fork_call()
|