Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 1111) sorted by relevance

12345678910>>...45

/freebsd/usr.bin/dc/
H A Dstack.c128 copy = stack->stack[stack->sp]; in stack_swap()
129 stack->stack[stack->sp] = stack->stack[stack->sp-1]; in stack_swap()
130 stack->stack[stack->sp-1] = copy; in stack_swap()
140 stack->stack = breallocarray(stack->stack, in stack_grow()
152 stack->stack[stack->sp].u.num = b; in stack_pushnumber()
153 stack->stack[stack->sp].array = NULL; in stack_pushnumber()
163 stack->stack[stack->sp].array = NULL; in stack_pushstring()
192 return &stack->stack[stack->sp]; in stack_tos()
203 stack->stack[stack->sp] = *v; in stack_set_tos()
215 return &stack->stack[stack->sp--]; in stack_pop()
[all …]
H A Dextern.h44 void stack_init(struct stack *);
47 void stack_swap(struct stack *);
48 size_t stack_size(const struct stack *);
49 void stack_dup(struct stack *);
51 void stack_pushstring(struct stack *stack, char *);
52 void stack_push(struct stack *, struct value *);
54 struct value *stack_tos(const struct stack *);
55 struct value *stack_pop(struct stack *);
56 struct number *stack_popnumber(struct stack *);
57 char *stack_popstring(struct stack *);
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dhanoi-include.exp1 Move the upper disk from stack A to stack C.
2 Move the upper disk from stack A to stack B.
3 Move the upper disk from stack C to stack B.
4 Move the upper disk from stack A to stack C.
5 Move the upper disk from stack B to stack A.
6 Move the upper disk from stack B to stack C.
7 Move the upper disk from stack A to stack C.
8 Move the upper disk from stack A to stack B.
9 Move the upper disk from stack C to stack B.
10 Move the upper disk from stack C to stack A.
[all …]
/freebsd/contrib/libcbor/test/
H A Dcallbacks_test.c42 .stack = &stack, in test_builder_byte_string_callback_append()
82 .stack = &stack, in test_builder_byte_string_callback_append_alloc_failure()
114 .stack = &stack, in test_builder_byte_string_callback_append_item_alloc_failure()
148 .stack = &stack, in test_builder_byte_string_callback_append_parent_alloc_failure()
181 .stack = &stack, in test_builder_string_callback_append()
218 .stack = &stack, in test_builder_string_callback_append_alloc_failure()
249 .stack = &stack, in test_builder_string_callback_append_item_alloc_failure()
281 .stack = &stack, in test_builder_string_callback_append_parent_alloc_failure()
313 .stack = &stack, in test_append_array_failure()
342 .stack = &stack, in test_append_map_failure()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dstack14 stack synopsis
20 class stack
36 stack(const stack& q) = default;
37 stack(stack&& q) = default;
39 stack& operator=(const stack& q) = default;
40 stack& operator=(stack&& q) = default;
49 template <class Alloc> stack(const stack& c, const Alloc& a);
50 template <class Alloc> stack(stack&& c, const Alloc& a);
109 void swap(stack<T, Container>& x, stack<T, Container>& y)
133 // [stack.syn]
[all …]
/freebsd/contrib/unbound/services/
H A Dmodstack.c94 stack->num = 0; in modstack_init()
95 stack->mod = NULL; in modstack_init()
104 if(stack->num == 0) { in modstack_config()
108 if(stack->num > MAX_MODULE) { in modstack_config()
110 stack->num, MAX_MODULE); in modstack_config()
115 if(!stack->mod) { in modstack_config()
121 if(!stack->mod[i]) { in modstack_config()
230 if(stack->num != 0)
258 stack->num = 0;
259 free(stack->mod);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DDWARFExpression.cpp1316 stack.push_back(stack.back()); in Evaluate()
1328 stack.pop_back(); in Evaluate()
1342 stack.push_back(stack[stack.size() - 2]); in Evaluate()
1352 stack.push_back(stack[stack.size() - 1 - pick_idx]); in Evaluate()
1374 stack.back() = stack[stack.size() - 2]; in Evaluate()
1375 stack[stack.size() - 2] = tmp; in Evaluate()
1394 stack[last_idx] = stack[last_idx - 1]; in Evaluate()
1395 stack[last_idx - 1] = stack[last_idx - 2]; in Evaluate()
1431 stack.pop_back(); in Evaluate()
2612 if (stack.empty()) { in Evaluate()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_report.cpp26 stack(stack_) { in ScopedAllocatorErrorReport()
31 stack->Print(); in ~ScopedAllocatorErrorReport()
33 ReportErrorSummary(error_summary, stack); in ~ScopedAllocatorErrorReport()
39 const StackTrace* const stack; member in __sanitizer::ScopedAllocatorErrorReport
44 const StackTrace *stack) { in ReportCallocOverflow() argument
46 ScopedAllocatorErrorReport report("calloc-overflow", stack); in ReportCallocOverflow()
55 const StackTrace *stack) { in ReportReallocArrayOverflow() argument
68 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); in ReportPvallocOverflow()
108 stack); in ReportInvalidPosixMemalignAlignment()
130 ScopedAllocatorErrorReport report("out-of-memory", stack); in ReportOutOfMemory()
[all …]
H A Dsanitizer_allocator_report.h23 const StackTrace *stack);
25 const StackTrace *stack);
26 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack);
28 const StackTrace *stack);
30 const StackTrace *stack);
32 const StackTrace *stack);
34 const StackTrace *stack);
35 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack);
36 void NORETURN ReportRssLimitExceeded(const StackTrace *stack);
/freebsd/sys/sys/
H A Dstack.h47 struct stack *stack_create(int);
48 void stack_destroy(struct stack *);
49 int stack_put(struct stack *, vm_offset_t);
50 void stack_copy(const struct stack *, struct stack *);
51 void stack_zero(struct stack *);
52 void stack_print(const struct stack *);
53 void stack_print_ddb(const struct stack *);
54 void stack_print_short(const struct stack *);
55 void stack_print_short_ddb(const struct stack *);
73 void stack_save(struct stack *);
[all …]
/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_ifstack.c38 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/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp191 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
197 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
198 ReportRssLimitExceeded(stack); in MsanAllocate()
214 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanAllocate()
215 ReportOutOfMemory(size, stack); in MsanAllocate()
228 stack->tag = StackTrace::TAG_ALLOC; in MsanAllocate()
288 MsanDeallocate(stack, old_p); in MsanReallocate()
297 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in MsanCalloc()
342 MsanDeallocate(stack, ptr); in msan_realloc()
354 GET_FATAL_STACK_TRACE_IF_EMPTY(stack); in msan_reallocarray()
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_tag.c165 stack->max_elem = max_elem + 1; in pqisrc_init_taglist()
166 stack->head.data = 0; in pqisrc_init_taglist()
172 if (!(stack->next_index_array)) { in pqisrc_init_taglist()
181 pqisrc_put_tag(stack, index); in pqisrc_init_taglist()
200 if (stack->next_index_array) { in pqisrc_destroy_taglist()
203 stack->next_index_array = NULL; in pqisrc_destroy_taglist()
220 if (index >= stack->max_elem) { in pqisrc_put_tag()
233 cur_head = stack->head; in pqisrc_put_tag()
241 stack->num_elem++; in pqisrc_put_tag()
256 cur_head = stack->head; in pqisrc_get_tag()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp68 m->stack_trace_id = StackDepotPut(stack); in RegisterAllocation()
99 ReportRssLimitExceeded(&stack); in Allocate()
106 ReportOutOfMemory(size, &stack); in Allocate()
111 RegisterAllocation(stack, p, size); in Allocate()
119 ReportCallocOverflow(nmemb, size, &stack); in Calloc()
122 return Allocate(stack, size, 1, true); in Calloc()
133 ReportAllocationSizeTooBig(new_size, stack); in Reallocate()
140 RegisterAllocation(stack, new_p, new_size); in Reallocate()
142 RegisterAllocation(stack, p, new_size); in Reallocate()
235 return lsan_realloc(ptr, nmemb * size, stack); in lsan_reallocarray()
[all …]
/freebsd/contrib/libcbor/src/cbor/internal/
H A Dbuilder_callbacks.c26 if (ctx->stack->size == 0) { in _cbor_builder_append()
32 switch (ctx->stack->top->item->type) { in _cbor_builder_append()
50 ctx->stack->top->subitems--; in _cbor_builder_append()
53 _cbor_stack_pop(ctx->stack); in _cbor_builder_append()
87 ctx->stack->top->subitems--; in _cbor_builder_append()
94 ctx->stack->top->subitems ^= in _cbor_builder_append()
104 _cbor_stack_pop(ctx->stack); in _cbor_builder_append()
237 if (ctx->stack->size > 0 && cbor_isa_bytestring(ctx->stack->top->item) && in cbor_builder_byte_string_callback()
277 if (ctx->stack->size > 0 && cbor_isa_string(ctx->stack->top->item) && in cbor_builder_string_callback()
356 if (ctx->stack->size > 0) { in cbor_builder_indef_break_callback()
[all …]
H A Dstack.c14 void _cbor_stack_pop(struct _cbor_stack *stack) { in _cbor_stack_pop() argument
15 struct _cbor_stack_record *top = stack->top; in _cbor_stack_pop()
16 stack->top = stack->top->lower; in _cbor_stack_pop()
18 stack->size--; in _cbor_stack_pop()
21 struct _cbor_stack_record *_cbor_stack_push(struct _cbor_stack *stack, in _cbor_stack_push() argument
24 if (stack->size == CBOR_MAX_STACK_SIZE) return NULL; in _cbor_stack_push()
29 *new_top = (struct _cbor_stack_record){stack->top, item, subitems}; in _cbor_stack_push()
30 stack->top = new_top; in _cbor_stack_push()
31 stack->size++; in _cbor_stack_push()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_report.h66 BufferedStackTrace *stack);
67 void ReportPvallocOverflow(uptr size, BufferedStackTrace *stack);
69 BufferedStackTrace *stack);
71 BufferedStackTrace *stack);
73 BufferedStackTrace *stack);
75 BufferedStackTrace *stack);
76 void ReportRssLimitExceeded(BufferedStackTrace *stack);
83 BufferedStackTrace *stack);
90 BufferedStackTrace *stack);
98 BufferedStackTrace *stack);
[all …]
H A Dasan_allocator.cpp60 context += stack; in AtomicContextStore()
67 stack = context; in AtomicContextLoad()
538 CHECK(stack); in Allocate()
928 u32 stack = 0; in AllocTid() local
937 u32 stack = 0; in FreeTid() local
948 u32 stack = 0; in GetAllocStackId() local
950 return stack; in GetAllocStackId()
957 u32 stack = 0; in GetFreeStackId() local
959 return stack; in GetFreeStackId()
1185 u32 stack = 0; in stack_trace_id() local
[all …]
H A Dasan_errors.h134 stack(stack_), in ErrorMallocUsableSizeNotOwned()
147 stack(stack_), in ErrorSanitizerGetAllocatedSizeNotOwned()
161 stack(stack_), in ErrorCallocOverflow()
176 stack(stack_), in ErrorReallocArrayOverflow()
189 stack(stack_), in ErrorPvallocOverflow()
202 stack(stack_), in ErrorInvalidAllocationAlignment()
216 stack(stack_), in ErrorInvalidAlignedAllocAlignment()
230 stack(stack_), in ErrorInvalidPosixMemalignAlignment()
245 stack(stack_), in ErrorAllocationSizeTooBig()
269 stack(stack_), in ErrorOutOfMemory()
[all …]
H A Dasan_errors.cpp56 stack.Print(); in Print()
93 stack.Print(); in Print()
112 stack.Print(); in Print()
132 stack.Print(); in Print()
148 stack->Print(); in Print()
161 stack->Print(); in Print()
174 stack->Print(); in Print()
187 stack->Print(); in Print()
201 stack->Print(); in Print()
214 stack->Print(); in Print()
[all …]
H A Dasan_stack.h36 UNINITIALIZED BufferedStackTrace stack; \
38 stack.size = max_size; \
40 stack.top_frame_bp = GET_CURRENT_FRAME(); \
41 stack.trace_buffer[0] = StackTrace::GetCurrentPc(); \
43 stack.trace_buffer[1] = GET_CALLER_PC(); \
46 stack.Unwind(StackTrace::GetCurrentPc(), GET_CURRENT_FRAME(), nullptr, \
51 UNINITIALIZED BufferedStackTrace stack; \
52 stack.Unwind(pc, bp, nullptr, common_flags()->fast_unwind_on_fatal)
68 stack.Print(); \
/freebsd/contrib/libdivsufsort/include/
H A Ddivsufsort_private.h157 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/sys/contrib/ck/include/
H A Dck_stack.h56 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/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp87 context += stack; in SetAllocated()
199 ReportRssLimitExceeded(stack); in HwasanAllocate()
217 ReportOutOfMemory(size, stack); in HwasanAllocate()
308 u32 free_context_id = StackDepotPut(*stack); in HwasanDeallocate()
389 HwasanDeallocate(stack, tagged_ptr_old); in HwasanReallocate()
398 ReportCallocOverflow(nmemb, size, stack); in HwasanCalloc()
462 HwasanDeallocate(stack, ptr); in hwasan_realloc()
489 ReportPvallocOverflow(size, stack); in hwasan_pvalloc()
517 StackTrace *stack) { in hwasan_posix_memalign() argument
532 void hwasan_free(void *ptr, StackTrace *stack) { in hwasan_free() argument
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp349 ReportRssLimitExceeded(stack); in Allocate()
351 CHECK(stack); in Allocate()
395 ReportOutOfMemory(size, stack); in Allocate()
413 m->alloc_context_id = StackDepotPut(*stack); in Allocate()
499 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate()
508 ReportCallocOverflow(nmemb, size, stack); in Calloc()
519 BufferedStackTrace *stack) { in CommitBack()
587 instance.CommitBack(this, &stack); in CommitBack()
615 ReportReallocArrayOverflow(nmemb, size, stack); in memprof_reallocarray()
617 return memprof_realloc(p, nmemb * size, stack); in memprof_reallocarray()
[all …]

12345678910>>...45