/illumos-gate/usr/src/common/ficl/ |
H A D | stack.c | 69 ficlStackCheck(ficlStack *stack, int popCells, int pushCells) in ficlStackCheck() argument 72 int nFree = stack->size - STKDEPTH(stack); in ficlStackCheck() 74 if (popCells > STKDEPTH(stack)) in ficlStackCheck() 75 ficlVmThrowError(stack->vm, "Error: %s stack underflow", in ficlStackCheck() 76 stack->name); in ficlStackCheck() 79 ficlVmThrowError(stack->vm, "Error: %s stack overflow", in ficlStackCheck() 80 stack->name); in ficlStackCheck() 82 FICL_IGNORE(stack); in ficlStackCheck() 96 ficlStack *stack = ficlMalloc(totalSize); in ficlStackCreate() local 99 FICL_VM_ASSERT(vm, stack != NULL); in ficlStackCreate() [all …]
|
H A D | ficl.h | 874 FICL_PLATFORM_EXTERN void ficlStackDestroy(ficlStack *stack); 875 FICL_PLATFORM_EXTERN int ficlStackDepth(ficlStack *stack); 876 FICL_PLATFORM_EXTERN void ficlStackDrop(ficlStack *stack, int n); 877 FICL_PLATFORM_EXTERN ficlCell ficlStackFetch(ficlStack *stack, int n); 878 FICL_PLATFORM_EXTERN ficlCell ficlStackGetTop(ficlStack *stack); 879 FICL_PLATFORM_EXTERN void ficlStackPick(ficlStack *stack, int n); 880 FICL_PLATFORM_EXTERN ficlCell ficlStackPop(ficlStack *stack); 881 FICL_PLATFORM_EXTERN void ficlStackPush(ficlStack *stack, ficlCell c); 882 FICL_PLATFORM_EXTERN void ficlStackReset(ficlStack *stack); 883 FICL_PLATFORM_EXTERN void ficlStackRoll(ficlStack *stack, int n); [all …]
|
H A D | tools.c | 556 ficlStackDisplay(ficlStack *stack, ficlStackWalkFunction callback, in ficlStackDisplay() argument 559 ficlVm *vm = stack->vm; in ficlStackDisplay() 563 FICL_STACK_CHECK(stack, 0, 0); in ficlStackDisplay() 567 stack->name, ficlStackDepth(stack), (unsigned long)stack->top); in ficlStackDisplay() 570 stack->name, ficlStackDepth(stack), (unsigned)stack->top); in ficlStackDisplay() 580 ficlStackWalk(stack, callback, context, FICL_FALSE); in ficlStackDisplay() 583 (void) sprintf(buffer, "[%s stack base at 0x%016lx]\n", stack->name, in ficlStackDisplay() 584 (unsigned long)stack->base); in ficlStackDisplay() 586 (void) sprintf(buffer, "[%s stack base at 0x%08x]\n", stack->name, in ficlStackDisplay() 587 (unsigned)stack->base); in ficlStackDisplay() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stack.c | 39 register STACK stack; in stackalloc() local 43 if (!(stack = newof(0, struct stacktable, 1, 0))) return(0); in stackalloc() 46 free(stack); in stackalloc() 49 if (!(b->stack = newof(0, void*, size, 0))) in stackalloc() 52 free(stack); in stackalloc() 55 stack->blocks = b; in stackalloc() 56 stack->size = size; in stackalloc() 57 stack->error = error; in stackalloc() 58 stack->position.block = b; in stackalloc() 59 stack->position.index = -1; in stackalloc() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 94 static int zio_read_data(blkptr_t *bp, void *buf, char *stack); 309 zio_read_gang(blkptr_t *bp, dva_t *dva, void *buf, char *stack) in zio_read_gang() argument 316 zio_gb = (zio_gbh_phys_t *)stack; in zio_read_gang() 317 stack += SPA_GANGBLOCKSIZE; in zio_read_gang() 342 if (zio_read_data(&zio_gb->zg_blkptr[i], buf, stack)) in zio_read_gang() 358 zio_read_data(blkptr_t *bp, void *buf, char *stack) in zio_read_data() argument 373 if (zio_read_gang(bp, &bp->blk_dva[i], buf, stack) != 0) in zio_read_data() 468 zio_read(blkptr_t *bp, void *buf, char *stack) in zio_read() argument 493 if ((char *)buf < stack && ((char *)buf) + lsize > stack) { in zio_read() 501 buf = stack; in zio_read() [all …]
|
H A D | tparm.c | 139 static stack_frame stack[STACKSIZE]; variable 194 stack[stack_ptr].num_type = TRUE; in npush() 195 stack[stack_ptr].data.num = x; in npush() 206 if (stack[stack_ptr].num_type) in npop() 207 result = stack[stack_ptr].data.num; in npop() 216 stack[stack_ptr].num_type = FALSE; in spush() 217 stack[stack_ptr].data.str = x; in spush() 229 if (!stack[stack_ptr].num_type && stack[stack_ptr].data.str != 0) in spop() 230 result = stack[stack_ptr].data.str; in spop()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | ns_files.c | 58 init_files(char **stack, char ***stkptr) in init_files() argument 65 if (stack == NULL && stkptr == NULL) in init_files() 67 (void) stack_op(INIT, NULL, stack, stkptr); in init_files() 72 char **stack, char ***stkptr, bool_t *iswildcard, bool_t isrestricted) in getmapent_files() argument 85 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) { in getmapent_files() 157 nserr = getmapent(key, word+1, ml, stack, stkptr, in getmapent_files() 190 (void) stack_op(POP, (char *)NULL, stack, stkptr); in getmapent_files() 200 int *cache_time, char **stack, char ***stkptr) in getmapkeys_files() argument 216 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) { in getmapkeys_files() 277 stack, stkptr, 0); in getmapkeys_files() [all …]
|
H A D | ns_generic.c | 73 ns_setup(char **stack, char ***stkptr) in ns_setup() argument 78 nsp->ns_init(stack, stkptr); in ns_setup() 128 getmapent(key, mapname, ml, stack, stkptr, iswildcard, isrestricted) in getmapent() argument 131 char **stack, ***stkptr; 145 return (getmapent_files(key, mapname, ml, stack, stkptr, 149 ns_err = nsp->ns_getmapent(key, mapname, ml, stack, stkptr, 159 loadmaster_map(mapname, defopts, stack, stkptr) in loadmaster_map() argument 161 char **stack, ***stkptr; 168 return (loadmaster_files(mapname, defopts, stack, stkptr)); 171 ns_err = nsp->ns_loadmaster(mapname, defopts, stack, stkptr); [all …]
|
H A D | ns_nis.c | 63 init_nis(char **stack, char ***stkptr) in init_nis() argument 66 stack = stack; in init_nis() 75 getmapent_nis(key, map, ml, stack, stkptr, iswildcard, isrestricted) in getmapent_nis() argument 78 char **stack; 167 loadmaster_nis(mapname, defopts, stack, stkptr) in loadmaster_nis() argument 169 char **stack; 280 dirinit(dir, pmap, opts, 0, stack, stkptr); 309 loaddirect_nis(nismap, localmap, opts, stack, stkptr) in loaddirect_nis() argument 311 char **stack; 377 dirinit(dir, localmap, opts, 1, stack, stkptr); [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | tunables.c | 76 mod_set_boolean(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_boolean() argument 101 mod_get_boolean(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_boolean() argument 150 mod_set_uint32(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_uint32() argument 167 mod_set_aligned(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_aligned() argument 172 if ((err = mod_set_uint32(stack, cr, pinfo, ifname, pval, flags)) != 0) in mod_set_aligned() 190 mod_get_uint32(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_uint32() argument 238 mod_set_buf_prop(mod_prop_info_t ptbl[], netstack_t *stack, cred_t *cr, in mod_set_buf_prop() argument 268 mod_get_buf_prop(mod_prop_info_t ptbl[], netstack_t *stack, in mod_get_buf_prop() argument 280 return (mod_get_uint32(stack, pinfo, ifname, pval, psize, flags)); in mod_get_buf_prop() 289 mod_get_allprop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_allprop() argument [all …]
|
/illumos-gate/usr/src/uts/common/inet/udp/ |
H A D | udp_tunables.c | 34 udp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_set_buf_prop() argument 37 return (mod_set_buf_prop(stack->netstack_udp->us_propinfo_tbl, stack, in udp_set_buf_prop() 42 udp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in udp_get_buf_prop() argument 45 return (mod_get_buf_prop(stack->netstack_udp->us_propinfo_tbl, stack, in udp_get_buf_prop() 55 udp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_smallest_anon_set() argument 59 udp_stack_t *us = stack->netstack_udp; in udp_smallest_anon_set() 73 udp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_largest_anon_set() argument 77 udp_stack_t *us = stack->netstack_udp; in udp_largest_anon_set()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | fmtre.c | 52 Stack_t stack[32]; in fmtre() local 57 p = stack; in fmtre() 113 if (p >= &stack[elementsof(stack)]) in fmtre() 140 if (p >= &stack[elementsof(stack)]) in fmtre() 183 if (p >= &stack[elementsof(stack)]) in fmtre() 192 if (p == stack) in fmtre() 220 if (p != stack) in fmtre()
|
H A D | fmtmatch.c | 48 char* stack[32]; in fmtmatch() local 53 p = stack; in fmtmatch() 136 if (p >= &stack[elementsof(stack)]) in fmtmatch() 157 if (p == stack) in fmtmatch() 259 if (p == stack && b == buf + 3) in fmtmatch() 276 if (p != stack) in fmtmatch()
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tunables.c | 53 tcp_set_1948phrase(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_1948phrase() argument 63 stack->netstack_tcp); in tcp_set_1948phrase() 72 tcp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in tcp_listener_conf_get() argument 75 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_get() 116 tcp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_listener_conf_add() argument 124 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_add() 165 tcp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_listener_conf_del() argument 170 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_del() 194 tcp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_buf_prop() argument 197 return (mod_set_buf_prop(stack->netstack_tcp->tcps_propinfo_tbl, stack, in tcp_set_buf_prop() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/dtrace/ |
H A D | smbnode.d | 46 stack(); 56 stack(); 67 stack(); 76 stack(); 85 stack(); 94 stack(); 104 stack(); 113 stack(); 122 stack();
|
/illumos-gate/usr/src/test/os-tests/tests/stackalign/ |
H A D | stackalign.c | 54 teststack(uintptr_t stack, char *arg) in teststack() argument 56 if ((stack & (STACK_ALIGN - 1)) != 0) { in teststack() 63 initmain(uintptr_t stack) in initmain() argument 65 teststack(stack, "section .init"); in initmain() 69 initarray(uintptr_t stack) in initarray() argument 71 teststack(stack, "section .init_array"); in initarray() 75 doorstack(uintptr_t stack, char *arg) in doorstack() argument 77 teststack(stack, arg); in doorstack()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_slist.h | 47 void overwrite_sm_state_stree_stack(struct stree_stack **stack, struct sm_state *sm); 55 void delete_state_stree_stack(struct stree_stack **stack, int owner, const char *name, 60 struct stree *top_stree(struct stree_stack *stack); 63 void free_stree_stack(struct stree_stack **stack); 67 struct sm_state *set_state_stree_stack(struct stree_stack **stack, int owner, const char *name, 70 struct sm_state *get_sm_state_stree_stack(struct stree_stack *stack, 73 struct smatch_state *get_state_stree_stack(struct stree_stack *stack, int owner, 87 struct stree_stack **stack); 89 struct stree **get_named_stree(struct named_stree_stack *stack,
|
H A D | smatch_slist.c | 554 void overwrite_sm_state_stree_stack(struct stree_stack **stack, in overwrite_sm_state_stree_stack() argument 559 stree = pop_stree(stack); in overwrite_sm_state_stree_stack() 561 push_stree(stack, stree); in overwrite_sm_state_stree_stack() 601 void delete_state_stree_stack(struct stree_stack **stack, int owner, const char *name, in delete_state_stree_stack() argument 606 stree = pop_stree(stack); in delete_state_stree_stack() 608 push_stree(stack, stree); in delete_state_stree_stack() 611 void push_stree(struct stree_stack **stack, struct stree *stree) in push_stree() argument 613 add_ptr_list(stack, stree); in push_stree() 616 struct stree *pop_stree(struct stree_stack **stack) in pop_stree() argument 620 stree = last_ptr_list((struct ptr_list *)*stack); in pop_stree() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_tunables.c | 46 sctp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in sctp_listener_conf_get() argument 49 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_get() 90 sctp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_add() argument 98 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_add() 139 sctp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_del() argument 144 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_del() 168 sctp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_set_buf_prop() argument 171 return (mod_set_buf_prop(stack->netstack_sctp->sctps_propinfo_tbl, in sctp_set_buf_prop() 172 stack, cr, pinfo, ifname, pval, flags)); in sctp_set_buf_prop() 176 sctp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in sctp_get_buf_prop() argument [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/threads/ |
H A D | machdep.c | 39 uint64_t *stack; in setup_top_frame() local 50 stack = (uint64_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame() 58 stack -= 3; in setup_top_frame() 62 if (uucopy(&frame, stack, sizeof (frame)) == 0) in setup_top_frame() 63 return (stack); in setup_top_frame() 71 uint64_t *stack; in setup_context() local 87 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context() 94 ucp->uc_mcontext.gregs[REG_RSP] = (greg_t)stack; in setup_context() 95 ucp->uc_mcontext.gregs[REG_RBP] = (greg_t)(stack + 1); in setup_context()
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_node.c | 80 pnode_t stack[OBP_STACKDEPTH]; in prom_walk_devs() local 87 stack[0] = node; in prom_walk_devs() 90 pnode_t curnode = stack[stackidx]; in prom_walk_devs() 104 stack[stackidx] = prom_nextnode(stack[stackidx]); in prom_walk_devs() 121 stack[stackidx] = child; in prom_walk_devs() 123 stack[stackidx] = in prom_walk_devs() 124 prom_nextnode(stack[stackidx]); in prom_walk_devs()
|
/illumos-gate/usr/src/lib/libc/sparc/threads/ |
H A D | machdep.c | 40 uintptr_t stack; in setup_top_frame() local 47 stack = (((uintptr_t)stk + stksize) & ~(STACK_ALIGN - 1)) - in setup_top_frame() 57 if (uucopy(frame, (void *)stack, sizeof (frame)) == 0) in setup_top_frame() 58 return ((void *)stack); in setup_top_frame() 66 uintptr_t stack; in setup_context() local 75 stack = (uintptr_t)setup_top_frame(stk, stksize, ulwp); in setup_context() 76 if (stack == (uintptr_t)NULL) in setup_context() 84 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); in setup_context()
|
/illumos-gate/usr/src/uts/sun4v/ml/ |
H A D | wbuf.S | 53 ! misaligned stack. We handle an unmapped stack by simulating 54 ! a pagefault at the trap pc and a misaligned stack by generating 125 ! user's stack has been unmapped. 152 ! user's stack has been unmapped. 189 ! misaligned stack. We handle an unmapped stack by simulating 190 ! a pagefault at the trap pc and a misaligned stack by generating 318 ! user's stack has been unmapped. 345 ! user's stack has been unmapped. 390 ! misaligned stack. We handle an unmapped stack by simulating 391 ! a pagefault at the trap pc and a misaligned stack by generating
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | flock_impl.h | 217 #define STACK_INIT(stack) ((stack) = NULL) argument 218 #define STACK_PUSH(stack, ptr, stack_link) (ptr)->stack_link = (stack),\ argument 219 (stack) = (ptr) 220 #define STACK_POP(stack, stack_link) (stack) = (stack)->stack_link argument 221 #define STACK_TOP(stack) (stack) argument 222 #define STACK_EMPTY(stack) ((stack) == NULL) argument
|
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_search.c | 87 int cmp, jump, ret, stack; local 113 stack = F_ISSET(dbp, DB_BT_RECNUM) && LF_ISSET(S_STACK); 115 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0) 130 if (!stack && 141 stack = 1; 210 if (stack) { 232 stack = 1; 237 __bam_lget(dbc, 1, pg, stack && LF_ISSET(S_WRITE) ? 362 if (cp->sp != cp->stack)
|