/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | macro.c | 163 Stk_t *stkp = shp->stk; in sh_mactrim() local 166 stkseek(stkp,0); in sh_mactrim() 181 stkseek(stkp,0); in sh_mactrim() 184 str = stkfreeze(stkp,1); in sh_mactrim() 209 Stk_t *stkp = shp->stk; in sh_macexpand() local 236 stkseek(stkp,0); in sh_macexpand() 240 stkseek(stkp,ARGVAL); in sh_macexpand() 241 *stkptr(stkp,ARGVAL-1) = 0; in sh_macexpand() 249 argp->argchn.cp = stkfreeze(stkp,1); in sh_macexpand() 278 Stk_t *stkp = shp->stk; in sh_machere() local [all …]
|
H A D | lex.c | 147 register Stk_t *stkp = shp->stk; in refvar() local 157 int n,offset = stktell(stkp); in refvar() 164 sfwrite(stkp,fcfirst()+type,off-offset); in refvar() 165 n = stktell(stkp)-lp->lexd.kiaoff; in refvar() 166 begin = stkptr(stkp,lp->lexd.kiaoff); in refvar() 174 savptr = stkfreeze(stkp,0); in refvar() 176 stkset(stkp,savptr,offset); in refvar() 191 Stk_t *stkp = shp->stk; in lex_advance() local 220 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in lex_advance() 227 sfwrite(stkp,buff,size); in lex_advance() [all …]
|
H A D | parse.c | 678 Stk_t *stkp = lexp->sh->stk; in arithfor() local 688 argp = (struct argnod*)stkseek(stkp,ARGVAL); in arithfor() 696 offset = stktell(stkp)-1; in arithfor() 700 while(offset>ARGVAL && ((c= *stkptr(stkp,offset-1)),isspace(c))) in arithfor() 705 stkseek(stkp,offset); in arithfor() 708 sfputc(stkp,'1'); in arithfor() 709 argp = (struct argnod*)stkfreeze(stkp,1); in arithfor() 955 Stk_t *stkp = lexp->sh->stk; in assign() local 1000 ar = (struct argnod*)stkseek(stkp,ARGVAL); in assign() 1002 sfprintf(stkp,"[%d]=",index++); in assign() [all …]
|
H A D | trestore.c | 181 Stk_t *stkp=shp->stk; in r_arg() local 184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); in r_arg() 207 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg() 214 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg() 337 static char *r_string(Stk_t *stkp) in r_string() argument 344 ptr = stkalloc(stkp,(unsigned)l); in r_string()
|
H A D | xec.c | 215 Stk_t *stkp = shp->stk; in p_time() local 220 sfwrite(stkp, first, format-first); in p_time() 251 stkseek(stkp,offset); in p_time() 258 l_time(stkp, tm[n], p); in p_time() 260 sfprintf(stkp,"%.*f",p, d); in p_time() 264 sfwrite(stkp,first, format-first); in p_time() 265 sfputc(stkp,'\n'); in p_time() 266 n = stktell(stkp)-offset; in p_time() 267 sfwrite(out,stkptr(stkp,offset),n); in p_time() 268 stkseek(stkp,offset); in p_time() [all …]
|
H A D | nvdisc.c | 1491 Stk_t *stkp = shp->stk; in sh_fsearch() local 1492 int offset = stktell(stkp); in sh_fsearch() 1493 sfputr(stkp,nv_name(shp->namespace),'.'); in sh_fsearch() 1494 sfputr(stkp,fname,0); in sh_fsearch() 1495 fname = stkptr(stkp,offset); in sh_fsearch()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Plwpregs.c | 650 Plwp_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) in Plwp_stack() argument 673 if (Pread(P, stkp, sizeof (*stkp), addr) != sizeof (*stkp)) in Plwp_stack() 682 stack_32_to_n(&stk32, stkp); in Plwp_stack() 690 Plwp_main_stack(struct ps_prochandle *P, lwpid_t lwpid, stack_t *stkp) in Plwp_main_stack() argument 718 if (Pread(P, stkp, sizeof (*stkp), addr) != sizeof (*stkp)) in Plwp_main_stack() 721 if (stkp->ss_flags & SS_ONSTACK) in Plwp_main_stack() 733 stack_32_to_n(&stk32, stkp); in Plwp_main_stack() 744 if (Pread(P, stkp, sizeof (*stkp), in Plwp_main_stack() 745 (uintptr_t)&ctxp->uc_stack) != sizeof (*stkp)) in Plwp_main_stack() 756 stack_32_to_n(&stk32, stkp); in Plwp_main_stack() [all …]
|
H A D | Pcontrol.c | 3866 Lstack(struct ps_lwphandle *L, stack_t *stkp) in Lstack() argument 3872 if (Pread(P, stkp, sizeof (*stkp), addr) != sizeof (*stkp)) in Lstack() 3881 stack_32_to_n(&stk32, stkp); in Lstack() 3889 Lmain_stack(struct ps_lwphandle *L, stack_t *stkp) in Lmain_stack() argument 3893 if (Lstack(L, stkp) != 0) in Lmain_stack() 3901 if (!(stkp->ss_flags & SS_ONSTACK)) in Lmain_stack() 3907 if (Pread(P, stkp, sizeof (*stkp), in Lmain_stack() 3908 (uintptr_t)&ctxp->uc_stack) != sizeof (*stkp)) in Lmain_stack() 3919 stack_32_to_n(&stk32, stkp); in Lmain_stack() 3927 Lalt_stack(struct ps_lwphandle *L, stack_t *stkp) in Lalt_stack() argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | getopts.c | 39 Stk_t *stkp = shp->stk; in infof() local 46 int savtop = stktell(stkp); in infof() 47 char *savptr = stkfreeze(stkp,0); in infof() 48 sfputc(stkp,'$'); in infof() 49 sfputc(stkp,'('); in infof() 50 sfputr(stkp,s,')'); in infof() 51 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1); in infof() 52 stkset(stkp,savptr,savtop); in infof()
|
H A D | typeset.c | 415 Stk_t *stkp = tdata.sh->stk; in b_typeset() local 416 int off=0,offset = stktell(stkp); in b_typeset() 419 sfputr(stkp,NV_CLASS,-1); in b_typeset() 423 off = stktell(stkp)+1; in b_typeset() 424 sfputr(stkp,nv_name(tdata.sh->namespace),'.'); in b_typeset() 429 sfputc(stkp,'.'); in b_typeset() 430 sfputr(stkp,tdata.prefix,0); in b_typeset() 431 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); in b_typeset() 435 *stkptr(stkp,off)=0; in b_typeset() 436 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN); in b_typeset() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddifm.c | 219 caddr_t stkp; in i_ddi_drv_ereport_post() local 245 stkp = buf; in i_ddi_drv_ereport_post() 248 (void) snprintf(stkp, DDI_FM_SYM_SZ, in i_ddi_drv_ereport_post() 250 stkpp[i] = stkp; in i_ddi_drv_ereport_post() 251 stkp += DDI_FM_SYM_SZ; in i_ddi_drv_ereport_post()
|
H A D | fm.c | 1266 char *stkp = buf; in fm_payload_stack_add() local 1268 for (i = 0; i < depth && i != FM_STK_DEPTH; i++, stkp += FM_SYM_SZ) { in fm_payload_stack_add() 1270 (void) snprintf(stkp, FM_SYM_SZ, "%s+%lx", sym, off); in fm_payload_stack_add() 1272 (void) snprintf(stkp, FM_SYM_SZ, "%lx", (long)stack[i]); in fm_payload_stack_add() 1273 stkpp[i] = stkp; in fm_payload_stack_add()
|