/freebsd-current/contrib/ncurses/ncurses/base/ |
H A D | lib_redrawln.c | 46 wredrawln(WINDOW *win, int beg, int num) argument 53 T((T_CALLED("wredrawln(%p,%d,%d)"), (void *) win, beg, num)); 60 if (beg < 0) 61 beg = 0; 63 if (touchline(win, beg, num) == ERR) 66 if (touchline(CurScreen(sp), beg + win->_begy, num) == ERR) 69 end = beg + num; 80 for (i = beg; i < end; i++) {
|
/freebsd-current/contrib/nvi/vi/ |
H A D | v_increment.c | 54 size_t beg, blen, end, len, nlen, wlen; local 89 for (beg = vp->m_start.cno; beg < len && ISSPACE(p[beg]); ++beg); 90 if (beg >= len) 92 if (beg != vp->m_start.cno) { 93 sp->cno = beg; 108 wlen = len - beg; 109 if (p[beg] [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_posix.cpp | 82 static bool TryProtectRange(uptr beg, uptr end) { argument 83 CHECK_LE(beg, end); 84 if (beg == end) 86 return beg == (uptr)MmapFixedNoAccess(beg, end - beg); 89 static void ProtectRange(uptr beg, uptr end) { argument 90 if (!TryProtectRange(beg, end)) { 91 Printf("FATAL: ThreadSanitizer can not protect [%zx,%zx]\n", beg, end);
|
/freebsd-current/lib/libc/gen/ |
H A D | timezone.c | 54 char *beg, local 57 if ( (beg = getenv("TZNAME")) ) { /* set in environment */ 58 if ((end = strchr(beg, ','))) { /* "PST,PDT" */ 62 (void)strncpy(czone,beg,sizeof(czone) - 1); 67 return(beg);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_poisoning.cpp | 48 uptr beg = d & ~3UL; local 50 if (beg < d) { 51 u32 o = GetOriginIfPoisoned((uptr)src, beg + 4 - d); 54 *(u32 *)MEM_TO_ORIGIN(beg) = o; 56 beg += 4; 61 if (end < beg) return; 72 if (beg < end) { 79 u32 *src_end = (u32 *)MEM_TO_ORIGIN(s + (end - beg)); 80 u32 *dst = (u32 *)MEM_TO_ORIGIN(beg); 92 REAL(memcpy)((void *)MEM_TO_ORIGIN(beg), (voi 116 uptr beg = d & ~3UL; local 235 uptr beg = x & ~3UL; // align down. local [all...] |
H A D | msan_linux.cpp | 42 void ReportMapRange(const char *descr, uptr beg, uptr size) { argument 44 uptr end = beg + size - 1; 45 VPrintf(1, "%s : 0x%zx - 0x%zx\n", descr, beg, end); 49 static bool CheckMemoryRangeAvailability(uptr beg, uptr size, bool verbose) { argument 51 uptr end = beg + size - 1; 52 if (!MemoryRangeIsAvailable(beg, end)) { 54 Printf("FATAL: Memory range 0x%zx - 0x%zx is not available.\n", beg, 62 static bool ProtectMemoryRange(uptr beg, uptr size, const char *name) { argument 64 void *addr = MmapFixedNoAccess(beg, size, name); 65 if (beg [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_poisoning.cpp | 109 ShadowSegmentEndpoint beg(beg_addr); 111 if (beg.chunk == end.chunk) { 112 CHECK_LT(beg.offset, end.offset); 113 s8 value = beg.value; 118 if (beg.offset > 0) { 119 *beg.chunk = Min(value, beg.offset); 121 *beg.chunk = kAsanUserPoisonedMemoryMagic; 126 CHECK_LT(beg.chunk, end.chunk); 127 if (beg 173 __asan_region_is_poisoned(uptr beg, uptr size) argument 600 uptr beg = reinterpret_cast<uptr>(beg_p); local 635 uptr beg = reinterpret_cast<uptr>(container_beg_p); local [all...] |
H A D | asan_globals.cpp | 59 FastPoisonShadow(g->beg, g->size_with_redzone, value); 64 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, 68 g.beg + RoundDownTo(g.size, ASAN_SHADOW_GRANULARITY), 77 if (addr <= g.beg - kMinimalDistanceFromAnotherGlobal) return false; 78 if (addr >= g.beg + g.size_with_redzone) return false; 84 bool symbolized = Symbolizer::GetOrInit()->SymbolizeData(g.beg, &info); 86 "%s Global[%p]: beg=%p size=%zu/%zu name=%s source=%s module=%s " 89 prefix, (void *)&g, (void *)g.beg, g.size, g.size_with_redzone, g.name, 165 if (__asan_region_is_poisoned(g->beg, g->size_with_redzone)) { 169 if (g->beg [all...] |
H A D | asan_descriptions.cpp | 226 uptr var_end = var.beg + var.size; 229 // If the variable [var.beg, var_end) is the nearest variable to the 231 if (addr >= var.beg) { 240 if (addr_end > var.beg) 242 else if (addr >= prev_var_end && addr - prev_var_end >= var.beg - addr_end) 246 str.AppendF(" [%zd, %zd)", var.beg, var_end); 281 if (addr < g.beg) { 282 str.AppendF("%p is located %zd bytes before", (void *)addr, g.beg - addr); 283 } else if (addr + access_size > g.beg + g.size) { 284 if (addr < g.beg [all...] |
H A D | asan_interceptors_memintrinsics.h | 28 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { argument 32 uptr last = beg + size - 1; 33 uptr shadow_first = MEM_TO_SHADOW(beg);
|
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFAttribute.cpp | 22 collection::const_iterator beg = m_infos.begin(); local 24 for (pos = beg; pos != end; ++pos) { 26 return std::distance(beg, pos);
|
/freebsd-current/crypto/heimdal/appl/push/ |
H A D | push.c | 315 char *beg, *p; local 336 beg = in_buf; 339 && (p = strstr(beg, "\r\n")) != NULL) { 341 char *copy = beg; 351 if (beg[0] == '.' && beg[1] == '\r' && beg[2] == '\n') { 362 rem -= p - beg + 2; 363 beg = p + 2; 365 char *copy = beg; [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan.cpp | 247 uptr beg = OriginAlignDown(d); local 249 if (beg < d) { 250 ChainAndWriteOriginIfTainted((uptr)src, beg + kOriginAlign - d, beg, stack); 251 beg += kOriginAlign; 256 if (end < beg) 264 if (beg >= end) 271 dfsan_origin *src_end = origin_for((void *)(src_a + (end - beg))); 272 dfsan_origin *dst_o = origin_for((void *)beg); 299 uptr beg local 362 uptr beg = OriginAlignDown(x); local 503 WriteZeroShadowInRange(uptr beg, uptr end) argument 1130 CheckMemoryRangeAvailability(uptr beg, uptr size) argument 1143 ProtectMemoryRange(uptr beg, uptr size, const char *name) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_libcdep.cpp | 160 // Reserve memory range [beg, end]. 162 void ReserveShadowMemoryRange(uptr beg, uptr end, const char *name, argument 164 CHECK_EQ((beg % GetMmapGranularity()), 0); 166 uptr size = end - beg + 1; 168 if (madvise_shadow ? !MmapFixedSuperNoReserve(beg, size, name) 169 : !MmapFixedNoReserve(beg, size, name)) { 177 DontDumpShadowMemory(beg, size);
|
H A D | sanitizer_libignore.cpp | 84 ignored_code_ranges_[idx].begin = range.beg; 106 if (IsPcInstrumented(range.beg) && IsPcInstrumented(range.end - 1)) 109 range.beg, range.end, mod.full_name()); 113 instrumented_code_ranges_[idx].begin = range.beg;
|
H A D | sanitizer_interface_internal.h | 65 void __sanitizer_annotate_contiguous_container(const void *beg, const void *end, 74 int __sanitizer_verify_contiguous_container(const void *beg, const void *mid, 81 const void *__sanitizer_contiguous_container_find_bad_address(const void *beg,
|
H A D | sanitizer_tls_get_addr.h | 46 // If beg == 0, the chunk is unused. 48 uptr beg, size; member in struct:__sanitizer::DTLS::DTV
|
H A D | sanitizer_coverage_libcdep_new.cpp | 191 static void Cov8bitCountersInit(char* beg, char* end) { argument 192 counters_beg = beg; 197 static void CovPcsInit(const uptr* beg, const uptr* end) { argument 198 pcs_beg = beg; 277 SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_pcs_init, const uptr* beg, argument 279 __sancov::SingletonCounterCoverage::CovPcsInit(beg, end);
|
/freebsd-current/usr.bin/mail/ |
H A D | list.c | 112 int tok, beg, mc, star, other, valdot, colmod, colresult; local 125 beg = 0; 136 if (beg != 0) { 139 for (i = beg; i <= lexnumber; i++) 142 beg = 0; 145 beg = lexnumber; 146 if (check(beg, f)) 151 mark(beg); 152 beg = 0; 157 if (beg ! [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | common_interface_defs.h | 118 /// <c>[beg, end)</c>; the memory <c>[beg, mid)</c> is used to store the 120 /// elements (<c>beg <= mid <= end</c>). For example, in 124 /// beg = &v[0]; 125 /// end = beg + v.capacity() * sizeof(v[0]); 126 /// mid = beg + v.size() * sizeof(v[0]); 137 /// For ASan, <c><i>beg</i></c> no longer needs to be 8-aligned, 145 /// char *beg = (char*)&x[0]; 146 /// char *end = beg + 12; 147 /// __sanitizer_annotate_contiguous_container(beg, en [all...] |
H A D | asan_interface.h | 101 /// If at least one byte in <c>[beg, beg+size)</c> is poisoned, returns the 104 /// \param beg Start of memory region. 107 void *SANITIZER_CDECL __asan_region_is_poisoned(void *beg, size_t size); 308 /// stack that corresponds to the fake frame and sets <c><i>beg</i></c> and 310 /// NULL and does not touch <c><i>beg</i></c> and <c><i>end</i></c>. 312 /// If <c><i>beg</i></c> or <c><i>end</i></c> are NULL, they are not touched. 319 /// \param[out] beg Beginning of fake frame. 323 void **beg, void **end);
|
/freebsd-current/contrib/kyua/utils/ |
H A D | stream.cpp | 104 is.seekg(current_pos, std::ios::beg); 107 is.seekg(current_pos, std::ios::beg);
|
/freebsd-current/usr.bin/split/ |
H A D | split.c | 354 char beg, end; local 373 beg = '0'; 377 beg = 'a'; 380 pattlen = end - beg + 1; 400 fpnt[1] = beg; 428 fpnt[i] = tfnum % pattlen + beg;
|
/freebsd-current/usr.sbin/pmcstudy/ |
H A D | eval_expr.c | 208 walk_back_and_insert_paren(struct expression **beg, struct expression *frm) argument 222 if (at == *beg) { 227 *beg = ex; 239 /* Skip through until we reach beg or all ( closes */ 254 if (at == *beg) { 315 add_precendence(struct expression **beg, struct expression *start, struct expression *end) argument 338 walk_back_and_insert_paren(beg, at); 350 set_math_precidence(struct expression **beg, struct expression *exp, struct expression **stopped) argument 369 add_precendence(beg, start, end); 374 set_math_precidence(beg, a [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_interceptors.cpp | 200 uptr beg = reinterpret_cast<uptr>(res); local 201 DCHECK(IsAligned(beg, GetPageSize())); 202 if (!MemIsApp(beg) || !MemIsApp(beg + rounded_length - 1)) { 209 __hwasan::TagMemoryAligned(beg, rounded_length, 0); 219 uptr beg = reinterpret_cast<uptr>(addr); local 220 if (length && IsAligned(beg, GetPageSize())) { 223 if (!MemIsApp(beg) || !MemIsApp(beg + rounded_length - 1)) { 227 __hwasan::TagMemoryAligned(beg, rounded_lengt [all...] |