Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 82) sorted by relevance

1234

/bionic/libc/bionic/
Dwcstod.cpp40 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()
Darpa_inet.cpp41 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()
Dstrtol.cpp177 intmax_t strtoimax(const char* s, char** end, int base) { in strtoimax() argument
178 return StrToI<intmax_t, INTMAX_MIN, INTMAX_MAX>(s, end, base); in strtoimax()
181 long strtol(const char* s, char** end, int base) { in strtol() argument
182 return StrToI<long, LONG_MIN, LONG_MAX>(s, end, base); in strtol()
185 long long strtoll(const char* s, char** end, int base) { in strtoll() argument
186 return StrToI<long long, LLONG_MIN, LLONG_MAX>(s, end, base); in strtoll()
190 extern "C" long long strtoq(const char* s, char** end, int base) { in strtoq() argument
191 return strtoll(s, end, base); in strtoq()
194 unsigned long strtoul(const char* s, char** end, int base) { in strtoul() argument
195 return StrToU<unsigned long, ULONG_MAX>(s, end, base); in strtoul()
[all …]
Dgrp_pwd.cpp207 uid_t end; member
221 if (user_ranges[0].start > user_ranges[0].end) return false; in verify_user_ranges_ascending()
224 if (user_ranges[i].start > user_ranges[i].end) return false; in verify_user_ranges_ascending()
225 if (user_ranges[i - 1].end > user_ranges[i].start) return false; in verify_user_ranges_ascending()
249 if (appid >= user_ranges[i].start && appid <= user_ranges[i].end) { in is_valid_app_id()
270 if (incremented_id > user_ranges[i - 1].end && incremented_id < user_ranges[i].start) { in get_next_app_id()
277 if (incremented_id > user_ranges[arraysize(user_ranges) - 1].end) { in get_next_app_id()
293 char* end; in app_id_from_name() local
298 end = const_cast<char*>(name+3); in app_id_from_name()
302 userid = strtoul(name+1, &end, 10); in app_id_from_name()
[all …]
Dgrp_pwd_file.cpp62 char* end = nullptr; in FieldToUid() local
64 uid_t result = strtoul(field, &end, 0); in FieldToUid()
65 if (errno != 0 || field == end || *end != ':') { in FieldToUid()
73 const char* ParseLine(const char* begin, const char* end, const char** fields, size_t num_fields) { in ParseLine() argument
78 while (position < end && fields_written < num_fields) { in ParseLine()
88 while (position < end && *position != '\n') { in ParseLine()
210 bool MmapFile::GetFile(const char** start, const char** end) { in GetFile() argument
214 *end = end_; in GetFile()
228 *end = end_; in GetFile()
264 const char* end; in Find() local
[all …]
Dndk_cruft.cpp151 const unsigned char* end = p + n; in strntoumax() local
156 while (p < end && isspace(*p)) { in strntoumax()
160 if (p < end) { in strntoumax()
169 if (p+2 < end && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) { in strntoumax()
172 } else if (p+1 < end && p[0] == '0') { in strntoumax()
179 if (p+2 < end && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) { in strntoumax()
184 while (p < end && (d = digitval(*p)) >= 0 && d < base) { in strntoumax()
Dmntent.cpp79 char* const end = mnt->mnt_opts + strlen(mnt->mnt_opts); in hasmntopt() local
84 if (tokenEnd > end) break; in hasmntopt()
/bionic/libc/arch-mips/bionic/
Dcacheflush.cpp48 int cacheflush(long start, long end, long /*flags*/) { in cacheflush() argument
49 if (end < start) { in cacheflush()
57 end += start; in cacheflush()
62 __builtin___clear_cache(reinterpret_cast<char*>(start), reinterpret_cast<char*>(end)); in cacheflush()
/bionic/libc/malloc_debug/
DMapData.h40 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len) in MapEntry()
41 : start(start), end(end), offset(offset), name(name, name_len) {} in MapEntry()
43 explicit MapEntry(uintptr_t pc) : start(pc), end(pc) {} in MapEntry()
46 uintptr_t end; member
55 bool operator()(const MapEntry* a, const MapEntry* b) const { return a->end <= b->start; } in operator()
DMapData.cpp45 uintptr_t end; in parse_line() local
49 if (sscanf(line, "%" PRIxPTR "-%" PRIxPTR " %4s %" PRIxPTR " %*x:%*x %*d %n", &start, &end, in parse_line()
60 MapEntry* entry = new MapEntry(start, end, offset, name, name_len); in parse_line()
71 if (addr < entry->start || addr + sizeof(T) > entry->end) { in get_val()
128 if (it == entries_.end()) { in ReadMaps()
152 if (it == entries_.end()) { in find()
156 if (it == entries_.end()) { in find()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dlsearch.c62 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/
Dlinker_cfi.h52 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);
Dlinker_cfi.cpp67 uint16_t* end() { in end() function in ShadowWrite
84 void CFIShadowWriter::AddConstant(uintptr_t begin, uintptr_t end, uint16_t v) { in AddConstant() argument
86 uint16_t* shadow_end = MemToShadow(end - 1) + 1; in AddConstant()
89 std::fill(sw.begin(), sw.end(), v); in AddConstant()
92 void CFIShadowWriter::AddUnchecked(uintptr_t begin, uintptr_t end) { in AddUnchecked() argument
93 AddConstant(begin, end, kUncheckedShadow); in AddUnchecked()
96 void CFIShadowWriter::AddInvalid(uintptr_t begin, uintptr_t end) { in AddInvalid() argument
97 AddConstant(begin, end, kInvalidShadow); in AddInvalid()
100 void CFIShadowWriter::Add(uintptr_t begin, uintptr_t end, uintptr_t cfi_check) { in Add() argument
108 uint16_t* shadow_end = MemToShadow(end - 1) + 1; in Add()
/bionic/libc/dns/resolv/
Dres_cache.c210 _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/tools/
Dgenerate-NOTICE.py83 end = i
86 while end > 0:
87 …if lines[end - 1] != " *" and lines[end - 1] != " * ==============================================…
89 end -= 1
93 for line in lines[start:end]:
Dgenseccomp.py17 self.end = self.begin + 1
20 return "(%s, %s, %s)" % (self.begin, self.end, self.names)
23 if value != self.end:
25 self.end += 1
96 if last_range.end == value:
112 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") +
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c43 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()
Dopen_wmemstream.c45 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/
Dsys_prctl_test.cpp53 uintptr_t end; in TEST() local
54 ASSERT_EQ(2, sscanf(lines[i].c_str(), "%" SCNxPTR "-%" SCNxPTR " ", &start, &end)) in TEST()
59 last_end = end; in TEST()
/bionic/tools/versioner/src/
Dversioner.cpp144 auto new_end = std::remove_if(headers.begin(), headers.end(), [&arch](llvm::StringRef header) { in collectRequirements()
146 if (it.second.find(arch) == it.second.end()) { in collectRequirements()
157 headers.erase(new_end, headers.end()); in collectRequirements()
276 std::set_intersection(a.begin(), a.end(), b.begin(), b.end(), std::back_inserter(intersection)); in Intersection()
374 if (platform_availability_it == symbol_database.end()) { in checkVersions()
427 missing_it != missing_availability.end()) { in checkVersions()
436 extra_it != extra_availability.end()) { in checkVersions()
446 symbol_it != header_database->symbols.end()) { in checkVersions()
511 char* end; in main() local
512 int api_level = strtol(optarg, &end, 10); in main()
[all …]
/bionic/tools/relocation_packer/src/
Dpacker.cc40 packed->insert(packed->end(), sleb128_packed.begin(), sleb128_packed.end()); in PackRelocations()
/bionic/tests/libs/
Dbionic_tests_zipalign.cpp60 std::sort(entries->begin(), entries->end(), in GetEntries()
127 char* end; in main() local
128 unsigned long int alignment = strtoul(argv[1], &end, 10); in main()
129 if ((alignment == ULONG_MAX && errno == ERANGE) || *end != '\0') { in main()
/bionic/libc/kernel/uapi/linux/
Ddlm_plock.h44 __u64 end; member
/bionic/libc/stdio/
Dparsefloat.c40 size_t parsefloat(FILE *fp, char *buf, char *end) { in parsefloat() argument
60 for (p = buf; p < end; ) { in parsefloat()
188 size_t wparsefloat(FILE *fp, wchar_t *buf, wchar_t *end) { in wparsefloat() argument
209 for (p = buf; p < end; ) { in wparsefloat()
/bionic/benchmarks/
Dstdio_benchmark.cpp230 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()

1234