Home
last modified time | relevance | path

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

1234

/bionic/libc/kernel/uapi/linux/netfilter/
Dnfnetlink_compat.h32 #define NFA_NEST_END(skb,start) \ argument
33 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *) (start); (skb)->len; })
34 #define NFA_NEST_CANCEL(skb,start) \ argument
35 ({ 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/bionic/
Dgrp_pwd.cpp152 id_t start; member
175 if (ranges[0].start > ranges[0].end) return false; in verify_user_ranges_ascending()
178 if (ranges[i].start > ranges[i].end) return false; in verify_user_ranges_ascending()
179 if (ranges[i - 1].end > ranges[i].start) return false; in verify_user_ranges_ascending()
218 if (appid < ranges[0].start && platform_id_secondary_user_allowed(appid)) { in is_valid_app_id()
229 if (appid >= ranges[i].start && appid <= ranges[i].end) { in is_valid_app_id()
250 if (current_id < ranges[0].start) { in get_next_app_id()
251 return ranges[0].start; in get_next_app_id()
259 if (incremented_id > ranges[i - 1].end && incremented_id < ranges[i].start) { in get_next_app_id()
260 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/upstream-netbsd/lib/libc/regex/
Dengine.c114 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
115 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
116 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno …
117 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i…
136 static void at(struct match *m, const char *title, const char *start, const char *stop, sopno start…
162 stepback(const char *start, const char *cur, int nchar) in stepback() argument
176 if ((ret - mbc) < start) in stepback()
191 return (cur - nchar) > start ? cur - nchar : NULL; in stepback()
213 const char *start; in matcher() local
233 start = string + (size_t)pmatch[0].rm_so; in matcher()
[all …]
Dregcomp.c91 sopno start; member
162 static void repeat(struct parse *p, sopno start, int from, int to);
170 static sopno dupl(struct parse *p, sopno start, sopno finish);
724 INSERT(OCH_, bc->start); /* offset is wrong */ in p_branch_ins_offset()
725 bc->fwd = bc->start; in p_branch_ins_offset()
726 bc->back = bc->start; in p_branch_ins_offset()
845 bc.start = HERE(); in p_re()
856 (void) REQUIRE(p->gnuext || HERE() != bc.start, REG_EMPTY); in p_re()
858 if (p->gnuext && HERE() == bc.start && !p_branch_empty(p, &bc)) in p_re()
1179 wint_t start, finish; local
[all …]
/bionic/libc/kernel/uapi/mtd/
Dmtd-abi.h11 __u32 start; member
15 __u64 start; member
19 __u32 start; member
24 __u64 start; member
35 __u64 start; member
49 __u64 start; member
100 __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/libc/malloc_debug/
DMapData.h42 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len, in MapEntry() argument
44 : start_(start), end_(end), offset_(offset), name_(name, name_len), flags_(flags) {} in MapEntry()
59 uintptr_t start() const { return start_; } in start() function
82 bool operator()(const MapEntry* a, const MapEntry* b) const { return a->end() <= b->start(); } in operator()
DMapData.cpp47 uintptr_t start; in parse_line() local
53 if (sscanf(line, "%" PRIxPTR "-%" PRIxPTR " %4s %" PRIxPTR " %*x:%*x %*d %n", &start, &end, in parse_line()
72 MapEntry* entry = new MapEntry(start, end, offset, name, name_len, flags); in parse_line()
194 *rel_pc = pc - entry->start() + entry->offset() + prev_entry->GetLoadBias(); in find()
199 *rel_pc = pc - entry->start() + entry->offset() + entry->GetLoadBias(); in find()
DConfig.cpp430 const char* start = cur; in GetOption() local
433 *option = std::string(start, cur - start); in GetOption()
444 start = cur; in GetOption()
447 if (cur != start) { in GetOption()
448 *value = std::string(start, cur - start); in GetOption()
/bionic/libc/tools/
Dgenerate_notice.py79 start = i
81 while start > 0:
82 if "/*" in lines[start - 1]:
84 start -= 1
106 for line in lines[start:end]:
/bionic/tests/
Dmalloc_iterate_test.cpp99 auto callback = [&](uint64_t start, uint64_t end, uint16_t, uint64_t, ino_t, const char* name, in VerifyPtrs()
103 malloc_iterate(start, end - start, SavePointers, test_data); in VerifyPtrs()
197 auto callback = [&](uint64_t start, uint64_t end, uint16_t, uint64_t, ino_t, const char* name, in TEST()
202 malloc_iterate(start, end - start, SavePointers, &test_data); in TEST()
213 start, end, total); in TEST()
Dsys_prctl_test.cpp53 uintptr_t start; in TEST() local
55 ASSERT_EQ(2, sscanf(lines[i].c_str(), "%" SCNxPTR "-%" SCNxPTR " ", &start, &end)) in TEST()
58 ASSERT_GE(start, last_end) in TEST()
Ddlext_test.cpp326 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() local
327 ASSERT_TRUE(start != MAP_FAILED); in TEST_F()
330 extinfo.reserved_addr = start; in TEST_F()
336 EXPECT_GE(reinterpret_cast<void*>(f), start); in TEST_F()
338 reinterpret_cast<char*>(start) + kLibSize); in TEST_F()
345 void* new_start = mmap(start, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
346 ASSERT_NE(start, new_start) << "dlclose unmapped reserved space"; in TEST_F()
350 void* start = mmap(nullptr, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F() local
351 ASSERT_TRUE(start != MAP_FAILED); in TEST_F()
354 extinfo.reserved_addr = start; in TEST_F()
[all …]
/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.cpp251 static FileLocation findNextSemicolon(const std::deque<std::string>& lines, FileLocation start) { in findNextSemicolon() argument
252 unsigned current_line = start.line; in findNextSemicolon()
253 unsigned current_column = start.column; in findNextSemicolon()
270 errx(1, "failed to find semicolon starting from %u:%u", start.line, start.column); in findNextSemicolon()
295 FileLocation end_location = next->first.start; in mergeGuards()
408 file_lines[loc.start.line - 1].insert(loc.start.column - 1, prologue); in rewriteFile()
DDeclarationDatabase.cpp206 .start = { in VisitDeclaratorDecl()
224 location.filename.c_str(), location.start.line, location.start.column); in VisitDeclaratorDecl()
401 ss << loc.filename << ":" << loc.start.line << ":" << loc.start.column; in to_string()
/bionic/libc/kernel/uapi/linux/
Df2fs.h48 __u64 start; member
52 __u64 start; member
66 __u64 start; member
Dvirtio_iommu.h18 __le64 start; member
22 __le32 start; member
105 __le64 start; member
Dvduse.h30 __u64 start; member
90 __u64 start; member
113 __u64 start; member
Dfib_rules.h30 __u32 start; member
34 __u16 start; member
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsetup.h25 __u32 start; member
43 __u32 start; member
48 __u32 start; member
/bionic/benchmarks/
Dstdio_benchmark.cpp228 uintptr_t start; in BM_stdio_scanf_maps() local
235 &start, &end, permissions, &offset, &name_pos) != 4) abort(); in BM_stdio_scanf_maps()
241 static int ParseMap(const char* line, const char* /*fmt*/, uintptr_t* start, uintptr_t* end, in ParseMap() argument
247 *start = strtoul(old_str, &str, 16); in ParseMap()
296 uintptr_t start; in BM_stdio_scanf_maps_baseline() local
303 &start, &end, permissions, &offset, &name_pos) != 4) abort(); in BM_stdio_scanf_maps_baseline()

1234