Searched refs:ranges (Results 1 – 9 of 9) sorted by relevance
/bionic/libc/tools/ |
D | test_genseccomp.py | 11 ranges = genseccomp.convert_NRs_to_ranges([("b", 2), ("a", 1)]) 12 self.assertEqual(len(ranges), 1) 13 self.assertEqual(ranges[0].begin, 1) 14 self.assertEqual(ranges[0].end, 3) 15 self.assertEqual(set(ranges[0].names), {"a", "b"}) 17 ranges = genseccomp.convert_NRs_to_ranges([("b", 3), ("a", 1)]) 18 self.assertEqual(len(ranges), 2) 19 self.assertEqual(ranges[0].begin, 1) 20 self.assertEqual(ranges[0].end, 2) 21 self.assertEqual(set(ranges[0].names), {"a"}) [all …]
|
D | genseccomp.py | 139 ranges = [] 141 if not ranges: 142 ranges.append(SyscallRange(name, value)) 145 last_range = ranges[-1] 149 ranges.append(SyscallRange(name, value)) 150 return ranges 159 def convert_to_intermediate_bpf(ranges): argument 160 if len(ranges) == 1: 162 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") + 163 ", //" + "|".join(ranges[0].names)] [all …]
|
/bionic/libc/bionic/ |
D | grp_pwd.cpp | 171 static constexpr bool verify_user_ranges_ascending(T (&ranges)[N]) { in verify_user_ranges_ascending() 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() 214 auto ranges = is_group ? group_ranges : user_ranges; in is_valid_app_id() local 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() 246 auto ranges = is_group ? group_ranges : user_ranges; in get_next_app_id() local 250 if (current_id < ranges[0].start) { in get_next_app_id() 251 return ranges[0].start; in get_next_app_id() [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regex2.h | 127 crange *ranges; member 151 if (cs->ranges[i].min <= ch && ch <= cs->ranges[i].max) in CHIN1()
|
D | regfree.c | 91 free(g->sets[i].ranges); in __weak_alias()
|
D | regcomp.c | 1726 free(cs->ranges); 1803 newranges = reallocarray(cs->ranges, cs->nranges + 1, 1804 sizeof(*cs->ranges)); 1809 cs->ranges = newranges; 1810 cs->ranges[cs->nranges].min = min; 1811 cs->ranges[cs->nranges].max = max;
|
/bionic/libc/kernel/uapi/linux/ |
D | vfio.h | 359 __aligned_u64 ranges; member
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | kvm.h | 185 struct kvm_msr_filter_range ranges[KVM_MSR_FILTER_MAX_RANGES]; member
|
/bionic/docs/ |
D | elf-tls.md | 684 * On arm64, there are different sets of static LE relocations accommodating different ranges of
|