| /trueos/usr.bin/dc/ |
| HD | stack.c | 28 static __inline bool stack_empty(const struct stack *); 29 static void stack_grow(struct stack *); 38 stack_init(struct stack *stack) in stack_init() argument 41 stack->size = 0; in stack_init() 42 stack->sp = -1; in stack_init() 43 stack->stack = NULL; in stack_init() 47 stack_empty(const struct stack *stack) in stack_empty() argument 49 bool empty = stack->sp == -1; in stack_empty() 103 stack_size(const struct stack *stack) in stack_size() argument 106 return (stack->sp + 1); in stack_size() [all …]
|
| HD | extern.h | 44 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 *); 50 void stack_pushnumber(struct stack *, struct number *); 51 void stack_pushstring(struct stack *stack, char *); 52 void stack_push(struct stack *, struct value *); 53 void stack_set_tos(struct stack *, struct value *); 54 struct value *stack_tos(const struct stack *); 55 struct value *stack_pop(struct stack *); [all …]
|
| /trueos/contrib/libc++/include/ |
| D | stack | 2 //===---------------------------- stack -----------------------------------===// 15 stack synopsis 21 class stack 34 stack() = default; 35 ~stack() = default; 37 stack(const stack& q) = default; 38 stack(stack&& q) = default; 40 stack& operator=(const stack& q) = default; 41 stack& operator=(stack&& q) = default; 43 explicit stack(const container_type& c); [all …]
|
| /trueos/contrib/unbound/services/ |
| HD | modstack.c | 75 modstack_init(struct module_stack* stack) in modstack_init() argument 77 stack->num = 0; in modstack_init() 78 stack->mod = NULL; in modstack_init() 82 modstack_config(struct module_stack* stack, const char* module_conf) in modstack_config() argument 86 stack->num = count_modules(module_conf); in modstack_config() 87 if(stack->num == 0) { in modstack_config() 91 if(stack->num > MAX_MODULE) { in modstack_config() 93 stack->num, MAX_MODULE); in modstack_config() 96 stack->mod = (struct module_func_block**)calloc((size_t) in modstack_config() 97 stack->num, sizeof(struct module_func_block*)); in modstack_config() [all …]
|
| HD | modstack.h | 61 void modstack_init(struct module_stack* stack); 69 int modstack_config(struct module_stack* stack, const char* module_conf); 95 int modstack_setup(struct module_stack* stack, const char* module_conf, 103 void modstack_desetup(struct module_stack* stack, struct module_env* env); 111 int modstack_find(struct module_stack* stack, const char* name);
|
| /trueos/contrib/llvm/tools/lldb/source/Expression/ |
| HD | DWARFExpression.cpp | 1327 std::vector<Value> stack; in Evaluate() local 1341 stack.push_back(*initial_value_ptr); in Evaluate() 1365 size_t count = stack.size(); in Evaluate() 1371 stack[i].Dump(&new_value); in Evaluate() 1383 stack.push_back(Scalar(opcodes.GetAddress(&offset))); in Evaluate() 1384 stack.back().SetValueType (Value::eValueTypeFileAddress); in Evaluate() 1432 if (stack.empty()) in Evaluate() 1438 Value::ValueType value_type = stack.back().GetValueType(); in Evaluate() 1443 void *src = (void *)stack.back().GetScalar().ULongLong(); in Evaluate() 1446 stack.back().GetScalar() = ptr; in Evaluate() [all …]
|
| /trueos/usr.bin/csup/ |
| HD | globtree.c | 250 struct stack { struct 251 struct stackelem *stack; argument 262 stack_init(struct stack *stack) in stack_init() argument 265 stack->in = 0; in stack_init() 266 stack->size = 8; /* Initial size. */ in stack_init() 267 stack->stack = xmalloc(sizeof(struct stackelem) * stack->size); in stack_init() 271 stack_size(struct stack *stack) in stack_size() argument 274 return (stack->in); in stack_size() 278 stack_push(struct stack *stack, struct globtree *node, walkstate_t state) in stack_push() argument 282 if (stack->in == stack->size) { in stack_push() [all …]
|
| HD | attrstack.c | 39 struct fattr **stack; member 50 as->stack = xmalloc(sizeof(struct fattr *) * ATTRSTACK_DEFSIZE); in attrstack_new() 61 return (as->stack[--as->cur]); in attrstack_pop() 70 as->stack = xrealloc(as->stack, in attrstack_push() 73 as->stack[as->cur++] = fa; in attrstack_push() 88 free(as->stack); in attrstack_free()
|
| /trueos/sys/sys/ |
| HD | stack.h | 37 struct stack *stack_create(void); 38 void stack_destroy(struct stack *); 39 int stack_put(struct stack *, vm_offset_t); 40 void stack_copy(const struct stack *, struct stack *); 41 void stack_zero(struct stack *); 42 void stack_print(const struct stack *); 43 void stack_print_ddb(const struct stack *); 44 void stack_print_short(const struct stack *); 45 void stack_print_short_ddb(const struct stack *); 46 void stack_sbuf_print(struct sbuf *, const struct stack *); [all …]
|
| /trueos/contrib/bsnmp/snmp_mibII/ |
| HD | 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() 45 stack->index.subs[1] = lower ? lower->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() 60 if (stack->index.subs[0] == (upper ? upper->index : 0) && in mib_ifstack_delete() 61 stack->index.subs[1] == (lower ? lower->index : 0)) { in mib_ifstack_delete() [all …]
|
| /trueos/contrib/libstdc++/include/bits/ |
| 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)
|
| /trueos/contrib/binutils/binutils/ |
| HD | prdbg.c | 44 struct pr_stack *stack; member 301 info.stack = NULL; in print_debugging_info() 347 n->next = info->stack; in push_type() 348 info->stack = n; in push_type() 360 assert (info->stack != NULL); in prepend_type() 362 n = (char *) xmalloc (strlen (s) + strlen (info->stack->type) + 1); in prepend_type() 363 sprintf (n, "%s%s", s, info->stack->type); in prepend_type() 364 free (info->stack->type); in prepend_type() 365 info->stack->type = n; in prepend_type() 380 assert (info->stack != NULL); in append_type() [all …]
|
| /trueos/crypto/openssl/crypto/stack/ |
| HD | Makefile | 5 DIR= stack 20 LIBSRC=stack.c 21 LIBOBJ=stack.o 25 EXHEADER= stack.h safestack.h 79 stack.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h 80 stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 81 stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 82 stack.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h 83 stack.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 84 stack.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h [all …]
|
| /trueos/sys/kern/ |
| HD | subr_stack.c | 44 FEATURE(stack, "Support for capturing kernel stack"); 52 struct stack * 55 struct stack *st; in stack_create() 62 stack_destroy(struct stack *st) in stack_destroy() 69 stack_put(struct stack *st, vm_offset_t pc) in stack_put() 80 stack_copy(const struct stack *src, struct stack *dst) in stack_copy() 87 stack_zero(struct stack *st) in stack_zero() 94 stack_print(const struct stack *st) in stack_print() 110 stack_print_short(const struct stack *st) in stack_print_short() 130 stack_print_ddb(const struct stack *st) in stack_print_ddb() [all …]
|
| /trueos/contrib/llvm/patches/ |
| HD | patch-r263312-llvm-r196986-allow-realign-alloca.diff | 5 The combination of inline asm, stack realignment, and dynamic allocas 28 - report_fatal_error("Stack realignment in presence of dynamic stack " 34 Index: test/CodeGen/X86/inline-asm-stack-realign3.ll 36 --- test/CodeGen/X86/inline-asm-stack-realign3.ll 37 +++ test/CodeGen/X86/inline-asm-stack-realign3.ll 68 Index: test/CodeGen/X86/inline-asm-stack-realign.ll 70 --- test/CodeGen/X86/inline-asm-stack-realign.ll 71 +++ test/CodeGen/X86/inline-asm-stack-realign.ll 75 -; We don't currently support realigning the stack and adjusting the stack 82 …; CHECK: Stack realignment in presence of dynamic stack adjustments is not supported with inline a… [all …]
|
| HD | patch-r263312-llvm-r169939-inline-asm-with-realign.diff | 3 Reland "Fix miscompile of MS inline assembly with stack realignment" 7 The tests have been fixed to pass on platforms with a stack alignment 14 Index: test/CodeGen/X86/inline-asm-stack-realign2.ll 16 --- test/CodeGen/X86/inline-asm-stack-realign2.ll 17 +++ test/CodeGen/X86/inline-asm-stack-realign2.ll 21 +; We don't currently support realigning the stack and adjusting the stack 24 +; CHECK: Stack realignment in presence of dynamic stack adjustments is not supported with inline a… 34 Index: test/CodeGen/X86/inline-asm-stack-realign.ll 36 --- test/CodeGen/X86/inline-asm-stack-realign.ll 37 +++ test/CodeGen/X86/inline-asm-stack-realign.ll [all …]
|
| /trueos/contrib/netbsd-tests/lib/libc/sys/ |
| HD | t_clone.c | 97 void *allocstack, *stack; in ATF_TC_BODY() local 107 stack = allocstack; in ATF_TC_BODY() 109 stack = (char *)stack + STACKSIZE; in ATF_TC_BODY() 112 printf("parent: stack = %p, frobme = %p\n", stack, frobme); in ATF_TC_BODY() 116 frobme[1] = (long)stack; in ATF_TC_BODY() 123 switch (pid = __clone(clone_func, stack, in ATF_TC_BODY() 193 void *allocstack, *stack; in ATF_TC_BODY() local 199 stack = allocstack; in ATF_TC_BODY() 201 stack = (char *)stack + STACKSIZE; in ATF_TC_BODY() 205 rv = __clone(0, stack, in ATF_TC_BODY()
|
| /trueos/sys/boot/userboot/userboot/ |
| HD | elf32_freebsd.c | 63 uint32_t stack[1024], *sp; in elf32_exec() local 84 memset(stack, 0, sizeof(stack)); in elf32_exec() 85 sp = (uint32_t *)((char *)stack + sizeof(stack)); in elf32_exec() 100 CALLBACK(copyin, stack, GUEST_STACK, sizeof(stack)); in elf32_exec() 101 CALLBACK(setreg, 4, (char *)sp - (char *)stack + GUEST_STACK); in elf32_exec()
|
| /trueos/contrib/gcc/ |
| HD | tree-ssa-threadedge.c | 117 remove_temporary_equivalences (VEC(tree, heap) **stack) in remove_temporary_equivalences() argument 119 while (VEC_length (tree, *stack) > 0) in remove_temporary_equivalences() 123 dest = VEC_pop (tree, *stack); in remove_temporary_equivalences() 130 prev_value = VEC_pop (tree, *stack); in remove_temporary_equivalences() 140 record_temporary_equivalence (tree x, tree y, VEC(tree, heap) **stack) in record_temporary_equivalence() argument 151 VEC_reserve (tree, heap, *stack, 2); in record_temporary_equivalence() 152 VEC_quick_push (tree, *stack, prev_x); in record_temporary_equivalence() 153 VEC_quick_push (tree, *stack, x); in record_temporary_equivalence() 163 record_temporary_equivalences_from_phis (edge e, VEC(tree, heap) **stack) in record_temporary_equivalences_from_phis() argument 189 record_temporary_equivalence (dst, src, stack); in record_temporary_equivalences_from_phis() [all …]
|
| HD | cfganal.c | 40 basic_block *stack; member 160 edge_iterator *stack; in mark_dfs_back_edges() local 174 stack = XNEWVEC (edge_iterator, n_basic_blocks + 1); in mark_dfs_back_edges() 184 stack[sp++] = ei_start (ENTRY_BLOCK_PTR->succs); in mark_dfs_back_edges() 193 ei = stack[sp - 1]; in mark_dfs_back_edges() 209 stack[sp++] = ei_start (dest->succs); in mark_dfs_back_edges() 225 ei_next (&stack[sp - 1]); in mark_dfs_back_edges() 233 free (stack); in mark_dfs_back_edges() 654 edge_iterator *stack; in post_order_compute() local 663 stack = XNEWVEC (edge_iterator, n_basic_blocks + 1); in post_order_compute() [all …]
|
| /trueos/contrib/llvm/tools/lldb/source/Core/ |
| HD | Timer.cpp | 103 TimerStack *stack = GetTimerStackForCurrentThread (); in Timer() local 104 if (stack) in Timer() 106 if (stack->empty() == false) in Timer() 107 stack->back()->ChildStarted (start_time); in Timer() 108 stack->push_back(this); in Timer() 130 TimerStack *stack = GetTimerStackForCurrentThread (); in ~Timer() local 131 if (stack) in ~Timer() 133 assert (stack->back() == this); in ~Timer() 134 stack->pop_back(); in ~Timer() 135 if (stack->empty() == false) in ~Timer() [all …]
|
| /trueos/sys/compat/ndis/ |
| HD | winx64_wrap.S | 94 push %rbp # insure that the stack 97 subq $96,%rsp # allocate space on stack 101 lea 56+8(%rbp),%rsi # source == old stack top (stack+56) 102 mov %rsp,%rdi # destination == new stack top 105 movsq # copy old stack contents to new location 110 mov 40+8(%rbp),%r8 # set up arg4 (stack+40 -> %r8) 111 mov 48+8(%rbp),%r9 # set up arg5 (stack+48 -> %r9) 118 leave # delete space on stack
|
| /trueos/lib/libkse/thread/ |
| HD | thr_stack.c | 40 struct stack { struct 41 LIST_ENTRY(stack) qe; /* Stack queue linkage. */ 52 static LIST_HEAD(, stack) dstackq = LIST_HEAD_INITIALIZER(dstackq); 61 static LIST_HEAD(, stack) mstackq = LIST_HEAD_INITIALIZER(mstackq); 135 struct stack *spare_stack; in _thr_stack_alloc() 244 struct stack *spare_stack; in _thr_stack_free() 248 spare_stack = (struct stack *)((uintptr_t)attr->stackaddr_attr in _thr_stack_free() 249 + (uintptr_t)attr->stacksize_attr - sizeof(struct stack)); in _thr_stack_free()
|
| /trueos/lib/libthr/thread/ |
| HD | thr_stack.c | 42 struct stack { struct 43 LIST_ENTRY(stack) qe; /* Stack queue linkage. */ 54 static LIST_HEAD(, stack) dstackq = LIST_HEAD_INITIALIZER(dstackq); 63 static LIST_HEAD(, stack) mstackq = LIST_HEAD_INITIALIZER(mstackq); 169 struct stack *st; in __pthread_map_stacks_exec() 194 struct stack *spare_stack; in _thr_stack_alloc() 297 struct stack *spare_stack; in _thr_stack_free() 301 spare_stack = (struct stack *) in _thr_stack_free() 303 attr->stacksize_attr - sizeof(struct stack)); in _thr_stack_free()
|
| /trueos/crypto/openssl/crypto/perlasm/ |
| HD | x86asm.pl | 23 if ($opcode =~ /^push/) { $stack+=4; } 24 elsif ($opcode =~ /^pop/) { $stack-=4; } 44 sub ::stack_push{ my $num=$_[0]*4; $stack+=$num; &sub("esp",$num); } 45 sub ::stack_pop { my $num=$_[0]*4; $stack-=$num; &add("esp",$num); } 46 sub ::blindpop { &pop($_[0]); $stack+=4; } 47 sub ::wparam { &DWP($stack+4*$_[0],"esp"); } 173 $stack=4; 187 $stack=0; 197 $stack+=16; # readjust esp as if we didn't pop anything
|