| /freebsd-12.1/usr.bin/dc/ |
| H A D | stack.c | 130 copy = stack->stack[stack->sp]; in stack_swap() 131 stack->stack[stack->sp] = stack->stack[stack->sp-1]; in stack_swap() 132 stack->stack[stack->sp-1] = copy; in stack_swap() 142 stack->stack = breallocarray(stack->stack, in stack_grow() 154 stack->stack[stack->sp].u.num = b; in stack_pushnumber() 155 stack->stack[stack->sp].array = NULL; in stack_pushnumber() 165 stack->stack[stack->sp].array = NULL; in stack_pushstring() 194 return &stack->stack[stack->sp]; in stack_tos() 205 stack->stack[stack->sp] = *v; in stack_set_tos() 217 return &stack->stack[stack->sp--]; in stack_pop() [all …]
|
| H A D | extern.h | 45 void stack_init(struct stack *); 48 void stack_swap(struct stack *); 49 size_t stack_size(const struct stack *); 50 void stack_dup(struct stack *); 52 void stack_pushstring(struct stack *stack, char *); 53 void stack_push(struct stack *, struct value *); 55 struct value *stack_tos(const struct stack *); 56 struct value *stack_pop(struct stack *); 57 struct number *stack_popnumber(struct stack *); 58 char *stack_popstring(struct stack *); [all …]
|
| /freebsd-12.1/contrib/libc++/include/ |
| H A D | stack | 21 class stack 37 stack(const stack& q) = default; 38 stack(stack&& q) = default; 40 stack& operator=(const stack& q) = default; 41 stack& operator=(stack&& q) = default; 128 stack() 133 stack(const stack& __q) : c(__q.c) {} 141 stack(stack&& __q) 146 stack& operator=(stack&& __q) 171 stack(const stack& __s, const _Alloc& __a, [all …]
|
| /freebsd-12.1/contrib/unbound/services/ |
| H A D | modstack.c | 91 stack->num = 0; in modstack_init() 92 stack->mod = NULL; in modstack_init() 101 if(stack->num == 0) { in modstack_config() 105 if(stack->num > MAX_MODULE) { in modstack_config() 112 if(!stack->mod) { in modstack_config() 118 if(!stack->mod[i]) { in modstack_config() 218 if(stack->num != 0) in modstack_setup() 246 stack->num = 0; in modstack_desetup() 247 free(stack->mod); in modstack_desetup() 248 stack->mod = NULL; in modstack_desetup() [all …]
|
| /freebsd-12.1/sys/sys/ |
| H A D | stack.h | 39 struct stack *stack_create(int); 40 void stack_destroy(struct stack *); 41 int stack_put(struct stack *, vm_offset_t); 42 void stack_copy(const struct stack *, struct stack *); 43 void stack_zero(struct stack *); 44 void stack_print(const struct stack *); 45 void stack_print_ddb(const struct stack *); 46 void stack_print_short(const struct stack *); 47 void stack_print_short_ddb(const struct stack *); 63 void stack_save(struct stack *); [all …]
|
| /freebsd-12.1/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_ifstack.c | 38 struct mibifstack *stack; in mib_ifstack_create() local 40 if ((stack = malloc(sizeof(*stack))) == NULL) in mib_ifstack_create() 43 stack->index.len = 2; in mib_ifstack_create() 44 stack->index.subs[0] = upper ? upper->index : 0; in mib_ifstack_create() 47 INSERT_OBJECT_OID(stack, &mibifstack_list); in mib_ifstack_create() 57 struct mibifstack *stack; in mib_ifstack_delete() local 59 TAILQ_FOREACH(stack, &mibifstack_list, link) in mib_ifstack_delete() 62 TAILQ_REMOVE(&mibifstack_list, stack, link); in mib_ifstack_delete() 63 free(stack); in mib_ifstack_delete() 73 struct mibifstack *stack; in op_ifstack() local [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/ |
| H A D | DWARFExpression.cpp | 1735 stack.push_back(stack.back()); in Evaluate() 1749 stack.pop_back(); in Evaluate() 1765 stack.push_back(stack[stack.size() - 2]); in Evaluate() 1777 stack.push_back(stack[pick_idx]); in Evaluate() 1801 stack.back() = stack[stack.size() - 2]; in Evaluate() 1802 stack[stack.size() - 2] = tmp; in Evaluate() 1823 stack[last_idx] = stack[last_idx - 1]; in Evaluate() 1824 stack[last_idx - 1] = stack[last_idx - 2]; in Evaluate() 1864 stack.pop_back(); in Evaluate() 1891 stack.back() = in Evaluate() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_report.cc | 27 stack(stack_) { in ScopedAllocatorErrorReport() 32 stack->Print(); in ~ScopedAllocatorErrorReport() 34 ReportErrorSummary(error_summary, stack); in ~ScopedAllocatorErrorReport() 40 const StackTrace* const stack; member in __sanitizer::ScopedAllocatorErrorReport 45 const StackTrace *stack) { in ReportCallocOverflow() argument 47 ScopedAllocatorErrorReport report("calloc-overflow", stack); in ReportCallocOverflow() 55 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { in ReportPvallocOverflow() argument 57 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); in ReportPvallocOverflow() 97 stack); in ReportInvalidPosixMemalignAlignment() 107 const StackTrace *stack) { in ReportAllocationSizeTooBig() argument [all …]
|
| H A D | sanitizer_symbolizer_report.cc | 78 if (stack->size == 0) { in ReportErrorSummary() 101 stack->Reset(); in ReportMmapWriteExec() 115 stack->Print(); in ReportMmapWriteExec() 180 stack->Reset(); in ReportStackOverflowImpl() 181 unwind(sig, unwind_context, stack); in ReportStackOverflowImpl() 182 stack->Print(); in ReportStackOverflowImpl() 183 ReportErrorSummary(kDescription, stack); in ReportStackOverflowImpl() 210 stack->Reset(); in ReportDeadlySignalImpl() 211 unwind(sig, unwind_context, stack); in ReportDeadlySignalImpl() 212 stack->Print(); in ReportDeadlySignalImpl() [all …]
|
| /freebsd-12.1/sys/dev/smartpqi/ |
| H A D | smartpqi_tag.c | 162 stack->num_elements = max_elem + 1; in pqisrc_init_taglist() 163 stack->head.data = 0; in pqisrc_init_taglist() 168 (stack->num_elements * sizeof(uint32_t))); in pqisrc_init_taglist() 169 if (!(stack->next_index_array)) { in pqisrc_init_taglist() 178 pqisrc_put_tag(stack, index); in pqisrc_init_taglist() 196 if (stack->next_index_array) { in pqisrc_destroy_taglist() 199 stack->next_index_array = NULL; in pqisrc_destroy_taglist() 215 if ( index >= stack->num_elements ) { in pqisrc_put_tag() 221 if ( stack->next_index_array[index] != 0) { in pqisrc_put_tag() 228 cur_head = stack->head; in pqisrc_put_tag() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cc | 59 m->stack_trace_id = StackDepotPut(stack); in RegisterAllocation() 84 return ReportAllocationSizeTooBig(size, stack); in Allocate() 90 ReportOutOfMemory(size, &stack); in Allocate() 95 RegisterAllocation(stack, p, size); in Allocate() 105 ReportCallocOverflow(nmemb, size, &stack); in Calloc() 108 return Allocate(stack, size, 1, true); in Calloc() 123 return ReportAllocationSizeTooBig(new_size, stack); in Reallocate() 126 RegisterAllocation(stack, p, new_size); in Reallocate() 142 const StackTrace &stack) { in lsan_posix_memalign() argument 190 return SetErrnoOnNull(Calloc(nmemb, size, stack)); in lsan_calloc() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cc | 167 ReportOutOfMemory(size, stack); in MsanAllocate() 177 stack->tag = StackTrace::TAG_ALLOC; in MsanAllocate() 178 Origin o = Origin::CreateHeapOrigin(stack); in MsanAllocate() 186 void MsanDeallocate(StackTrace *stack, void *p) { in MsanDeallocate() argument 197 stack->tag = StackTrace::TAG_DEALLOC; in MsanDeallocate() 223 stack->tag = StackTrace::TAG_ALLOC; in MsanReallocate() 233 MsanDeallocate(stack, old_p); in MsanReallocate() 242 ReportCallocOverflow(nmemb, size, stack); in MsanCalloc() 267 MsanDeallocate(stack, ptr); in msan_realloc() 283 ReportPvallocOverflow(size, stack); in msan_pvalloc() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/asan/ |
| H A D | asan_stack.h | 37 stack->Unwind(max_depth, pc, bp, context, 0, 0, fast); in GetStackTrace() 40 stack->size = 0; in GetStackTrace() 52 stack->Unwind(max_depth, pc, bp, context, 0, 0, false); in GetStackTrace() 65 BufferedStackTrace stack; \ 67 stack.size = max_size; \ 69 stack.top_frame_bp = GET_CURRENT_FRAME(); \ 70 stack.trace_buffer[0] = StackTrace::GetCurrentPc(); \ 79 BufferedStackTrace stack; \ 80 GetStackTrace(&stack, kStackTraceMax, pc, bp, 0, \ 105 stack.Print(); \ [all …]
|
| H A D | asan_errors.h | 134 stack(stack_), in ErrorMallocUsableSizeNotOwned() 147 stack(stack_), in ErrorSanitizerGetAllocatedSizeNotOwned() 161 stack(stack_), in ErrorCallocOverflow() 174 stack(stack_), in ErrorPvallocOverflow() 187 stack(stack_), in ErrorInvalidAllocationAlignment() 201 stack(stack_), in ErrorInvalidAlignedAllocAlignment() 215 stack(stack_), in ErrorInvalidPosixMemalignAlignment() 230 stack(stack_), in ErrorAllocationSizeTooBig() 254 stack(stack_), in ErrorOutOfMemory() 271 stack(stack_), in ErrorStringFunctionMemoryRangesOverlap() [all …]
|
| H A D | asan_errors.cc | 57 stack.Print(); in Print() 95 stack.Print(); in Print() 114 stack.Print(); in Print() 134 stack.Print(); in Print() 150 stack->Print(); in Print() 163 stack->Print(); in Print() 176 stack->Print(); in Print() 190 stack->Print(); in Print() 203 stack->Print(); in Print() 223 stack->Print(); in Print() [all …]
|
| H A D | asan_report.h | 63 BufferedStackTrace *stack); 65 void ReportPvallocOverflow(uptr size, BufferedStackTrace *stack); 67 BufferedStackTrace *stack); 69 BufferedStackTrace *stack); 71 BufferedStackTrace *stack); 73 BufferedStackTrace *stack); 74 void ReportRssLimitExceeded(BufferedStackTrace *stack); 75 void ReportOutOfMemory(uptr requested_size, BufferedStackTrace *stack); 81 BufferedStackTrace *stack); 92 BufferedStackTrace *stack); [all …]
|
| H A D | asan_allocator.cc | 139 stack_(stack) { in QuarantineCallback() 406 ReportRssLimitExceeded(stack); in Allocate() 409 CHECK(stack); in Allocate() 446 stack); in Allocate() 463 ReportOutOfMemory(size, stack); in Allocate() 623 ReportFreeNotMalloced(p, stack); in Deallocate() 648 QuarantineChunk(m, ptr, stack); in Deallocate() 692 ReportDoubleFree((uptr)ptr, stack); in ReportInvalidFree() 859 instance.CommitBack(this, &stack); in CommitBack() 908 ReportPvallocOverflow(size, stack); in asan_pvalloc() [all …]
|
| H A D | asan_report.cc | 267 void ReportPvallocOverflow(uptr size, BufferedStackTrace *stack) { in ReportPvallocOverflow() argument 269 ErrorPvallocOverflow error(GetCurrentTidOrInvalid(), stack, size); in ReportPvallocOverflow() 274 BufferedStackTrace *stack) { in ReportInvalidAllocationAlignment() argument 282 BufferedStackTrace *stack) { in ReportInvalidAlignedAllocAlignment() argument 298 BufferedStackTrace *stack) { in ReportAllocationSizeTooBig() argument 305 void ReportRssLimitExceeded(BufferedStackTrace *stack) { in ReportRssLimitExceeded() argument 307 ErrorRssLimitExceeded error(GetCurrentTidOrInvalid(), stack); in ReportRssLimitExceeded() 329 BufferedStackTrace *stack) { in ReportStringFunctionSizeOverflow() argument 341 GetCurrentTidOrInvalid(), stack, beg, end, old_mid, new_mid); in ReportBadParamsToAnnotateContiguousContainer() 422 BufferedStackTrace *stack) { in ReportMacMzReallocUnknown() argument [all …]
|
| /freebsd-12.1/contrib/libstdc++/include/bits/ |
| H A D | stl_stack.h | 98 class stack in _GLIBCXX_BEGIN_NAMESPACE() 108 operator==(const stack<_Tp1, _Seq1>&, const stack<_Tp1, _Seq1>&); in _GLIBCXX_BEGIN_NAMESPACE() 112 operator<(const stack<_Tp1, _Seq1>&, const stack<_Tp1, _Seq1>&); in _GLIBCXX_BEGIN_NAMESPACE() 131 stack(const _Sequence& __c = _Sequence()) in _GLIBCXX_BEGIN_NAMESPACE() 214 operator==(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) 232 operator<(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) 238 operator!=(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) 244 operator>(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) 250 operator<=(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) 256 operator>=(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y)
|
| /freebsd-12.1/contrib/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cc | 162 ReportOutOfMemory(size, stack); in HwasanAllocate() 167 meta->alloc_context_id = StackDepotPut(*stack); in HwasanAllocate() 220 u32 free_context_id = StackDepotPut(*stack); in HwasanDeallocate() 274 HwasanDeallocate(stack, tagged_ptr_old); in HwasanReallocate() 283 ReportCallocOverflow(nmemb, size, stack); in HwasanCalloc() 312 void *hwasan_malloc(uptr size, StackTrace *stack) { in hwasan_malloc() argument 332 HwasanDeallocate(stack, ptr); in hwasan_realloc() 349 ReportPvallocOverflow(size, stack); in hwasan_pvalloc() 377 StackTrace *stack) { in hwasan_posix_memalign() argument 392 void hwasan_free(void *ptr, StackTrace *stack) { in hwasan_free() argument [all …]
|
| H A D | hwasan.h | 81 void *hwasan_malloc(uptr size, StackTrace *stack); 82 void *hwasan_calloc(uptr nmemb, uptr size, StackTrace *stack); 83 void *hwasan_realloc(void *ptr, uptr size, StackTrace *stack); 84 void *hwasan_valloc(uptr size, StackTrace *stack); 85 void *hwasan_pvalloc(uptr size, StackTrace *stack); 89 StackTrace *stack); 90 void hwasan_free(void *ptr, StackTrace *stack); 112 u32 ChainOrigin(u32 id, StackTrace *stack); 124 BufferedStackTrace stack; \ 126 GetStackTrace(&stack, kStackTraceMax, pc, bp, nullptr, \ [all …]
|
| /freebsd-12.1/contrib/libdivsufsort/include/ |
| H A D | divsufsort_private.h | 157 stack[ssize].a = (_a), stack[ssize].b = (_b),\ 158 stack[ssize].c = (_c), stack[ssize++].d = (_d);\ 163 stack[ssize].a = (_a), stack[ssize].b = (_b),\ 164 stack[ssize].c = (_c), stack[ssize].d = (_d), stack[ssize++].e = (_e);\ 170 (_a) = stack[--ssize].a, (_b) = stack[ssize].b,\ 171 (_c) = stack[ssize].c, (_d) = stack[ssize].d;\ 177 (_a) = stack[--ssize].a, (_b) = stack[ssize].b,\ 178 (_c) = stack[ssize].c, (_d) = stack[ssize].d, (_e) = stack[ssize].e;\
|
| /freebsd-12.1/contrib/binutils/binutils/ |
| H A D | prdbg.c | 348 info->stack = n; in push_type() 383 info->stack->type = (char *) xrealloc (info->stack->type, in append_type() 402 len = info->stack->parents ? strlen (info->stack->parents) : 0; in append_parent() 403 info->stack->parents = (char *) xrealloc (info->stack->parents, in append_parent() 428 memcpy (n, info->stack->type, u - info->stack->type); in substitute_type() 480 o = info->stack; in pop_type() 1171 s = info->stack->type + strlen (info->stack->type) - 2; in pr_end_struct_type() 1309 assert (info->stack != NULL && info->stack->next != NULL); in pr_class_baseclass() 1381 memcpy (n, info->stack->type, s - info->stack->type); in pr_class_baseclass() 2192 assert (info->stack != NULL && info->stack->next != NULL); in tg_class_baseclass() [all …]
|
| /freebsd-12.1/sys/contrib/ck/include/ |
| H A D | ck_stack.h | 56 struct ck_stack_entry *stack; in ck_stack_push_upmc() local 58 stack = ck_pr_load_ptr(&target->head); in ck_stack_push_upmc() 59 entry->next = stack; in ck_stack_push_upmc() 62 while (ck_pr_cas_ptr_value(&target->head, stack, entry, &stack) == false) { in ck_stack_push_upmc() 63 entry->next = stack; in ck_stack_push_upmc() 80 struct ck_stack_entry *stack; in ck_stack_trypush_upmc() local 82 stack = ck_pr_load_ptr(&target->head); in ck_stack_trypush_upmc() 83 entry->next = stack; in ck_stack_trypush_upmc() 275 struct ck_stack_entry *stack; in ck_stack_push_mpnc() local 337 stack->head = NULL; in ck_stack_init() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Language/CPlusPlus/ |
| H A D | MSVCUndecoratedNameParser.cpp | 17 std::stack<std::size_t> stack; in MSVCUndecoratedNameParser() local 28 stack.push(i); in MSVCUndecoratedNameParser() 33 if (!stack.empty() && name[stack.top()] == '<') { in MSVCUndecoratedNameParser() 35 stack.pop(); in MSVCUndecoratedNameParser() 40 stack.push(i); in MSVCUndecoratedNameParser() 44 while (!stack.empty()) { in MSVCUndecoratedNameParser() 45 std::size_t top = stack.top(); in MSVCUndecoratedNameParser() 49 stack.pop(); in MSVCUndecoratedNameParser()
|