/titanic_41/usr/src/lib/libcurses/screen/ |
H A D | tparm.c | 253 STACK stk; in tparm() local 284 free_stack(&stk); in tparm() 288 init_stack(&stk); in tparm() 289 push(&stk, 0); in tparm() 296 free_stack(&stk); in tparm() 307 op = tops(&stk); in tparm() 377 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 …]
|
/titanic_41/usr/src/lib/libc/port/i18n/ |
H A D | plural_parser.c | 73 while (stk->index > 0) \ 74 freeexpr(stk->ptr[--stk->index]); \ 75 free(stk->ptr); \ 91 stack_push(struct stack *stk, struct expr *exp) in stack_push() argument 99 stk->ptr[stk->index++] = exp; in stack_push() 100 if (stk->index == MAX_STACK_SIZE) { in stack_push() 111 stack_pop(struct stack *stk, in stack_pop() argument 114 if (stk->index == 0) { in stack_pop() 126 type_name[GETTYPE((stk->ptr[stk->index - 1])->op)]); in stack_pop() 128 type_name[GETTYPE((stk->ptr[stk->index - 1])->flag)]); in stack_pop() [all …]
|
/titanic_41/usr/src/cmd/checknr/ |
H A D | checknr.c | 45 } *stk; variable 173 stk = (struct stkstr *)realloc(stk, in growstk() 193 stk = (struct stkstr *)calloc(sizeof (struct stkstr), 100); 334 if (stk[stktop].opno == SZ) { in process() 343 stk[stktop].opno = SZ; in process() 344 stk[stktop].pl = pl; in process() 345 stk[stktop].parm = n; in process() 346 stk[stktop].lno = lineno; in process() 351 if (stk[stktop].opno == FT) { in process() 360 stk[stktop].opno = FT; in process() [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libshell/common/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 …]
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libast/common/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 …]
|
/titanic_41/usr/src/uts/sun4/os/ |
H A D | machdep.c | 72 thread_stk_init(caddr_t stk) in thread_stk_init() argument 78 stk -= SA(sizeof (kfpu_t) + GSR_SIZE); in thread_stk_init() 79 align = (uintptr_t)stk & 0x3f; in thread_stk_init() 80 stk -= align; /* force v9_fpu to be 16 byte aligned */ in thread_stk_init() 81 fp = (kfpu_t *)stk; in thread_stk_init() 84 stk -= SA(MINFRAME); in thread_stk_init() 85 return (stk); in thread_stk_init() 125 lwp_stk_init(klwp_t *lwp, caddr_t stk) in lwp_stk_init() argument 131 stk -= SA(sizeof (kfpu_t) + GSR_SIZE); in lwp_stk_init() 132 aln = (uintptr_t)stk & 0x3F; in lwp_stk_init() [all …]
|
/titanic_41/usr/src/uts/i86pc/os/ |
H A D | machdep.c | 804 thread_stk_init(caddr_t stk) in thread_stk_init() argument 806 ASSERT(((uintptr_t)stk & (STACK_ALIGN - 1)) == 0); in thread_stk_init() 807 return (stk - SA(MINFRAME)); in thread_stk_init() 857 lwp_stk_init(klwp_t *lwp, caddr_t stk) in lwp_stk_init() argument 862 oldstk = stk; in lwp_stk_init() 863 stk -= SA(sizeof (struct regs) + SA(MINFRAME)); in lwp_stk_init() 865 stk -= 2 * sizeof (greg_t); /* space for phony %ss:%sp (see above) */ in lwp_stk_init() 867 stk = (caddr_t)((uintptr_t)stk & ~(STACK_ALIGN - 1ul)); in lwp_stk_init() 868 bzero(stk, oldstk - stk); in lwp_stk_init() 869 lwp->lwp_regs = (void *)(stk + SA(MINFRAME)); in lwp_stk_init() [all …]
|
/titanic_41/usr/src/lib/libfakekernel/common/ |
H A D | thread.c | 43 caddr_t stk, in thread_create() argument 106 caddr_t stk, in zthread_create() argument 115 t = thread_create(stk, stksize, func, arg, len, NULL, TS_RUN, pri); in zthread_create()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/mdb/intel/ia32/kmdb/ |
H A D | kmdb_makecontext.c | 43 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument 46 uintptr_t *stack = (uintptr_t *)((((uintptr_t)stk + stksize - 1) & in kmdb_makecontext()
|
/titanic_41/usr/src/cmd/mdb/intel/amd64/kmdb/ |
H A D | kmdb_makecontext.c | 43 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument 46 uintptr_t *stack = (uintptr_t *)(((uintptr_t)stk + stksize - 1) & in kmdb_makecontext()
|
/titanic_41/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.signature.d | 35 @stk[ustack()] = count(); 46 @stk[ustack()] = count();
|
/titanic_41/usr/src/lib/libc/amd64/threads/ |
H A D | machdep.c | 37 setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp) 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()
|
/titanic_41/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 if ((stack = (uintptr_t)setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context()
|
/titanic_41/usr/src/cmd/mdb/sparc/kmdb/ |
H A D | kmdb_makecontext.c | 44 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument 51 uintptr_t stack = (((uintptr_t)stk + stksize - 1) & in kmdb_makecontext()
|
/titanic_41/usr/src/lib/libshell/common/scripts/ |
H A D | shpiano.sh | 1181 nameref stk=$1 1182 stk.currpos=0 1188 nameref stk=$1 1189 stk.data[stk.currpos++]=$(( $2 & 0xFF ))
|
/titanic_41/usr/src/uts/common/inet/nca/ |
H A D | nca.h | 633 pc_t stk[NODE_T_STK_DEPTH + 1]; member 669 _ix = getpcstack(&_p->stk[0], NODE_T_STK_DEPTH + 1); \ 671 _p->stk[_ix + 1] = 0; \ 676 _p->stk[0] = (pc_t)callee(); \ 677 _ix = getpcstack(&_p->stk[1], NODE_T_STK_DEPTH); \ 679 _p->stk[_ix + 1] = 0; \ 733 pc_t stk[DOOR_STK_DEPTH + 1]; member 757 _ix = getpcstack(&_p->stk[0], DOOR_STK_DEPTH + 1); \ 759 _p->stk[_ix] = 0; \ 764 _p->stk[0] = (pc_t)callee(); \ [all …]
|
/titanic_41/usr/src/uts/intel/ia32/os/ |
H A D | syscall.c | 779 stack_t stk; in post_syscall() local 791 if (copyin((stack_t *)lwp->lwp_ustack, &stk, in post_syscall() 793 (stk.ss_size == lwp->lwp_old_stk_ctl || in post_syscall() 794 stk.ss_size == 0) && in post_syscall() 795 stk.ss_sp == top - stk.ss_size) { in post_syscall() 796 stk.ss_sp = (void *)((uintptr_t)stk.ss_sp + in post_syscall() 797 stk.ss_size - (uintptr_t)new_size); in post_syscall() 798 stk.ss_size = new_size; in post_syscall() 800 (void) copyout(&stk, (stack_t *)lwp->lwp_ustack, in post_syscall()
|
/titanic_41/usr/src/uts/sparc/os/ |
H A D | syscall.c | 873 stack_t stk; in post_syscall() local 875 if (copyin((stack_t *)lwp->lwp_ustack, &stk, in post_syscall() 877 (stk.ss_size == lwp->lwp_old_stk_ctl || in post_syscall() 878 stk.ss_size == 0) && in post_syscall() 879 stk.ss_sp == top - stk.ss_size) { in post_syscall() 880 stk.ss_sp = (void *)((uintptr_t)stk.ss_sp + in post_syscall() 881 stk.ss_size - new_size); in post_syscall() 882 stk.ss_size = new_size; in post_syscall() 884 (void) copyout(&stk, in post_syscall()
|
/titanic_41/usr/src/uts/common/disp/ |
H A D | thread.c | 324 caddr_t stk, in thread_create() argument 347 if (stk == NULL) { in thread_create() 356 stk = (caddr_t)segkp_cache_get(segkp_thread); in thread_create() 359 stk = (caddr_t)segkp_get(segkp, stksize, in thread_create() 363 ASSERT(stk != NULL); in thread_create() 378 t = (kthread_t *)(stk + stksize); in thread_create() 382 t->t_stk = stk + stksize; in thread_create() 383 t->t_stkbase = stk; in thread_create() 386 t = (kthread_t *)(stk); in thread_create() 388 t->t_stk = stk + sizeof (kthread_t); in thread_create() [all …]
|
/titanic_41/usr/src/lib/libkvm/common/ |
H A D | test.c | 430 uintptr_t stk[16]; in tst_segkp() local 454 if (kvm_read(cookie, t.t_pcb.val[1] + STACK_BIAS, stk, in tst_segkp() 455 sizeof (stk)) != sizeof (stk)) { in tst_segkp() 460 printf("%-16lx ", stk[i]); in tst_segkp()
|
/titanic_41/usr/src/lib/libc/i386/threads/ |
H A D | machdep.c | 48 setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp) in setup_top_frame() argument 67 stack = (uint32_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame() 88 ulwp_t *ulwp, caddr_t stk, size_t stksize) in setup_context() argument 132 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context()
|