/netbsd/external/gpl2/grep/dist/src/ |
H A D | search.c | 357 for (beg = end = buf; end < buflim; beg = end) in EGexecute() 370 end = memchr(beg, eol, buflim - beg); in EGexecute() 376 while (beg > buf && beg[-1] != eol) in EGexecute() 377 --beg; in EGexecute() 391 end = memchr (beg, eol, buflim - beg); in EGexecute() 393 while (beg > buf && beg[-1] != eol) in EGexecute() 394 --beg; in EGexecute() 516 for (beg = buf; beg <= buf + size; ++beg) in Fexecute() 531 if (beg > buf && beg[-1] != eol) in Fexecute() 578 while (buf < beg && beg[-1] != eol) in Fexecute() [all …]
|
H A D | grep.c | 501 for (beg = lastnl; beg != lim; beg = memchr (beg, eolbyte, lim - beg), beg++) in nlscan() 557 beg++; in prline() 599 fwrite (beg, 1, lim - beg, stdout); in prline() 604 while (lim-beg && (match_offset = (*execute) (beg, lim - beg, &match_size, 1)) in prline() 621 fwrite (beg, 1, lim - beg, stdout); in prline() 663 p = beg; in prtext() 726 p = beg; in grepbuf() 776 char *beg; in grep() local 857 beg = lim; in grep() 862 --beg; in grep() [all …]
|
/netbsd/external/gpl2/gettext/dist/gettext-tools/libgrep/ |
H A D | m-fgrep.c | 52 beg = pattern; in Fcompile() 57 if ((err = kwsincr (ckwset->kwset, beg, lim - beg)) != NULL) in Fcompile() 61 beg = lim; in Fcompile() 85 for (beg = buf; beg <= buf + buf_size; ++beg) in Fexecute() 88 kwsexec (ckwset->kwset, beg, buf + buf_size - beg, &kwsmatch); in Fexecute() 114 if (beg > buf && beg[-1] != eol) in Fexecute() 116 if (beg + len < buf + buf_size && beg[len] != eol) in Fexecute() 154 end = memchr (beg + len, eol, (buf + buf_size) - (beg + len)); in Fexecute() 156 while (buf < beg && beg[-1] != eol) in Fexecute() 157 --beg; in Fexecute() [all …]
|
H A D | m-regex.c | 329 for (beg = end = buf; end < buflim; beg = end) in EGexecute() 345 beg += offset; in EGexecute() 348 end = memchr (beg, eol, buflim - beg); in EGexecute() 357 while (beg > buf && beg[-1] != eol) in EGexecute() 358 --beg; in EGexecute() 371 beg += offset; in EGexecute() 372 end = memchr (beg, eol, buflim - beg); in EGexecute() 377 while (beg > buf && beg[-1] != eol) in EGexecute() 378 --beg; in EGexecute() 385 end = beg + buf_size; in EGexecute() [all …]
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/asan/ |
H A D | asan_poisoning.cc | 122 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region() 133 *beg.chunk = beg.offset; in __asan_poison_memory_region() 135 *beg.chunk = Min(beg.value, beg.offset); in __asan_poison_memory_region() 137 beg.chunk++; in __asan_poison_memory_region() 167 *beg.chunk = 0; in __asan_unpoison_memory_region() 168 beg.chunk++; in __asan_unpoison_memory_region() 170 REAL(memset)(beg.chunk, 0, end.chunk - beg.chunk); in __asan_unpoison_memory_region() 186 if (!AddrIsInMem(beg) && !AddrIsInShadow(beg)) return 0; in __asan_region_is_poisoned() 189 if (!AddrIsInMem(beg)) return beg; in __asan_region_is_poisoned() 208 for (; beg < end; beg++) in __asan_region_is_poisoned() [all …]
|
H A D | asan_descriptions.cc | 226 uptr var_end = var.beg + var.size; in PrintAccessAndVarIntersection() 231 if (addr >= var.beg) { in PrintAccessAndVarIntersection() 240 if (addr_end > var.beg) in PrintAccessAndVarIntersection() 246 str.append(" [%zd, %zd)", var.beg, var_end); in PrintAccessAndVarIntersection() 281 if (addr < g.beg) { in DescribeAddressRelativeToGlobal() 283 g.beg - addr); in DescribeAddressRelativeToGlobal() 285 if (addr < g.beg + g.size) addr = g.beg + g.size; in DescribeAddressRelativeToGlobal() 287 addr - (g.beg + g.size)); in DescribeAddressRelativeToGlobal() 344 if (a.beg == b.beg && in PointsInsideTheSameVariable() 345 a.beg <= addr && in PointsInsideTheSameVariable() [all …]
|
H A D | asan_globals.cc | 59 FastPoisonShadow(g->beg, g->size_with_redzone, value); in PoisonShadowForGlobal() 184 CHECK(AddrIsInMem(g->beg)); in RegisterGlobal() 185 if (!AddrIsAlignedByGranularity(g->beg)) { in RegisterGlobal() 193 CHECK(AddrIsAlignedByGranularity(g->beg)); in RegisterGlobal() 224 CHECK(AddrIsInMem(g->beg)); in UnregisterGlobal() 225 CHECK(AddrIsAlignedByGranularity(g->beg)); in UnregisterGlobal() 271 for (uptr p = g.beg; p < g.beg + g.size - 1; p++) { in PrintGlobalNameIfASCII() 275 if (*(char *)(g.beg + g.size - 1) != '\0') return; in PrintGlobalNameIfASCII() 277 (char *)g.beg); in PrintGlobalNameIfASCII() 357 if (SANITIZER_WINDOWS && globals[i].beg == 0) { in __asan_register_globals() [all …]
|
H A D | asan_interceptors_memintrinsics.h | 27 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { in DECLARE_REAL() 30 return !AddressIsPoisoned(beg) && in DECLARE_REAL() 31 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() 32 !AddressIsPoisoned(beg + size / 2); in DECLARE_REAL() 34 return !AddressIsPoisoned(beg) && in DECLARE_REAL() 35 !AddressIsPoisoned(beg + size / 4) && in DECLARE_REAL() 36 !AddressIsPoisoned(beg + size - 1) && in DECLARE_REAL() 37 !AddressIsPoisoned(beg + 3 * size / 4) && in DECLARE_REAL() 38 !AddressIsPoisoned(beg + size / 2); in DECLARE_REAL()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/asan/ |
H A D | asan_poisoning.cc | 124 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region() 135 *beg.chunk = beg.offset; in __asan_poison_memory_region() 137 *beg.chunk = Min(beg.value, beg.offset); in __asan_poison_memory_region() 139 beg.chunk++; in __asan_poison_memory_region() 169 *beg.chunk = 0; in __asan_unpoison_memory_region() 170 beg.chunk++; in __asan_unpoison_memory_region() 172 REAL(memset)(beg.chunk, 0, end.chunk - beg.chunk); in __asan_unpoison_memory_region() 188 if (!AddrIsInMem(beg) && !AddrIsInShadow(beg)) return 0; in __asan_region_is_poisoned() 191 if (!AddrIsInMem(beg)) return beg; in __asan_region_is_poisoned() 210 for (; beg < end; beg++) in __asan_region_is_poisoned() [all …]
|
H A D | asan_globals.cc | 165 if (g->beg == l->g->beg && in CheckODRViolationViaPoisoning() 202 CHECK(AddrIsInMem(g->beg)); in RegisterGlobal() 203 if (!AddrIsAlignedByGranularity(g->beg)) { in RegisterGlobal() 211 CHECK(AddrIsAlignedByGranularity(g->beg)); in RegisterGlobal() 244 CHECK(AddrIsInMem(g->beg)); in UnregisterGlobal() 245 CHECK(AddrIsAlignedByGranularity(g->beg)); in UnregisterGlobal() 291 for (uptr p = g.beg; p < g.beg + g.size - 1; p++) { in PrintGlobalNameIfASCII() 295 if (*(char *)(g.beg + g.size - 1) != '\0') return; in PrintGlobalNameIfASCII() 297 (char *)g.beg); in PrintGlobalNameIfASCII() 377 if (SANITIZER_WINDOWS && globals[i].beg == 0) { in __asan_register_globals() [all …]
|
H A D | asan_descriptions.cc | 228 uptr var_end = var.beg + var.size; in PrintAccessAndVarIntersection() 233 if (addr >= var.beg) { in PrintAccessAndVarIntersection() 242 if (addr_end > var.beg) in PrintAccessAndVarIntersection() 248 str.append(" [%zd, %zd)", var.beg, var_end); in PrintAccessAndVarIntersection() 283 if (addr < g.beg) { in DescribeAddressRelativeToGlobal() 285 g.beg - addr); in DescribeAddressRelativeToGlobal() 287 if (addr < g.beg + g.size) addr = g.beg + g.size; in DescribeAddressRelativeToGlobal() 289 addr - (g.beg + g.size)); in DescribeAddressRelativeToGlobal() 346 if (a.beg == b.beg && in PointsInsideTheSameVariable() 347 a.beg <= addr && in PointsInsideTheSameVariable() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
H A D | asan_poisoning.cc | 122 *beg.chunk = Min(value, beg.offset); in __asan_poison_memory_region() 133 *beg.chunk = beg.offset; in __asan_poison_memory_region() 135 *beg.chunk = Min(beg.value, beg.offset); in __asan_poison_memory_region() 137 beg.chunk++; in __asan_poison_memory_region() 167 *beg.chunk = 0; in __asan_unpoison_memory_region() 168 beg.chunk++; in __asan_unpoison_memory_region() 170 REAL(memset)(beg.chunk, 0, end.chunk - beg.chunk); in __asan_unpoison_memory_region() 186 if (!AddrIsInMem(beg) && !AddrIsInShadow(beg)) return 0; in __asan_region_is_poisoned() 189 if (!AddrIsInMem(beg)) return beg; in __asan_region_is_poisoned() 208 for (; beg < end; beg++) in __asan_region_is_poisoned() [all …]
|
H A D | asan_descriptions.cc | 226 uptr var_end = var.beg + var.size; in PrintAccessAndVarIntersection() 231 if (addr >= var.beg) { in PrintAccessAndVarIntersection() 240 if (addr_end > var.beg) in PrintAccessAndVarIntersection() 246 str.append(" [%zd, %zd)", var.beg, var_end); in PrintAccessAndVarIntersection() 281 if (addr < g.beg) { in DescribeAddressRelativeToGlobal() 283 g.beg - addr); in DescribeAddressRelativeToGlobal() 285 if (addr < g.beg + g.size) addr = g.beg + g.size; in DescribeAddressRelativeToGlobal() 287 addr - (g.beg + g.size)); in DescribeAddressRelativeToGlobal() 344 if (a.beg == b.beg && in PointsInsideTheSameVariable() 345 a.beg <= addr && in PointsInsideTheSameVariable() [all …]
|
H A D | asan_globals.cc | 59 FastPoisonShadow(g->beg, g->size_with_redzone, value); in PoisonShadowForGlobal() 184 CHECK(AddrIsInMem(g->beg)); in RegisterGlobal() 185 if (!AddrIsAlignedByGranularity(g->beg)) { in RegisterGlobal() 193 CHECK(AddrIsAlignedByGranularity(g->beg)); in RegisterGlobal() 224 CHECK(AddrIsInMem(g->beg)); in UnregisterGlobal() 225 CHECK(AddrIsAlignedByGranularity(g->beg)); in UnregisterGlobal() 271 for (uptr p = g.beg; p < g.beg + g.size - 1; p++) { in PrintGlobalNameIfASCII() 275 if (*(char *)(g.beg + g.size - 1) != '\0') return; in PrintGlobalNameIfASCII() 277 (char *)g.beg); in PrintGlobalNameIfASCII() 357 if (SANITIZER_WINDOWS && globals[i].beg == 0) { in __asan_register_globals() [all …]
|
/netbsd/external/bsd/nvi/dist/vi/ |
H A D | v_increment.c | 99 for (beg = vp->m_start.cno; beg < len && ISSPACE((UCHAR_T)p[beg]); ++beg); in v_increment() 100 if (beg >= len) in v_increment() 103 sp->cno = beg; in v_increment() 118 (p[beg + 1] == L('X') || p[beg + 1] == L('x'))) { in v_increment() 120 end = beg + 2; in v_increment() 126 end = beg + 1; in v_increment() 132 end = beg + 1; in v_increment() 138 end = beg; in v_increment() 187 t = &p[beg]; in v_increment() 238 MEMMOVEW(bp + beg + nlen, p + end, len - beg - (end - beg)); in v_increment() [all …]
|
/netbsd/bin/ksh/ |
H A D | expand.h | 11 char *end, *beg; /* end, begin of string */ member 23 (xs).end = (xs).beg + (xs).len; \ 24 xp = (xs).beg; \ 48 #define Xstring(xs, xp) ((xs).beg) 51 #define Xlength(xs, xp) ((xp) - (xs).beg) 53 #define Xsavepos(xs, xp) ((xp) - (xs).beg) 70 (x).cur = (x).beg = vp__; \ 77 (x).beg = (void**) aresize((void*) (x).beg, \ 79 (x).cur = (x).beg + n; \ 85 #define XPptrv(x) ((x).beg) [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/msan/ |
H A D | msan_poisoning.cc | 48 uptr beg = d & ~3UL; in CopyOrigin() local 50 if (beg < d) { in CopyOrigin() 54 *(u32 *)MEM_TO_ORIGIN(beg) = o; in CopyOrigin() 56 beg += 4; in CopyOrigin() 61 if (end < beg) return; in CopyOrigin() 72 if (beg < end) { in CopyOrigin() 80 u32 *dst = (u32 *)MEM_TO_ORIGIN(beg); in CopyOrigin() 93 end - beg); in CopyOrigin() 158 if (beg & 7ULL) { in SetOrigin() 159 *(u32 *)beg = origin; in SetOrigin() [all …]
|
H A D | msan_linux.cc | 39 void ReportMapRange(const char *descr, uptr beg, uptr size) { in ReportMapRange() argument 41 uptr end = beg + size - 1; in ReportMapRange() 42 VPrintf(1, "%s : %p - %p\n", descr, beg, end); in ReportMapRange() 48 uptr end = beg + size - 1; in CheckMemoryRangeAvailability() 49 if (!MemoryRangeIsAvailable(beg, end)) { in CheckMemoryRangeAvailability() 59 void *addr = MmapFixedNoAccess(beg, size, name); in ProtectMemoryRange() 60 if (beg == 0 && addr) { in ProtectMemoryRange() 64 beg += gap; in ProtectMemoryRange() 66 addr = MmapFixedNoAccess(beg, size, name); in ProtectMemoryRange() 68 if ((uptr)addr != beg) { in ProtectMemoryRange() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/ |
H A D | throw_allocator.h | 204 while (beg != end) in _GLIBCXX_VISIBILITY() 208 ++beg; in _GLIBCXX_VISIBILITY() 216 while (beg != end) in _GLIBCXX_VISIBILITY() 220 ++beg; in _GLIBCXX_VISIBILITY() 241 while (beg != end) in _GLIBCXX_VISIBILITY() 244 ++beg; in _GLIBCXX_VISIBILITY() 252 while (beg != end) in _GLIBCXX_VISIBILITY() 255 ++beg; in _GLIBCXX_VISIBILITY() 294 ++beg; in _GLIBCXX_VISIBILITY() 393 for (; beg != end; ++beg) in _GLIBCXX_VISIBILITY() [all …]
|
/netbsd/external/gpl3/gcc/dist/libstdc++-v3/include/ext/ |
H A D | throw_allocator.h | 204 while (beg != end) in _GLIBCXX_VISIBILITY() 208 ++beg; in _GLIBCXX_VISIBILITY() 216 while (beg != end) in _GLIBCXX_VISIBILITY() 220 ++beg; in _GLIBCXX_VISIBILITY() 241 while (beg != end) in _GLIBCXX_VISIBILITY() 244 ++beg; in _GLIBCXX_VISIBILITY() 252 while (beg != end) in _GLIBCXX_VISIBILITY() 255 ++beg; in _GLIBCXX_VISIBILITY() 294 ++beg; in _GLIBCXX_VISIBILITY() 393 for (; beg != end; ++beg) in _GLIBCXX_VISIBILITY() [all …]
|
/netbsd/external/gpl2/gmake/dist/ |
H A D | expand.c | 246 register char *beg = p + 1; in variable_expand_string() local 263 end = strchr (beg, closeparen); in variable_expand_string() 267 p1 = lindex (beg, end, '$'); in variable_expand_string() 273 for (p = beg; *p != '\0'; ++p) in variable_expand_string() 285 beg = expand_argument (beg, p); /* Expand the name. */ in variable_expand_string() 287 end = strchr (beg, '\0'); in variable_expand_string() 300 colon = lindex (beg, end, ':'); in variable_expand_string() 320 v = lookup_variable (beg, colon - beg); in variable_expand_string() 322 warn_undefined (beg, colon - beg); in variable_expand_string() 376 o = reference_variable (o, beg, end - beg); in variable_expand_string() [all …]
|
/netbsd/external/gpl3/gdb/dist/gprof/ |
H A D | search_list.c | 31 const char *beg, *colon; in search_list_append() local 37 beg = colon + 1; in search_list_append() 38 colon = strchr (beg, PATH_SEP_CHAR); in search_list_append() 41 len = colon - beg; in search_list_append() 43 len = strlen (beg); in search_list_append() 46 memcpy (new_el->path, beg, len); in search_list_append()
|
/netbsd/external/gpl3/binutils/dist/gprof/ |
H A D | search_list.c | 31 const char *beg, *colon; in search_list_append() local 37 beg = colon + 1; in search_list_append() 38 colon = strchr (beg, PATH_SEP_CHAR); in search_list_append() 41 len = colon - beg; in search_list_append() 43 len = strlen (beg); in search_list_append() 46 memcpy (new_el->path, beg, len); in search_list_append()
|
/netbsd/external/gpl3/binutils.old/dist/gprof/ |
H A D | search_list.c | 31 const char *beg, *colon; in search_list_append() local 37 beg = colon + 1; in search_list_append() 38 colon = strchr (beg, PATH_SEP_CHAR); in search_list_append() 41 len = colon - beg; in search_list_append() 43 len = strlen (beg); in search_list_append() 46 memcpy (new_el->path, beg, len); in search_list_append()
|
/netbsd/external/gpl3/gdb.old/dist/gprof/ |
H A D | search_list.c | 31 const char *beg, *colon; in search_list_append() local 37 beg = colon + 1; in search_list_append() 38 colon = strchr (beg, PATH_SEP_CHAR); in search_list_append() 41 len = colon - beg; in search_list_append() 43 len = strlen (beg); in search_list_append() 46 memcpy (new_el->path, beg, len); in search_list_append()
|