| /src/usr.bin/dc/ |
| stack.c | 1 /* $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) 40 stack->size = 0; 41 stack->sp = -1; 42 stack->stack = NULL [all...] |
| extern.h | 42 /* 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 *, struct value *) [all...] |
| /src/external/gpl2/xcvs/dist/src/ |
| stack.c | 10 * 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) 30 addnode(stack, p); 36 push (List *stack, void *elem) 38 do_push (stack, elem, 0); 44 push_string (List *stack, char *elem) 46 do_push (stack, elem, 1); 52 do_pop (List *stack, int isstring) 56 if (isempty (stack)) return NULL [all...] |
| /src/usr.bin/make/unit-tests/ |
| hanoi-include.exp | 1 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 [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isc/ |
| astack.c | 36 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) { 50 if (!isc_mutex_trylock(&stack->lock)) { 51 if (stack->pos >= stack->size) [all...] |
| /src/external/mit/libcbor/dist/src/cbor/internal/ |
| stack.c | 8 #include "stack.h" 14 void _cbor_stack_pop(struct _cbor_stack *stack) { 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, 28 *new_top = (struct _cbor_stack_record){stack->top, item, subitems}; 29 stack->top = new_top; 30 stack->size++ [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
| step-over-clone.c | 53 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) / sizeof (stack[0])); i++ [all...] |
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| step-over-clone.c | 53 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) / sizeof (stack[0])); i++ [all...] |
| /src/crypto/external/cpl/tpm-tools/bin/tpm_sealdata/ |
| Makefile | 2 COPTS.tpm_sealdata.c+=-Wno-stack-protector
|
| /src/crypto/external/cpl/tpm-tools/bin/tpm_unsealdata/ |
| Makefile | 2 COPTS.tpm_unsealdata.c+=-Wno-stack-protector
|
| /src/external/bsd/unbound/dist/services/ |
| modstack.h | 2 * services/modstack.h - stack of modules 39 * This file contains functions to help maintain a stack of modules. 48 * Stack of modules. 58 * Init a stack of modules 59 * @param stack: initialised as empty. 61 void modstack_init(struct module_stack* stack); 64 * Free the stack of modules 65 * @param stack: stack that frees up memory. 67 void modstack_free(struct module_stack* stack); [all...] |
| modstack.c | 2 * services/modstack.c - stack of modules 39 * This file contains functions to help maintain a stack of modules. 92 modstack_init(struct module_stack* stack) 94 stack->num = 0; 95 stack->mod = NULL; 99 modstack_free(struct module_stack* stack) 101 if(!stack) 103 stack->num = 0; 104 free(stack->mod); 105 stack->mod = NULL [all...] |
| /src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
| sanitizer_allocator_report.cpp | 26 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) { 68 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); [all...] |
| sanitizer_allocator_report.h | 23 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);
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| sanitizer_allocator_report.cpp | 26 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) { 68 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); [all...] |
| sanitizer_allocator_report.h | 23 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);
|
| /src/lib/libc/sys/ |
| Lint___clone.c | 12 __clone(int (*func)(void *), void *stack, int flags, void *arg)
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_allocator_report.h | 24 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);
|
| sanitizer_allocator_report.cc | 27 stack(stack_) { 32 stack->Print(); 34 ReportErrorSummary(error_summary, stack); 40 const StackTrace* const stack; member in class:__sanitizer::ScopedAllocatorErrorReport 45 const StackTrace *stack) { 47 ScopedAllocatorErrorReport report("calloc-overflow", stack); 55 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { 57 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); 66 const StackTrace *stack) { 68 ScopedAllocatorErrorReport report("invalid-allocation-alignment", stack); [all...] |
| /src/common/lib/libprop/ |
| prop_stack.c | 36 _prop_stack_init(prop_stack_t stack) 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, 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->used_intern_elems] [all...] |
| /src/external/gpl3/gcc/dist/libsanitizer/asan/ |
| asan_stack.h | 31 // 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 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 [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
| asan_stack.h | 31 // 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.Unwind(pc, bp, nullptr, [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/ |
| astack.h | 26 * Allocate and initialize a new array stack of size 'size'. 30 isc_astack_destroy(isc_astack_t *stack); 32 * Free an array stack 'stack'. 35 * \li 'stack' is empty. 39 isc_astack_trypush(isc_astack_t *stack, void *obj); 41 * Try to push 'obj' onto array stack 'astack'. On failure, either 42 * because the stack size limit has been reached or because another 43 * thread has already changed the stack pointer, return 'false'. 47 isc_astack_pop(isc_astack_t *stack); [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
| asan_stack.h | 30 // Get the stack trace with the given pc and bp. 31 // The pc will be in the position 0 of the resulting stack trace. 34 void GetStackTrace(BufferedStackTrace *stack, uptr max_depth, uptr pc, uptr bp, 37 stack->Unwind(max_depth, pc, bp, context, 0, 0, fast); 40 stack->size = 0; 47 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, 52 stack->Unwind(max_depth, pc, bp, context, 0, 0, false); 60 // NOTE: A Rule of thumb is to retrieve stack trace in the interceptors 62 // don't want stack trace to contain functions from ASan internals. 65 BufferedStackTrace stack; \ [all...] |
| /src/external/gpl3/gcc/dist/libgcc/config/mips/ |
| gnustack.h | 4 .section .note.GNU-stack,"",%progbits
|