/freebsd-11-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_redrawln.c | 45 wredrawln(WINDOW *win, int beg, int num) argument 52 T((T_CALLED("wredrawln(%p,%d,%d)"), (void *) win, beg, num)); 59 if (beg < 0) 60 beg = 0; 62 if (touchline(win, beg, num) == ERR) 65 if (touchline(CurScreen(sp), beg + win->_begy, num) == ERR) 68 end = beg + num; 79 for (i = beg; i < end; i++) {
|
/freebsd-11-stable/contrib/nvi/vi/ |
H A D | v_increment.c | 58 size_t beg, blen, end, len, nlen, wlen; local 93 for (beg = vp->m_start.cno; beg < len && ISSPACE(p[beg]); ++beg); 94 if (beg >= len) 96 if (beg != vp->m_start.cno) { 97 sp->cno = beg; 112 wlen = len - beg; 113 if (p[beg] [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_poisoning.cpp | 113 ShadowSegmentEndpoint beg(beg_addr); 115 if (beg.chunk == end.chunk) { 116 CHECK_LT(beg.offset, end.offset); 117 s8 value = beg.value; 122 if (beg.offset > 0) { 123 *beg.chunk = Min(value, beg.offset); 125 *beg.chunk = kAsanUserPoisonedMemoryMagic; 130 CHECK_LT(beg.chunk, end.chunk); 131 if (beg 181 __asan_region_is_poisoned(uptr beg, uptr size) argument 361 uptr beg = reinterpret_cast<uptr>(beg_p); local [all...] |
H A D | asan_interceptors_memintrinsics.h | 28 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { argument 31 return !AddressIsPoisoned(beg) && 32 !AddressIsPoisoned(beg + size - 1) && 33 !AddressIsPoisoned(beg + size / 2); 35 return !AddressIsPoisoned(beg) && 36 !AddressIsPoisoned(beg + size / 4) && 37 !AddressIsPoisoned(beg + size - 1) && 38 !AddressIsPoisoned(beg + 3 * size / 4) && 39 !AddressIsPoisoned(beg + size / 2);
|
H A D | asan_globals.cpp | 60 FastPoisonShadow(g->beg, g->size_with_redzone, value); 65 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, 69 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY), 79 if (addr <= g.beg - kMinimalDistanceFromAnotherGlobal) return false; 80 if (addr >= g.beg + g.size_with_redzone) return false; 86 "%s Global[%p]: beg=%p size=%zu/%zu name=%s module=%s dyn_init=%zu " 88 prefix, &g, (void *)g.beg, g.size, g.size_with_redzone, g.name, 161 if (__asan_region_is_poisoned(g->beg, g->size_with_redzone)) { 165 if (g->beg == l->g->beg [all...] |
H A D | asan_shadow_setup.cpp | 26 // Reserve memory range [beg, end]. 28 void ReserveShadowMemoryRange(uptr beg, uptr end, const char *name) { argument 29 CHECK_EQ((beg % GetMmapGranularity()), 0); 31 uptr size = end - beg + 1; 33 if (!MmapFixedSuperNoReserve(beg, size, name)) { 40 if (common_flags()->use_madv_dontdump) DontDumpShadowMemory(beg, size);
|
H A D | asan_descriptions.cpp | 227 uptr var_end = var.beg + var.size; 230 // If the variable [var.beg, var_end) is the nearest variable to the 232 if (addr >= var.beg) { 241 if (addr_end > var.beg) 243 else if (addr >= prev_var_end && addr - prev_var_end >= var.beg - addr_end) 247 str.append(" [%zd, %zd)", var.beg, var_end); 282 if (addr < g.beg) { 284 g.beg - addr); 285 } else if (addr + access_size > g.beg + g.size) { 286 if (addr < g.beg [all...] |
H A D | asan_fake_stack.cpp | 117 uptr beg = reinterpret_cast<uptr>(GetFrame(stack_size_log, 0, 0)); local 119 if (ptr < beg || ptr >= end) return 0; 120 uptr class_id = (ptr - beg) >> stack_size_log; 121 uptr base = beg + (class_id << stack_size_log); 248 void *__asan_addr_is_in_fake_stack(void *fake_stack, void *addr, void **beg, argument 258 if (beg) *beg = reinterpret_cast<void*>(frame_beg);
|
/freebsd-11-stable/gnu/usr.bin/grep/ |
H A D | search.c | 327 register char const *buflim, *beg, *end; local 364 for (beg = end = buf; end < buflim; beg = end) 382 offset = kwsexec (kwset, beg, buflim - beg, &kwsm); 391 size_t mlen = mbrlen (beg, bytes_left, &mbs); 393 last_char = beg; 398 beg++; 411 beg += mlen; 417 beg 686 char const *beg, *lim, *err; local 897 register char const *beg, *try, *end; local [all...] |
H A D | grep.c | 562 char const *beg; local 563 for (beg = lastnl; beg != lim; beg = memchr (beg, eolbyte, lim - beg), beg++) 588 prline (char const *beg, char const *lim, int sep) argument 594 nlscan (beg); 601 uintmax_t pos = add_count (totalcc, beg 686 prtext(char const *beg, char const *lim, int *nlinesp) argument 751 grepbuf(char const *beg, char const *lim) argument 809 char *beg; local [all...] |
/freebsd-11-stable/contrib/gcc/config/ |
H A D | svr3.h | 144 func_ptr *p, *beg = alloca (0); \ 145 for (p = beg; *p; p++) \ 147 while (p != beg) \ 156 func_ptr *p, *beg = alloca (0); \ 157 for (p = beg; *p; ) \
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | timezone.c | 58 char *beg, local 61 if ( (beg = getenv("TZNAME")) ) { /* set in environment */ 62 if ((end = strchr(beg, ','))) { /* "PST,PDT" */ 66 (void)strncpy(czone,beg,sizeof(czone) - 1); 71 return(beg);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_poisoning.cpp | 47 uptr beg = d & ~3UL; local 49 if (beg < d) { 50 u32 o = GetOriginIfPoisoned((uptr)src, d - beg); 53 *(u32 *)MEM_TO_ORIGIN(beg) = o; 55 beg += 4; 60 if (end < beg) return; 71 if (beg < end) { 78 u32 *src_end = (u32 *)MEM_TO_ORIGIN(s + (end - beg)); 79 u32 *dst = (u32 *)MEM_TO_ORIGIN(beg); 91 REAL(memcpy)((void *)MEM_TO_ORIGIN(beg), (voi 152 uptr beg = x & ~3UL; // align down. local [all...] |
H A D | msan_linux.cpp | 38 void ReportMapRange(const char *descr, uptr beg, uptr size) { argument 40 uptr end = beg + size - 1; 41 VPrintf(1, "%s : %p - %p\n", descr, beg, end); 45 static bool CheckMemoryRangeAvailability(uptr beg, uptr size) { argument 47 uptr end = beg + size - 1; 48 if (!MemoryRangeIsAvailable(beg, end)) { 49 Printf("FATAL: Memory range %p - %p is not available.\n", beg, end); 56 static bool ProtectMemoryRange(uptr beg, uptr size, const char *name) { argument 58 void *addr = MmapFixedNoAccess(beg, size, name); 59 if (beg [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_posix.cpp | 116 static void ProtectRange(uptr beg, uptr end) { argument 117 CHECK_LE(beg, end); 118 if (beg == end) 120 if (beg != (uptr)MmapFixedNoAccess(beg, end - beg)) { 121 Printf("FATAL: ThreadSanitizer can not protect [%zx,%zx]\n", beg, end);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_tls_get_addr.h | 37 // If beg == 0, the chunk is unused. 39 uptr beg, size; member in struct:__sanitizer::DTLS::DTV
|
H A D | sanitizer_interface_internal.h | 61 void __sanitizer_annotate_contiguous_container(const void *beg, 66 int __sanitizer_verify_contiguous_container(const void *beg, const void *mid, 70 const void *beg, const void *mid, const void *end);
|
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;
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFAttribute.cpp | 19 collection::const_iterator beg = m_infos.begin(); local 21 for (pos = beg; pos != end; ++pos) { 23 return std::distance(beg, pos);
|
/freebsd-11-stable/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-11-stable/usr.bin/mail/ |
H A D | list.c | 118 int tok, beg, mc, star, other, valdot, colmod, colresult; local 131 beg = 0; 142 if (beg != 0) { 145 for (i = beg; i <= lexnumber; i++) 148 beg = 0; 151 beg = lexnumber; 152 if (check(beg, f)) 157 mark(beg); 158 beg = 0; 163 if (beg ! [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | common_interface_defs.h | 110 /// <c>[beg, end)</c>; the memory <c>[beg, mid)</c> is used to store the 112 /// elements (<c>beg <= mid <= end</c>). For example, in 116 /// beg = &v[0]; 117 /// end = beg + v.capacity() * sizeof(v[0]); 118 /// mid = beg + v.size() * sizeof(v[0]); 129 /// For ASan, <c><i>beg</i></c> should be 8-aligned and <c><i>end</i></c> 136 /// char *beg = (char *)&x[0]; 137 /// char *end = beg + 12; // Not 8-aligned, not the end of the buffer 143 /// char *beg [all...] |
H A D | asan_interface.h | 92 /// If at least one byte in <c>[beg, beg+size)</c> is poisoned, returns the 95 /// \param beg Start of memory region. 98 void *__asan_region_is_poisoned(void *beg, size_t size); 294 /// stack that corresponds to the fake frame and sets <c><i>beg</i></c> and 296 /// NULL and does not touch <c><i>beg</i></c> and <c><i>end</i></c>. 298 /// If <c><i>beg</i></c> or <c><i>end</i></c> are NULL, they are not touched. 305 /// \param beg [out] Beginning of fake frame. 308 void *__asan_addr_is_in_fake_stack(void *fake_stack, void *addr, void **beg,
|
/freebsd-11-stable/usr.sbin/pmcstudy/ |
H A D | eval_expr.c | 211 walk_back_and_insert_paren(struct expression **beg, struct expression *frm) argument 225 if (at == *beg) { 230 *beg = ex; 242 /* Skip through until we reach beg or all ( closes */ 257 if (at == *beg) { 318 add_precendence(struct expression **beg, struct expression *start, struct expression *end) argument 341 walk_back_and_insert_paren(beg, at); 353 set_math_precidence(struct expression **beg, struct expression *exp, struct expression **stopped) argument 372 add_precendence(beg, start, end); 377 set_math_precidence(beg, a [all...] |
/freebsd-11-stable/contrib/mdocml/ |
H A D | out.c | 290 const char *beg; /* Beginning of the current line. */ local 299 for (beg = str; beg != NULL && *beg != '\0'; beg = end) { 300 end = mw ? strchr(beg, ' ') : NULL; 306 wsz = (*tbl->slen)(beg, tbl->arg);
|