/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() 378 free_stack(&stk); in tparm() 402 (void) pop(&stk); in tparm() 476 (void) pop(&stk); in tparm() 480 xp = pop_char_p(&stk); in tparm() [all …]
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | plural_parser.c | 71 while (stk->index > 0) \ 72 freeexpr(stk->ptr[--stk->index]); \ 73 free(stk->ptr); \ 89 stack_push(struct stack *stk, struct expr *exp) in stack_push() argument 97 stk->ptr[stk->index++] = exp; in stack_push() 98 if (stk->index == MAX_STACK_SIZE) { in stack_push() 109 stack_pop(struct stack *stk, struct expr *exp_a, struct expr *exp_b) in stack_pop() argument 111 if (stk->index == 0) { in stack_pop() 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() [all …]
|
/illumos-gate/usr/src/cmd/checknr/ |
H A D | checknr.c | 47 } *stk; variable 175 stk = (struct stkstr *)realloc(stk, in growstk() 195 stk = (struct stkstr *)calloc(100, sizeof (struct stkstr)); 336 if (stk[stktop].opno == SZ) { in process() 345 stk[stktop].opno = SZ; in process() 346 stk[stktop].pl = pl; in process() 347 stk[stktop].parm = n; in process() 348 stk[stktop].lno = lineno; in process() 353 if (stk[stktop].opno == FT) { in process() 362 stk[stktop].opno = FT; in process() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_util.c | 67 cstack_t *stk; in cstack_new() local 69 if ((stk = ndmp_malloc(sizeof (cstack_t))) == NULL) in cstack_new() 72 return (stk); in cstack_new() 84 cstack_delete(cstack_t *stk) in cstack_delete() argument 88 if (stk == NULL) { in cstack_delete() 93 while ((tmp = stk->next) != NULL) { in cstack_delete() 94 stk->next = tmp->next; in cstack_delete() 99 NDMP_LOG(LOG_DEBUG, "cstack_delete: 0x%p", stk); in cstack_delete() 100 free(stk); in cstack_delete() 115 cstack_push(cstack_t *stk, void *data, int len) in cstack_push() argument [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() 118 t->for_.fornam = r_string(shp->stk); in r_tree() 122 t = getnode(shp->stk,swnod); in r_tree() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | fex_log.c | 121 static int check_exc_list(char *addr, unsigned long code, char *stk, in check_exc_list() argument 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() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributeVerifier.java | 806 StreamTokenizer stk = new StreamTokenizer(rdr); in parseTemplateAttribute() local 808 initIdChar(stk); in parseTemplateAttribute() 835 if ((tt = stk.nextToken()) != StreamTokenizer.TT_WORD) { in parseTemplateAttribute() 844 String id = stk.sval; in parseTemplateAttribute() 850 if ((tt = stk.nextToken()) != TT_EQUALS) { in parseTemplateAttribute() 868 if ((tt = stk.nextToken()) != StreamTokenizer.TT_WORD) { in parseTemplateAttribute() 880 new StreamTokenizer(new StringReader(stk.sval)); in parseTemplateAttribute() 885 !stk.sval.equals(sttk.sval)) { in parseTemplateAttribute() 909 if ((tt = stk.nextToken()) != StreamTokenizer.TT_EOF) { in parseTemplateAttribute() 928 if ((tt = stk.nextToken()) != StreamTokenizer.TT_WORD) { in parseTemplateAttribute() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stk.c | 76 struct stk struct 86 static struct stk *stkcur; /* pointer to current stk */ 90 ((struct stk*)(((char*)(stream))+STK_HDRSIZE))) 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() [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 79 stk -= SA(sizeof (kfpu_t) + GSR_SIZE); in thread_stk_init() 80 align = (uintptr_t)stk & 0x3f; in thread_stk_init() 81 stk -= align; /* force v9_fpu to be 16 byte aligned */ 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() 126 lwp_stk_init(klwp_t *lwp, caddr_t stk) in lwp_stk_init() argument 132 stk -= SA(sizeof (kfpu_t) + GSR_SIZE); in lwp_stk_init() 133 aln = (uintptr_t)stk & 0x3F; in lwp_stk_init() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | machdep.c | 816 thread_stk_init(caddr_t stk) in thread_stk_init() argument 818 ASSERT(((uintptr_t)stk & (STACK_ALIGN - 1)) == 0); in thread_stk_init() 819 return (stk - SA(MINFRAME)); in thread_stk_init() 869 lwp_stk_init(klwp_t *lwp, caddr_t stk) in lwp_stk_init() argument 874 oldstk = stk; in lwp_stk_init() 875 stk -= SA(sizeof (struct regs) + SA(MINFRAME)); in lwp_stk_init() 877 stk -= 2 * sizeof (greg_t); /* space for phony %ss:%sp (see above) */ in lwp_stk_init() 879 stk = (caddr_t)((uintptr_t)stk & ~(STACK_ALIGN - 1ul)); in lwp_stk_init() 880 bzero(stk, oldstk - stk); in lwp_stk_init() 881 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/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/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/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/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/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/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() 358 stk = (caddr_t)segkp_cache_get(segkp_thread); in thread_create() 361 stk = (caddr_t)segkp_get(segkp, stksize, in thread_create() 365 ASSERT(stk != NULL); in thread_create() 380 t = (kthread_t *)(stk + stksize); 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() 390 t->t_stk = stk + sizeof (kthread_t); 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 398 if ((stk = mmap(NULL, mapsize, stackprot, in find_stack() 405 (void) munmap(stk, mapsize); in find_stack() 407 ulwp->ul_stk = stk; in find_stack() 410 ulwp->ul_stktop = (uintptr_t)stk + mapsize; in find_stack() 413 (void) mprotect(stk, guardsize, PROT_NONE); in find_stack() 562 _thrp_create(void *stk, size_t stksize, void *(*func)(void *), void *arg, in _thrp_create() argument 584 if ((stk || stksize) && stksize < MINSTACK) in _thrp_create() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_io.c | 2157 mdb_iob_stack_create(mdb_iob_stack_t *stk) in mdb_iob_stack_create() argument 2159 stk->stk_top = NULL; in mdb_iob_stack_create() 2160 stk->stk_size = 0; in mdb_iob_stack_create() 2164 mdb_iob_stack_destroy(mdb_iob_stack_t *stk) in mdb_iob_stack_destroy() argument 2168 for (top = stk->stk_top; top != NULL; top = ntop) { in mdb_iob_stack_destroy() 2175 mdb_iob_stack_push(mdb_iob_stack_t *stk, mdb_iob_t *iob, size_t lineno) in mdb_iob_stack_push() argument 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 [all …]
|