/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | tparm.c | 254 STACK stk; in tparm() local 285 free_stack(&stk); in tparm() 289 init_stack(&stk); in tparm() 290 push(&stk, 0); in tparm() 297 free_stack(&stk); in tparm() 308 op = tops(&stk); in tparm() 620 op = pop(&stk); in tparm() 625 op = pop(&stk); in tparm() 686 push(&stk, !pop(&stk)); in tparm() 689 push(&stk, ~pop(&stk)); in tparm() [all …]
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | plural_parser.c | 72 freeexpr(stk->ptr[--stk->index]); \ 73 free(stk->ptr); \ 97 stk->ptr[stk->index++] = exp; in stack_push() 123 type_name[GETTYPE((stk->ptr[stk->index - 1])->op)]); in stack_pop() 125 type_name[GETTYPE((stk->ptr[stk->index - 1])->flag)]); in stack_pop() 128 return (stk->ptr[--stk->index]); in stack_pop() 459 stk = &stkbuf; in plural_expr() 460 stk->index = 0; in plural_expr() 462 if (!stk->ptr) { in plural_expr() 620 exp, stk); in plural_expr() [all …]
|
/illumos-gate/usr/src/cmd/checknr/ |
H A D | checknr.c | 47 } *stk; variable 175 stk = (struct stkstr *)realloc(stk, in growstk() 363 stk[stktop].pl = 1; in process() 382 pe(stk[i].lno); in complain() 391 if (stk[i].pl == 0) in prop() 395 (void) printf("\\s%c%d", stk[i].pl, stk[i].parm); in prop() 402 i, stk[i].opno, br[stk[i].opno].opbr, in prop() 403 br[stk[i].opno].clbr); in prop() 425 stk[stktop].pl = 0; in chkcmd() 474 pe(stk[j+1].lno); in nomatch() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_util.c | 67 cstack_t *stk; in cstack_new() local 72 return (stk); in cstack_new() 88 if (stk == NULL) { in cstack_delete() 94 stk->next = tmp->next; in cstack_delete() 100 free(stk); in cstack_delete() 119 if (stk == NULL) { in cstack_push() 130 stk->next = stk_node; in cstack_push() 150 if (stk == NULL) { in cstack_pop() 183 if (stk == NULL) { in cstack_top() 188 if (stk->next == NULL) { in cstack_top() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | trestore.c | 69 t = getnode(shp->stk,parnod); in r_tree() 73 t = getnode(shp->stk,comnod); in r_tree() 79 t = getnode(shp->stk,forknod); in r_tree() 85 t = getnode(shp->stk,ifnod); in r_tree() 91 t = getnode(shp->stk,whnod); in r_tree() 100 t = getnode(shp->stk,lstnod); in r_tree() 105 t = getnode(shp->stk,arithnod); in r_tree() 113 t = getnode(shp->stk,fornod); in r_tree() 122 t = getnode(shp->stk,swnod); in r_tree() 161 t = getnode(shp->stk,tstnod); in r_tree() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | fex_log.c | 134 if (l->stack[0] != stk) in check_exc_list() 157 l->stack[0] = stk; in check_exc_list() 225 char *stk; in fex_log_entry() local 249 stk = (char *)fp->fr_savpc; in fex_log_entry() 253 if (check_exc_list(stk, (unsigned long)msg, stk, fp)) { in fex_log_entry() 264 print_stack(fd, stk, fp); in fex_log_entry() 288 char *stk, *name, buf[30]; in __fex_mklog() local 300 stk = (char*)uap->uc_mcontext.gregs[REG_PC]; in __fex_mklog() 303 stk = (char*)uap->uc_mcontext.gregs[REG_PC]; in __fex_mklog() 306 stk = (char*)uap->uc_mcontext.gregs[PC]; in __fex_mklog() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributeVerifier.java | 808 initIdChar(stk); in parseTemplateAttribute() 844 String id = stk.sval; in parseTemplateAttribute() 938 String version = stk.sval; in parseTemplateAttribute() 1248 StreamTokenizer stk = in parseAttribute() local 1251 initIdChar(stk); in parseAttribute() 1306 stk = in parseAttribute() 1330 stk = in parseAttribute() 1511 stk = in parseAttribute() 1801 initIntItemChar(stk); in parseValueList() 1803 initIdChar(stk); in parseValueList() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stk.c | 76 struct stk struct 152 register struct stk *sp = stream2stk(stream); in stkexcept() 217 register struct stk *sp; in stkopen() 227 sp = (struct stk*)(dp+1); in stkopen() 266 register struct stk *sp; in stkinstall() 299 register struct stk *sp = stream2stk(stream); in stklink() 311 register struct stk *sp = stream2stk(stream); in stkclose() 325 register struct stk *sp = stream2stk(stream); in stkon() 340 register struct stk *sp = stream2stk(stream); in stkset() 465 struct stk *sp = stream2stk(stream); in stkcopy() [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | machdep.c | 73 thread_stk_init(caddr_t stk) in thread_stk_init() argument 80 align = (uintptr_t)stk & 0x3f; in thread_stk_init() 82 fp = (kfpu_t *)stk; in thread_stk_init() 85 stk -= SA(MINFRAME); in thread_stk_init() 86 return (stk); in thread_stk_init() 133 aln = (uintptr_t)stk & 0x3F; in lwp_stk_init() 134 stk -= aln; in lwp_stk_init() 135 fp = (kfpu_t *)stk; in lwp_stk_init() 136 stk -= SA(sizeof (struct machpcb)); in lwp_stk_init() 137 mpcb = (struct machpcb *)stk; in lwp_stk_init() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | machdep.c | 815 thread_stk_init(caddr_t stk) in thread_stk_init() argument 817 ASSERT(((uintptr_t)stk & (STACK_ALIGN - 1)) == 0); in thread_stk_init() 818 return (stk - SA(MINFRAME)); in thread_stk_init() 868 lwp_stk_init(klwp_t *lwp, caddr_t stk) in lwp_stk_init() argument 873 oldstk = stk; in lwp_stk_init() 874 stk -= SA(sizeof (struct regs) + SA(MINFRAME)); in lwp_stk_init() 876 stk -= 2 * sizeof (greg_t); /* space for phony %ss:%sp (see above) */ in lwp_stk_init() 878 stk = (caddr_t)((uintptr_t)stk & ~(STACK_ALIGN - 1ul)); in lwp_stk_init() 879 bzero(stk, oldstk - stk); in lwp_stk_init() 880 lwp->lwp_regs = (void *)(stk + SA(MINFRAME)); in lwp_stk_init() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | ucontext.c | 86 char stk[SIGSTKSZ]; in main() local 95 ctx.uc_stack.ss_sp = stk; in main() 96 ctx.uc_stack.ss_size = sizeof (stk); in main()
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap_common.c | 146 lwpstack_t key, *stk; in anon_name() local 151 (stk = bsearch(&key, stacks, nstacks, sizeof (stacks[0]), in anon_name() 154 (stk->lwps_stack.ss_flags & SS_ONSTACK) ? in anon_name() 156 stk->lwps_lwpid); in anon_name()
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | thread.c | 46 caddr_t stk, in thread_create() argument 117 caddr_t stk, in zthread_create() argument 126 t = thread_create(stk, stksize, func, arg, len, NULL, TS_RUN, pri); in zthread_create()
|
/illumos-gate/usr/src/test/libc-tests/tests/threads/ |
H A D | pthread_attr_get_np.c | 87 void *stk; in pgn_verif_thr_stack() local 92 VERIFY0(pthread_attr_getstack(attr, &stk, &stksz)); in pgn_verif_thr_stack() 93 VERIFY3P(stk, !=, NULL); in pgn_verif_thr_stack() 96 VERIFY3U(sp, >, (uintptr_t)stk); in pgn_verif_thr_stack() 97 VERIFY3U(sp, <, (uintptr_t)stk + stksz); in pgn_verif_thr_stack()
|
/illumos-gate/usr/src/cmd/mdb/intel/amd64/kmdb/ |
H A D | kmdb_makecontext.c | 41 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument 44 uintptr_t *stack = (uintptr_t *)(((uintptr_t)stk + stksize - 1) & in kmdb_makecontext()
|
/illumos-gate/usr/src/lib/libc/sparc/threads/ |
H A D | machdep.c | 38 setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp) in setup_top_frame() argument 47 stack = (((uintptr_t)stk + stksize) & ~(STACK_ALIGN - 1)) - in setup_top_frame() 64 ulwp_t *ulwp, caddr_t stk, size_t stksize) in setup_context() argument 75 stack = (uintptr_t)setup_top_frame(stk, stksize, ulwp); in setup_context()
|
/illumos-gate/usr/src/lib/libc/amd64/threads/ |
H A D | machdep.c | 37 setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp __unused) in setup_top_frame() argument 50 stack = (uint64_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame() 69 ulwp_t *ulwp, caddr_t stk, size_t stksize) in setup_context() argument 87 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.signature.d | 33 @stk[ustack()] = count(); 44 @stk[ustack()] = count();
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | syscall.c | 758 stack_t stk; in post_syscall() local 770 if (copyin((stack_t *)lwp->lwp_ustack, &stk, in post_syscall() 772 (stk.ss_size == lwp->lwp_old_stk_ctl || in post_syscall() 773 stk.ss_size == 0) && in post_syscall() 774 stk.ss_sp == top - stk.ss_size) { in post_syscall() 775 stk.ss_sp = (void *)((uintptr_t)stk.ss_sp + in post_syscall() 776 stk.ss_size - (uintptr_t)new_size); in post_syscall() 777 stk.ss_size = new_size; in post_syscall() 779 (void) copyout(&stk, (stack_t *)lwp->lwp_ustack, in post_syscall()
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | syscall.c | 857 stack_t stk; in post_syscall() local 859 if (copyin((stack_t *)lwp->lwp_ustack, &stk, in post_syscall() 861 (stk.ss_size == lwp->lwp_old_stk_ctl || in post_syscall() 862 stk.ss_size == 0) && in post_syscall() 863 stk.ss_sp == top - stk.ss_size) { in post_syscall() 864 stk.ss_sp = (void *)((uintptr_t)stk.ss_sp + in post_syscall() 865 stk.ss_size - new_size); in post_syscall() 866 stk.ss_size = new_size; in post_syscall() 868 (void) copyout(&stk, in post_syscall()
|
/illumos-gate/usr/src/lib/libkvm/common/ |
H A D | test.c | 428 uintptr_t stk[16]; in tst_segkp() local 452 if (kvm_read(cookie, t.t_pcb.val[1] + STACK_BIAS, stk, in tst_segkp() 453 sizeof (stk)) != sizeof (stk)) { in tst_segkp() 458 printf("%-16lx ", stk[i]); in tst_segkp()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | thread.c | 326 caddr_t stk, in thread_create() argument 349 if (stk == NULL) { in thread_create() 365 ASSERT(stk != NULL); in thread_create() 384 t->t_stk = stk + stksize; in thread_create() 385 t->t_stkbase = stk; in thread_create() 388 t = (kthread_t *)(stk); in thread_create() 394 t->t_swap = stk; in thread_create() 406 t->t_stk = stk + stksize; in thread_create() 407 t->t_stkbase = stk; in thread_create() 409 t->t_stk = stk; /* 3b2-like */ in thread_create() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/threads/ |
H A D | machdep.c | 49 setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp) in setup_top_frame() argument 68 stack = (uint32_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame() 89 ulwp_t *ulwp, caddr_t stk, size_t stksize) in setup_context() argument 133 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context()
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | thr.c | 234 caddr_t stk = ulwp->ul_stk; in ulwp_clean() local 242 ulwp->ul_stk = stk; in ulwp_clean() 327 void *stk; in find_stack() local 405 (void) munmap(stk, mapsize); in find_stack() 407 ulwp->ul_stk = stk; in find_stack() 587 if (stk == NULL) { in _thrp_create() 595 ulwp->ul_stk = stk; in _thrp_create() 1790 stk->ss_sp = (void *)ulwp->ul_stktop; in _thrp_stksegment() 1791 stk->ss_size = ulwp->ul_stksiz; in _thrp_stksegment() 1792 stk->ss_flags = 0; in _thrp_stksegment() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_io.c | 2159 stk->stk_top = NULL; in mdb_iob_stack_create() 2160 stk->stk_size = 0; in mdb_iob_stack_create() 2178 iob->iob_next = stk->stk_top; in mdb_iob_stack_push() 2179 stk->stk_top = iob; in mdb_iob_stack_push() 2180 stk->stk_size++; in mdb_iob_stack_push() 2185 mdb_iob_stack_pop(mdb_iob_stack_t *stk) in mdb_iob_stack_pop() argument 2187 mdb_iob_t *top = stk->stk_top; in mdb_iob_stack_pop() 2191 stk->stk_top = top->iob_next; in mdb_iob_stack_pop() 2193 stk->stk_size--; in mdb_iob_stack_pop() 2199 mdb_iob_stack_size(mdb_iob_stack_t *stk) in mdb_iob_stack_size() argument [all …]
|