/bionic/libc/bionic/ |
D | grp_pwd.cpp | 147 id_t end; member 169 if (ranges[0].start > ranges[0].end) return false; in verify_user_ranges_ascending() 172 if (ranges[i].start > ranges[i].end) return false; in verify_user_ranges_ascending() 173 if (ranges[i - 1].end > ranges[i].start) return false; in verify_user_ranges_ascending() 222 if (appid >= ranges[i].start && appid <= ranges[i].end) { in is_valid_app_id() 246 if (incremented_id > ranges[i - 1].end && incremented_id < ranges[i].start) { in get_next_app_id() 253 if (incremented_id > ranges[ranges_size - 1].end) { in get_next_app_id() 271 char* end; in app_id_from_name() local 276 end = const_cast<char*>(name+3); in app_id_from_name() 280 userid = strtoul(name+1, &end, 10); in app_id_from_name() [all …]
|
D | strtol.cpp | 174 intmax_t strtoimax(const char* s, char** end, int base) { in strtoimax() argument 175 return StrToI<intmax_t, INTMAX_MIN, INTMAX_MAX>(s, end, base); in strtoimax() 178 long strtol(const char* s, char** end, int base) { in strtol() argument 179 return StrToI<long, LONG_MIN, LONG_MAX>(s, end, base); in strtol() 182 long long strtoll(const char* s, char** end, int base) { in strtoll() argument 183 return StrToI<long long, LLONG_MIN, LLONG_MAX>(s, end, base); in strtoll() 187 extern "C" long long strtoq(const char* s, char** end, int base) { in strtoq() argument 188 return strtoll(s, end, base); in strtoq() 191 unsigned long strtoul(const char* s, char** end, int base) { in strtoul() argument 192 return StrToU<unsigned long, ULONG_MAX>(s, end, base); in strtoul() [all …]
|
D | wcstod.cpp | 40 float_type wcstod(const wchar_t* str, wchar_t** end, float_type strtod_fn(const char*, char**)) { in wcstod() argument 82 if (end) { in wcstod() 86 *end = const_cast<wchar_t*>(original_str); in wcstod() 88 *end = const_cast<wchar_t*>(str) + actual_len; in wcstod() 96 float wcstof(const wchar_t* s, wchar_t** end) { in wcstof() argument 97 return wcstod<float>(s, end, strtof); in wcstof() 100 double wcstod(const wchar_t* s, wchar_t** end) { in wcstod() argument 101 return wcstod<double>(s, end, strtod); in wcstod() 104 long double wcstold(const wchar_t* s, wchar_t** end) { in wcstold() argument 105 return wcstod<long double>(s, end, strtold); in wcstold()
|
D | arpa_inet.cpp | 41 char* end; in inet_aton() local 43 parts[i] = strtoul(cp, &end, 0); in inet_aton() 44 if (errno != 0 || end == cp || (*end != '.' && *end != '\0')) return 0; in inet_aton() 45 if (*end == '\0') break; in inet_aton() 46 cp = end + 1; in inet_aton()
|
D | grp_pwd_file.cpp | 63 char* end = nullptr; in FieldToUid() local 65 uid_t result = strtoul(field, &end, 0); in FieldToUid() 66 if (errno != 0 || field == end || *end != ':') { in FieldToUid() 74 const char* ParseLine(const char* begin, const char* end, const char** fields, size_t num_fields) { in ParseLine() argument 79 while (position < end && fields_written < num_fields) { in ParseLine() 89 while (position < end && *position != '\n') { in ParseLine() 211 bool MmapFile::GetFile(const char** start, const char** end) { in GetFile() argument 215 *end = end_; in GetFile() 229 *end = end_; in GetFile() 262 const char* end; in Find() local [all …]
|
D | ndk_cruft.cpp | 152 const unsigned char* end = p + n; in strntoumax() local 157 while (p < end && isspace(*p)) { in strntoumax() 161 if (p < end) { in strntoumax() 170 if (p+2 < end && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) { in strntoumax() 173 } else if (p+1 < end && p[0] == '0') { in strntoumax() 180 if (p+2 < end && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) { in strntoumax() 185 while (p < end && (d = digitval(*p)) >= 0 && d < base) { in strntoumax()
|
D | android_unsafe_frame_pointer_chase.cpp | 59 uintptr_t end = __get_thread()->stack_top; in android_unsafe_frame_pointer_chase() local 63 end = reinterpret_cast<uintptr_t>(ss.ss_sp) + ss.ss_size; in android_unsafe_frame_pointer_chase() 73 if (frame->next_frame < begin + sizeof(frame_record) || frame->next_frame >= end || in android_unsafe_frame_pointer_chase()
|
/bionic/libc/dns/resolv/ |
D | res_cache.c | 210 _bprint_c( char* p, char* end, int c ) in _bprint_c() argument 212 if (p < end) { in _bprint_c() 213 if (p+1 == end) in _bprint_c() 225 _bprint_b( char* p, char* end, const char* buf, int len ) in _bprint_b() argument 227 int avail = end - p; in _bprint_b() 238 if (p < end) in _bprint_b() 241 end[-1] = 0; in _bprint_b() 248 _bprint_s( char* p, char* end, const char* str ) in _bprint_s() argument 250 return _bprint_b(p, end, str, strlen(str)); in _bprint_s() 254 char* _bprint( char* p, char* end, const char* format, ... ) __DEBUG__; [all …]
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 46 uintptr_t end; in parse_line() local 51 if (sscanf(line, "%" PRIxPTR "-%" PRIxPTR " %4s %" PRIxPTR " %*x:%*x %*d %n", &start, &end, in parse_line() 70 MapEntry* entry = new MapEntry(start, end, offset, name, name_len, flags); in parse_line() 82 if (!(entry->flags & PROT_READ) || addr < entry->start || addr + sizeof(T) > entry->end) { in get_val() 95 uintptr_t end; in valid_elf() local 96 if (__builtin_add_overflow(addr, SELFMAG, &end) || end >= entry->end) { in valid_elf() 159 if (it == entries_.end()) { in ReadMaps() 183 if (it == entries_.end()) { in find() 187 if (it == entries_.end()) { in find()
|
D | MapData.h | 40 …MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len, int … in MapEntry() 41 : start(start), end(end), offset(offset), name(name, name_len), flags(flags) {} in MapEntry() 43 explicit MapEntry(uintptr_t pc) : start(pc), end(pc) {} in MapEntry() 46 uintptr_t end; member 58 bool operator()(const MapEntry* a, const MapEntry* b) const { return a->end <= b->start; } in operator()
|
D | PointerData.cpp | 156 if (entry == key_to_index_.end()) { in AddBacktrace() 181 if (frame_entry == frames_.end()) { in RemoveBacktrace() 213 if (entry == pointers_.end()) { in Remove() 231 if (entry == pointers_.end()) { in GetFrames() 243 if (frame_entry == frames_.end()) { in GetFrames() 259 if (backtrace_info_entry != backtraces_info_.end()) { in LogBacktrace() 265 if (frame_entry != frames_.end()) { in LogBacktrace() 393 if (frame_entry == frames_.end()) { in GetList() 406 if (backtrace_entry == backtraces_info_.end()) { in GetList() 422 std::sort(list->begin(), list->end(), [](const ListInfoType& a, const ListInfoType& b) { in GetList() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | lsearch.c | 62 const char *element, *end; in linear_base() local 64 end = (const char *)base + *nelp * width; in linear_base() 65 for (element = base; element < end; element += width) in linear_base() 82 memcpy((void *)end, key, width); in linear_base() 83 return((void *)end); in linear_base()
|
/bionic/linker/ |
D | linker_cfi.cpp | 68 uint16_t* end() { in end() function in ShadowWrite 85 void CFIShadowWriter::AddConstant(uintptr_t begin, uintptr_t end, uint16_t v) { in AddConstant() argument 87 uint16_t* shadow_end = MemToShadow(end - 1) + 1; in AddConstant() 90 std::fill(sw.begin(), sw.end(), v); in AddConstant() 93 void CFIShadowWriter::AddUnchecked(uintptr_t begin, uintptr_t end) { in AddUnchecked() argument 94 AddConstant(begin, end, kUncheckedShadow); in AddUnchecked() 97 void CFIShadowWriter::AddInvalid(uintptr_t begin, uintptr_t end) { in AddInvalid() argument 98 AddConstant(begin, end, kInvalidShadow); in AddInvalid() 101 void CFIShadowWriter::Add(uintptr_t begin, uintptr_t end, uintptr_t cfi_check) { in Add() argument 109 uint16_t* shadow_end = MemToShadow(end - 1) + 1; in Add()
|
D | linker_cfi.h | 52 void AddConstant(uintptr_t begin, uintptr_t end, uint16_t v); 55 void AddUnchecked(uintptr_t begin, uintptr_t end); 58 void AddInvalid(uintptr_t begin, uintptr_t end); 61 void Add(uintptr_t begin, uintptr_t end, uintptr_t cfi_check);
|
D | linker_config.cpp | 307 if (properties->find(name) != properties->end()) { in parse_config_file() 316 if (properties->find(name) == properties->end()) { in parse_config_file() 365 if (it == properties_.end()) { in get_strings() 381 if (it == properties_.end()) { in get_bool() 390 return (it == properties_.end()) ? "" : it->second.value(); in get_string() 424 if (cached == resolved_paths_.end()) { in get_paths() 428 CHECK(cached != resolved_paths_.end()); in get_paths() 449 if (it != properties_.end() && lineno != nullptr) { in find_property() 501 char* end = nullptr; in read_binary_config() local 503 int result = strtol(content_str, &end, 10); in read_binary_config() [all …]
|
D | linker_namespaces.cpp | 44 if (std::find(whitelisted_libs_.begin(), whitelisted_libs_.end(), in is_accessible() 45 lib_name) == whitelisted_libs_.end()) { in is_accessible() 104 if (secondary_namespaces.find(this) != secondary_namespaces.end()) { in is_accessible()
|
/bionic/tests/ |
D | malloc_iterate_test.cpp | 73 uintptr_t end; in SavePointers() local 74 if (__builtin_add_overflow(base, size, &end)) { in SavePointers() 81 if (ptr >= base && ptr < end) { in SavePointers() 84 uintptr_t max_size = end - ptr; in SavePointers() 98 auto callback = [&](uint64_t start, uint64_t end, uint16_t, uint64_t, ino_t, const char* name) { in VerifyPtrs() argument 101 malloc_iterate(start, end - start, SavePointers, test_data); in VerifyPtrs() 195 auto callback = [&](uint64_t start, uint64_t end, uint16_t, uint64_t, ino_t, const char* name) { in TEST() argument 199 malloc_iterate(start, end - start, SavePointers, &test_data); in TEST() 210 start, end, total); in TEST()
|
D | inttypes_test.cpp | 101 wchar_t* end = nullptr; in TEST() local 102 EXPECT_EQ(123, wcstoimax(L" +123x", &end, 10)); in TEST() 103 EXPECT_EQ(L'x', *end); in TEST() 107 wchar_t* end = nullptr; in TEST() local 108 EXPECT_EQ(123U, wcstoumax(L" +123x", &end, 10)); in TEST() 109 EXPECT_EQ(L'x', *end); in TEST()
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 143 auto new_end = std::remove_if(headers.begin(), headers.end(), [&arch](llvm::StringRef header) { in collectRequirements() 145 if (it.second.find(arch) == it.second.end()) { in collectRequirements() 156 headers.erase(new_end, headers.end()); in collectRequirements() 275 std::set_intersection(a.begin(), a.end(), b.begin(), b.end(), std::back_inserter(intersection)); in Intersection() 375 if (platform_availability_it == symbol_database.end()) { in checkVersions() 424 missing_it != missing_availability.end()) { in checkVersions() 433 extra_it != extra_availability.end()) { in checkVersions() 443 symbol_it != header_database->symbols.end()) { in checkVersions() 508 char* end; in main() local 509 int api_level = strtol(optarg, &end, 10); in main() [all …]
|
/bionic/libc/tools/ |
D | generate-NOTICE.py | 82 end = i 85 while end > 0: 86 …if lines[end - 1] != " *" and lines[end - 1] != " * ==============================================… 88 end -= 1 92 for line in lines[start:end]:
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | open_memstream.c | 43 size_t i, end; in memstream_write() local 45 end = (st->pos + l); in memstream_write() 47 if (end >= st->size) { in memstream_write() 51 if (sz < end + 1) in memstream_write() 52 sz = end + 1; in memstream_write()
|
D | open_wmemstream.c | 45 size_t nmc, len, end; in wmemstream_write() local 47 end = (st->pos + l); in wmemstream_write() 49 if (end >= st->size) { in wmemstream_write() 53 if (sz < end + 1) in wmemstream_write() 54 sz = end + 1; in wmemstream_write()
|
/bionic/tests/libs/ |
D | bionic_tests_zipalign.cpp | 59 std::sort(entries->begin(), entries->end(), in GetEntries() 125 char* end; in main() local 126 unsigned long int alignment = strtoul(argv[1], &end, 10); in main() 127 if ((alignment == ULONG_MAX && errno == ERANGE) || *end != '\0') { in main()
|
/bionic/libc/arch-x86/silvermont/string/ |
D | sse4-memcmp-slm.S | 407 jne L(end) 449 jne L(end) 452 jne L(end) 494 jne L(end) 496 jne L(end) 501 jne L(end) 567 jne L(end) 600 jne L(end) 603 jne L(end) 635 jne L(end) [all …]
|
/bionic/benchmarks/ |
D | stdio_benchmark.cpp | 230 uintptr_t end; in BM_stdio_scanf_maps() local 236 &start, &end, permissions, &offset, &name_pos) != 4) abort(); in BM_stdio_scanf_maps() 242 static int ParseMap(const char* line, const char* /*fmt*/, uintptr_t* start, uintptr_t* end, in ParseMap() argument 253 *end = strtoul(old_str, &str, 16); in ParseMap() 298 uintptr_t end; in BM_stdio_scanf_maps_baseline() local 304 &start, &end, permissions, &offset, &name_pos) != 4) abort(); in BM_stdio_scanf_maps_baseline()
|