Home
last modified time | relevance | path

Searched refs:stk (Results 1 – 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dtparm.c254 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 Dplural_parser.c74 freeexpr(stk->ptr[--stk->index]); \
75 free(stk->ptr); \
99 stk->ptr[stk->index++] = exp; in stack_push()
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()
131 return (stk->ptr[--stk->index]); in stack_pop()
465 stk = &stkbuf; in plural_expr()
466 stk->index = 0; in plural_expr()
469 if (!stk->ptr) { in plural_expr()
627 exp, stk); in plural_expr()
[all …]
/illumos-gate/usr/src/cmd/checknr/
H A Dchecknr.c47 } *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 Dtlm_util.c67 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 Dtrestore.c69 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 Dfex_log.c134 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 DAttributeVerifier.java808 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 Dstk.c76 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 Dmachdep.c73 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 Dmachdep.c815 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/cmd/ptools/pmap/
H A Dpmap_common.c146 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 Dthread.c45 caddr_t stk, in thread_create() argument
108 caddr_t stk, in zthread_create() argument
117 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 Dpthread_attr_get_np.c87 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 Dkmdb_makecontext.c43 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()
/illumos-gate/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c38 setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp) in setup_top_frame() argument
51 stack = (uint64_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame()
70 ulwp_t *ulwp, caddr_t stk, size_t stksize) in setup_context() argument
88 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL) in setup_context()
/illumos-gate/usr/src/lib/libc/sparc/threads/
H A Dmachdep.c38 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/cmd/dtrace/test/tst/common/aggs/
H A Dtst.signature.d35 @stk[ustack()] = count();
46 @stk[ustack()] = count();
/illumos-gate/usr/src/uts/common/inet/nca/
H A Dnca.h633 pc_t stk[NODE_T_STK_DEPTH + 1]; member
671 _p->stk[_ix + 1] = 0; \
676 _p->stk[0] = (pc_t)callee(); \
679 _p->stk[_ix + 1] = 0; \
733 pc_t stk[DOOR_STK_DEPTH + 1]; member
759 _p->stk[_ix] = 0; \
764 _p->stk[0] = (pc_t)callee(); \
767 _p->stk[_ix + 1] = 0; \
1519 _p->stk[_ix + 1] = 0; \
1524 _p->stk[0] = (pc_t)callee(); \
[all …]
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/
H A Dkmdb_makecontext.c42 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument
49 uintptr_t stack = (((uintptr_t)stk + stksize - 1) & in kmdb_makecontext()
/illumos-gate/usr/src/uts/intel/os/
H A Dsyscall.c781 stack_t stk; in post_syscall() local
793 if (copyin((stack_t *)lwp->lwp_ustack, &stk, in post_syscall()
795 (stk.ss_size == lwp->lwp_old_stk_ctl || in post_syscall()
796 stk.ss_size == 0) && in post_syscall()
797 stk.ss_sp == top - stk.ss_size) { in post_syscall()
798 stk.ss_sp = (void *)((uintptr_t)stk.ss_sp + in post_syscall()
799 stk.ss_size - (uintptr_t)new_size); in post_syscall()
800 stk.ss_size = new_size; in post_syscall()
802 (void) copyout(&stk, (stack_t *)lwp->lwp_ustack, in post_syscall()
/illumos-gate/usr/src/uts/sparc/os/
H A Dsyscall.c880 stack_t stk; in post_syscall() local
882 if (copyin((stack_t *)lwp->lwp_ustack, &stk, in post_syscall()
884 (stk.ss_size == lwp->lwp_old_stk_ctl || in post_syscall()
885 stk.ss_size == 0) && in post_syscall()
886 stk.ss_sp == top - stk.ss_size) { in post_syscall()
887 stk.ss_sp = (void *)((uintptr_t)stk.ss_sp + in post_syscall()
888 stk.ss_size - new_size); in post_syscall()
889 stk.ss_size = new_size; in post_syscall()
891 (void) copyout(&stk, in post_syscall()
/illumos-gate/usr/src/lib/libkvm/common/
H A Dtest.c430 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()
/illumos-gate/usr/src/uts/common/disp/
H A Dthread.c327 caddr_t stk, in thread_create() argument
350 if (stk == NULL) { in thread_create()
366 ASSERT(stk != NULL); in thread_create()
385 t->t_stk = stk + stksize; in thread_create()
386 t->t_stkbase = stk; in thread_create()
389 t = (kthread_t *)(stk); in thread_create()
395 t->t_swap = stk; in thread_create()
407 t->t_stk = stk + stksize; in thread_create()
408 t->t_stkbase = stk; in thread_create()
410 t->t_stk = stk; /* 3b2-like */ in thread_create()
[all …]
/illumos-gate/usr/src/lib/libc/i386/threads/
H A Dmachdep.c49 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 Dthr.c234 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()
1800 stk->ss_sp = (void *)ulwp->ul_stktop; in _thrp_stksegment()
1801 stk->ss_size = ulwp->ul_stksiz; in _thrp_stksegment()
1802 stk->ss_flags = 0; in _thrp_stksegment()
[all …]

123