Searched refs:stack (Results 1 - 25 of 2545) sorted by relevance

1234567891011>>

/netbsd-current/usr.bin/dc/
H A Dstack.c1 /* $NetBSD: stack.c,v 1.2 2017/04/10 16:37:48 christos Exp $ */
2 /* $OpenBSD: stack.c,v 1.14 2016/03/27 15:55:13 otto Exp $ */
20 __RCSID("$NetBSD: stack.c,v 1.2 2017/04/10 16:37:48 christos Exp $");
28 static __inline bool stack_empty(const struct stack *);
29 static void stack_grow(struct stack *);
38 stack_init(struct stack *stack) argument
40 stack->size = 0;
41 stack->sp = -1;
42 stack
46 stack_empty(const struct stack *stack) argument
97 stack_size(const struct stack *stack) argument
103 stack_dup(struct stack *stack) argument
117 stack_swap(struct stack *stack) argument
131 stack_grow(struct stack *stack) argument
144 stack_pushnumber(struct stack *stack, struct number *b) argument
153 stack_pushstring(struct stack *stack, char *string) argument
162 stack_push(struct stack *stack, struct value *v) argument
181 stack_tos(const struct stack *stack) argument
189 stack_set_tos(struct stack *stack, struct value *v) argument
202 stack_pop(struct stack *stack) argument
210 stack_popnumber(struct stack *stack) argument
224 stack_popstring(struct stack *stack) argument
238 stack_clear(struct stack *stack) argument
247 stack_print(FILE *f, const struct stack *stack, const char *prefix, u_int base) argument
328 frame_assign(struct stack *stack, size_t index, const struct value *v) argument
346 frame_retrieve(const struct stack *stack, size_t index) argument
[all...]
H A Dextern.h42 /* stack.c */
43 void stack_init(struct stack *);
46 void stack_swap(struct stack *);
47 size_t stack_size(const struct stack *);
48 void stack_dup(struct stack *);
49 void stack_pushnumber(struct stack *, struct number *);
50 void stack_pushstring(struct stack *stack, char *);
51 void stack_push(struct stack *, struct value *);
52 void stack_set_tos(struct stack *, struc
[all...]
/netbsd-current/external/gpl2/xcvs/dist/src/
H A Dstack.c10 * This module uses the hash.c module to implement a stack.
13 __RCSID("$NetBSD: stack.c,v 1.2 2016/05/17 14:00:09 christos Exp $");
21 do_push (List *stack, void *elem, int isstring) argument
30 addnode(stack, p);
36 push (List *stack, void *elem) argument
38 do_push (stack, elem, 0);
44 push_string (List *stack, char *elem) argument
46 do_push (stack, elem, 1);
52 do_pop (List *stack, int isstring) argument
56 if (isempty (stack)) retur
76 pop(List *stack) argument
84 pop_string(List *stack) argument
92 do_unshift(List *stack, void *elem, int isstring) argument
107 unshift(List *stack, void *elem) argument
115 unshift_string(List *stack, char *elem) argument
123 do_shift(List *stack, int isstring) argument
146 shift(List *stack) argument
154 shift_string(List *stack) argument
162 isempty(List *stack) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/i386/ilp32/
H A Dx86-64-stack.d1 #source: ../x86-64-stack.s
3 #name: x86-64 (ILP32) stack-related opcodes
4 #dump: ../x86-64-stack.d
H A Dx86-64-stack-intel.d1 #source: ../x86-64-stack.s
3 #name: x86-64 (ILP32) stack-related opcodes (Intel mode)
4 #dump: ../x86-64-stack-intel.d
H A Dx86-64-stack-suffix.d1 #source: ../x86-64-stack.s
3 #name: x86-64 (ILP32) stack-related opcodes (with suffixes)
4 #dump: ../x86-64-stack-suffix.d
/netbsd-current/usr.bin/make/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
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dstep-over-clone.c39 unsigned char *stack[6]; local
41 for (i = 0; i < (sizeof (stack) / sizeof (stack[0])); i++)
42 stack[i] = malloc (STACK_SIZE);
44 for (i = 0; i < (sizeof (stack) / sizeof (stack[0])); i++)
46 pid = clone (clone_fn, stack[i] + STACK_SIZE, CLONE_FILES | CLONE_VM,
50 for (i = 0; i < (sizeof (stack) / sizeof (stack[0])); i++)
51 free (stack[
[all...]
/netbsd-current/external/mpl/bind/dist/lib/isc/
H A Dastack.c36 isc_astack_t *stack = isc_mem_get( local
39 *stack = (isc_astack_t){
42 isc_mem_attach(mctx, &stack->mctx);
43 memset(stack->nodes, 0, size * sizeof(uintptr_t));
44 isc_mutex_init(&stack->lock);
45 return (stack);
49 isc_astack_trypush(isc_astack_t *stack, void *obj) { argument
50 if (!isc_mutex_trylock(&stack->lock)) {
51 if (stack->pos >= stack
64 isc_astack_pop(isc_astack_t *stack) argument
77 isc_astack_destroy(isc_astack_t *stack) argument
[all...]
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/
H A Dastack.c36 isc_astack_t *stack = isc_mem_get( local
39 *stack = (isc_astack_t){
42 isc_mem_attach(mctx, &stack->mctx);
43 memset(stack->nodes, 0, size * sizeof(uintptr_t));
44 isc_mutex_init(&stack->lock);
45 return (stack);
49 isc_astack_trypush(isc_astack_t *stack, void *obj) { argument
50 if (!isc_mutex_trylock(&stack->lock)) {
51 if (stack->pos >= stack
64 isc_astack_pop(isc_astack_t *stack) argument
77 isc_astack_destroy(isc_astack_t *stack) argument
[all...]
/netbsd-current/external/mit/libcbor/dist/src/cbor/internal/
H A Dstack.c8 #include "stack.h"
14 void _cbor_stack_pop(struct _cbor_stack *stack) { argument
15 struct _cbor_stack_record *top = stack->top;
16 stack->top = stack->top->lower;
18 stack->size--;
21 struct _cbor_stack_record *_cbor_stack_push(struct _cbor_stack *stack, argument
28 *new_top = (struct _cbor_stack_record){stack->top, item, subitems};
29 stack->top = new_top;
30 stack
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dstep-over-clone.c53 unsigned char *stack[6]; local
65 for (i = 0; i < (sizeof (stack) / sizeof (stack[0])); i++)
66 stack[i] = malloc (STACK_SIZE);
68 global_thread_count = (sizeof (stack) / sizeof (stack[0]));
70 for (i = 0; i < (sizeof (stack) / sizeof (stack[0])); i++)
72 pid = clone (clone_fn, stack[i] + STACK_SIZE, CLONE_FILES | CLONE_VM,
76 for (i = 0; i < (sizeof (stack) / sizeo
[all...]
/netbsd-current/crypto/external/cpl/tpm-tools/bin/tpm_unsealdata/
H A DMakefile2 COPTS.tpm_unsealdata.c+=-Wno-stack-protector
/netbsd-current/crypto/external/cpl/tpm-tools/bin/tpm_sealdata/
H A DMakefile2 COPTS.tpm_sealdata.c+=-Wno-stack-protector
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-tic6x/
H A Dattr-stack-16-8.d1 #name: C6X stack attribute merging, 16 8
4 #source: attr-stack-16.s
5 #source: attr-stack-8.s
6 #error: .*requires more stack alignment than .* preserves
H A Dattr-stack-8-16.d1 #name: C6X stack attribute merging, 8 16
4 #source: attr-stack-8.s
5 #source: attr-stack-16.s
6 #error: .*requires more stack alignment than .* preserves
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator_report.cpp26 stack(stack_) {
31 stack->Print();
33 ReportErrorSummary(error_summary, stack);
39 const StackTrace* const stack; member in class:__sanitizer::ScopedAllocatorErrorReport
44 const StackTrace *stack) {
46 ScopedAllocatorErrorReport report("calloc-overflow", stack);
55 const StackTrace *stack) {
57 ScopedAllocatorErrorReport report("reallocarray-overflow", stack);
66 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { argument
68 ScopedAllocatorErrorReport report("pvalloc-overflow", stack);
43 ReportCallocOverflow(uptr count, uptr size, const StackTrace *stack) argument
54 ReportReallocArrayOverflow(uptr count, uptr size, const StackTrace *stack) argument
76 ReportInvalidAllocationAlignment(uptr alignment, const StackTrace *stack) argument
86 ReportInvalidAlignedAllocAlignment(uptr size, uptr alignment, const StackTrace *stack) argument
104 ReportInvalidPosixMemalignAlignment(uptr alignment, const StackTrace *stack) argument
118 ReportAllocationSizeTooBig(uptr user_size, uptr max_size, const StackTrace *stack) argument
128 ReportOutOfMemory(uptr requested_size, const StackTrace *stack) argument
137 ReportRssLimitExceeded(const StackTrace *stack) argument
[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);
/netbsd-current/lib/libc/sys/
H A DLint___clone.c12 __clone(int (*func)(void *), void *stack, int flags, void *arg) argument
/netbsd-current/external/gpl3/gdb.old/dist/gold/testsuite/
H A Dsplit_s390_2_s.s1 # split_s390_2_s.s: s390 specific, -fsplit-stack calling -fsplit-stack
12 .section .note.GNU-stack,"",@progbits
13 .section .note.GNU-split-stack,"",@progbits
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_allocator_report.h24 const StackTrace *stack);
25 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack);
27 const StackTrace *stack);
29 const StackTrace *stack);
31 const StackTrace *stack);
33 const StackTrace *stack);
34 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack);
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator_report.h22 const StackTrace *stack);
23 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack);
25 const StackTrace *stack);
27 const StackTrace *stack);
29 const StackTrace *stack);
31 const StackTrace *stack);
32 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack);
/netbsd-current/external/bsd/unbound/dist/services/
H A Dmodstack.h2 * services/modstack.h - stack of modules
39 * This file contains functions to help maintain a stack of modules.
58 * Init a stack of modules
59 * @param stack: initialised as empty.
61 void modstack_init(struct module_stack* stack);
65 * @param stack: the stack of modules (empty before call).
69 int modstack_config(struct module_stack* stack, const char* module_conf);
87 * @param stack: if not empty beforehand, it will be desetup()ed.
95 int modstack_setup(struct module_stack* stack, cons
[all...]
/netbsd-current/common/lib/libprop/
H A Dprop_stack.c36 _prop_stack_init(prop_stack_t stack) argument
38 stack->used_intern_elems = 0;
39 SLIST_INIT(&stack->extern_elems);
43 _prop_stack_push(prop_stack_t stack, prop_object_t obj, void *data1, argument
49 if (stack->used_intern_elems == PROP_STACK_INTERN_ELEMS) {
60 SLIST_INSERT_HEAD(&stack->extern_elems, eelem, stack_link);
65 _PROP_ASSERT(stack->used_intern_elems < PROP_STACK_INTERN_ELEMS);
66 _PROP_ASSERT(SLIST_EMPTY(&stack->extern_elems));
68 ielem = &stack->intern_elems[stack
80 _prop_stack_pop(prop_stack_t stack, prop_object_t *obj, void **data1, void **data2, void **data3) argument
[all...]
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_stack.h31 // NOTE: A Rule of thumb is to retrieve stack trace in the interceptors
33 // don't want stack trace to contain functions from ASan internals.
36 BufferedStackTrace stack; \
38 stack.size = max_size; \
40 stack.top_frame_bp = GET_CURRENT_FRAME(); \
41 stack.trace_buffer[0] = StackTrace::GetCurrentPc(); \
42 if (max_size > 1) stack.trace_buffer[1] = GET_CALLER_PC(); \
45 stack.Unwind(StackTrace::GetCurrentPc(), \
50 BufferedStackTrace stack; \
51 stack
[all...]

Completed in 166 milliseconds

1234567891011>>