Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 73) sorted by relevance

123

/bionic/libc/malloc_debug/
DMapData.h40 …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()
45 uintptr_t start; member
58 bool operator()(const MapEntry* a, const MapEntry* b) const { return a->end <= b->start; } in operator()
DMapData.cpp45 uintptr_t start; 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()
94 uintptr_t addr = entry->start; in valid_elf()
105 uintptr_t addr = entry->start; in read_loadbias()
205 *rel_pc = pc - entry->start + entry->offset + prev_entry->load_bias; in find()
210 *rel_pc = pc - entry->start + entry->load_bias; in find()
DConfig.cpp342 const char* start = cur; in GetOption() local
345 *option = std::string(start, cur - start); in GetOption()
356 start = cur; in GetOption()
359 if (cur != start) { in GetOption()
360 *value = std::string(start, cur - start); in GetOption()
/bionic/libc/kernel/uapi/linux/netfilter/
Dnfnetlink_compat.h44 #define NFA_NEST_END(skb,start) \ argument
45 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *) (start); (skb)->len; })
46 #define NFA_NEST_CANCEL(skb,start) \ argument
47 ({ if(start) skb_trim(skb, (unsigned char *) (start) - (skb)->data); - 1; })
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dmktemp.c47 char *start, *cp, *ep; in mktemp_internal() local
61 for (start = ep; start > path && start[-1] == 'X'; start--) in mktemp_internal()
63 if (ep - start < MIN_X) { in mktemp_internal()
76 cp = start; in mktemp_internal()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dengine.c130 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
131 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
132 static const char *fast(struct match *m, const char *start, const char *stop, sopno startst, sopno …
133 static const char *slow(struct match *m, const char *start, const char *stop, sopno startst, sopno …
134 static states step(struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft);
148 static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst);
190 const char *start; in matcher() local
203 start = string + (size_t)pmatch[0].rm_so; in matcher()
206 start = string; in matcher()
207 stop = start + strlen(start); in matcher()
[all …]
Dregcomp.c144 static void repeat(struct parse *p, sopno start, int from, int to, size_t reclimit);
162 static sopno dupl(struct parse *p, sopno start, sopno finish);
578 sopno start; in p_bre() local
589 start = HERE(); in p_bre()
607 REQUIRE(HERE() != start, REG_EMPTY); /* require nonempty */ in p_bre()
848 char start, finish; in p_b_term() local
890 start = p_b_symbol(p); in p_b_term()
899 finish = start; in p_b_term()
901 REQUIRE(start <= finish, REG_ERANGE); in p_b_term()
902 for (i = start; i <= finish; i++) in p_b_term()
[all …]
/bionic/libc/bionic/
Dgrp_pwd.cpp146 id_t start; 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()
211 if (appid < ranges[0].start && platform_id_secondary_user_allowed(appid)) { in is_valid_app_id()
222 if (appid >= ranges[i].start && appid <= ranges[i].end) { in is_valid_app_id()
237 if (current_id < ranges[0].start) { in get_next_app_id()
238 return ranges[0].start; in get_next_app_id()
246 if (incremented_id > ranges[i - 1].end && incremented_id < ranges[i].start) { in get_next_app_id()
247 return ranges[i].start; in get_next_app_id()
[all …]
Dmalloc_heapprofd.cpp187 char* start = static_cast<char*>(memrchr(cmdline, '/', first_arg - cmdline)); in GetHeapprofdProgramProperty() local
188 if (start == first_arg) { in GetHeapprofdProgramProperty()
192 } else if (start == nullptr) { in GetHeapprofdProgramProperty()
193 start = cmdline; in GetHeapprofdProgramProperty()
196 start++; in GetHeapprofdProgramProperty()
199 size_t name_size = static_cast<size_t>(first_arg - start); in GetHeapprofdProgramProperty()
205 memcpy(data + kHeapprofdProgramPropertyPrefixSize, start, name_size + 1); in GetHeapprofdProgramProperty()
Dgrp_pwd_file.cpp211 bool MmapFile::GetFile(const char** start, const char** end) { in GetFile() argument
214 *start = start_; in GetFile()
228 *start = start_; in GetFile()
261 const char* start; in Find() local
263 if (!GetFile(&start, &end)) { in Find()
267 const char* line_beginning = start; in Find()
/bionic/libc/kernel/uapi/mtd/
Dmtd-abi.h23 __u32 start; member
27 __u64 start; member
31 __u32 start; member
36 __u64 start; member
47 __u64 start; member
96 __u32 start; member
/bionic/libc/upstream-netbsd/lib/libc/inet/
Dnsap_addr.c101 char *start; in inet_nsap_ntoa() local
106 start = ascii; in inet_nsap_ntoa()
109 start = tmpbuf; in inet_nsap_ntoa()
127 return (start); in inet_nsap_ntoa()
/bionic/tests/
Dmalloc_iterate_test.cpp98 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()
Ddlext_test.cpp324 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() local
325 ASSERT_TRUE(start != MAP_FAILED); in TEST_F()
328 extinfo.reserved_addr = start; in TEST_F()
334 EXPECT_GE(reinterpret_cast<void*>(f), start); in TEST_F()
336 reinterpret_cast<char*>(start) + kLibSize); in TEST_F()
343 void* new_start = mmap(start, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
344 ASSERT_NE(start, new_start) << "dlclose unmapped reserved space"; in TEST_F()
348 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() local
349 ASSERT_TRUE(start != MAP_FAILED); in TEST_F()
352 extinfo.reserved_addr = start; in TEST_F()
[all …]
Dsys_prctl_test.cpp52 uintptr_t start; in TEST() local
54 ASSERT_EQ(2, sscanf(lines[i].c_str(), "%" SCNxPTR "-%" SCNxPTR " ", &start, &end)) in TEST()
57 ASSERT_GE(start, last_end) in TEST()
/bionic/libc/tools/
Dgenerate-NOTICE.py55 start = i
57 while start > 0:
58 if "/*" in lines[start - 1]:
60 start -= 1
92 for line in lines[start:end]:
/bionic/tools/versioner/src/
DDeclarationDatabase.h113 FileLocation start; member
117 return std::tie(filename, start, end) < std::tie(rhs.filename, rhs.start, rhs.end);
151 location.start.line, location.start.column);
DPreprocessor.cpp241 static FileLocation findNextSemicolon(const std::deque<std::string>& lines, FileLocation start) { in findNextSemicolon() argument
242 unsigned current_line = start.line; in findNextSemicolon()
243 unsigned current_column = start.column; in findNextSemicolon()
260 errx(1, "failed to find semicolon starting from %u:%u", start.line, start.column); in findNextSemicolon()
285 FileLocation end_location = next->first.start; in mergeGuards()
398 file_lines[loc.start.line - 1].insert(loc.start.column - 1, prologue); in rewriteFile()
DDeclarationDatabase.cpp205 .start = { in VisitDeclaratorDecl()
223 location.filename.c_str(), location.start.line, location.start.column); in VisitDeclaratorDecl()
400 ss << loc.filename << ":" << loc.start.line << ":" << loc.start.column; in to_string()
/bionic/benchmarks/
Dstdio_benchmark.cpp229 uintptr_t start; 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
248 *start = strtoul(old_str, &str, 16); in ParseMap()
297 uintptr_t start; in BM_stdio_scanf_maps_baseline() local
304 &start, &end, permissions, &offset, &name_pos) != 4) abort(); in BM_stdio_scanf_maps_baseline()
/bionic/libc/kernel/uapi/linux/
Dvirtio_iommu.h29 __u64 start; member
33 __u32 start; member
112 __le64 start; member
Dfib_rules.h42 __u32 start; member
46 __u16 start; member
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsetup.h37 __u32 start; member
55 __u32 start; member
60 __u32 start; member
/bionic/linker/
Dlinker_phdr.cpp583 uint8_t* start = first + n * PAGE_SIZE; in ReserveWithAlignmentPadding() local
587 munmap(mmap_ptr, start - mmap_ptr); in ReserveWithAlignmentPadding()
588 munmap(start + size, gap_start - (start + size)); in ReserveWithAlignmentPadding()
594 return start; in ReserveWithAlignmentPadding()
609 void* start; in ReserveAddressSpace() local
617 start = ReserveWithAlignmentPadding(load_size_, kLibraryAlignment, &gap_start_, &gap_size_); in ReserveAddressSpace()
618 if (start == nullptr) { in ReserveAddressSpace()
623 start = address_space->start_addr; in ReserveAddressSpace()
633 load_start_ = start; in ReserveAddressSpace()
634 load_bias_ = reinterpret_cast<uint8_t*>(start) - addr; in ReserveAddressSpace()
/bionic/libc/kernel/uapi/sound/
Dsfnt_info.h82 int start, end; member
116 int start, end; member

123